Setuptools build_wheel

David_YYD: <p>I want to build a wheel file for a package, but get this problem below:</p>
<p>ERROR Backend subprocess exited when trying to invoke build_wheel</p>
<ul>
<li>Building wheel from sdist</li>
<li>Creating venv isolated environment…</li>
<li>Installing packages in isolated environment… (–extra-index-url <a href="https://download.pytorch.org/whl/cu118" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu118</a>, ninja, setuptools, torch==2.0.0+cu118)</li>
<li>Getting build dependencies for wheel…</li>
</ul>
<p>when it comes to these<br>
copying pyronn\ct_reconstruction\cores\kernels\fan_backprojector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels<br>
copying pyronn\ct_reconstruction\cores\kernels\fan_projector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels<br>
copying pyronn\ct_reconstruction\cores\kernels\par_backprojector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels<br>
copying pyronn\ct_reconstruction\cores\kernels\par_projector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels<br>
running build_ext<br>
building ‘pyronn_layers’ extension<br>
error: unknown file type ‘’ (from ‘ct_reconstruction’)</p>
<p>ERROR Backend subprocess exited when trying to invoke build_wheel</p>
<p>setup.py showed in image below<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/b/f/bf7b7f49e11e30b475657f11b13b0584c44ed604.png" data-download-href="https://discuss.pytorch.org/uploads/default/bf7b7f49e11e30b475657f11b13b0584c44ed604" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/b/f/bf7b7f49e11e30b475657f11b13b0584c44ed604_2_690x472.png" alt="image" data-base62-sha1="rjVMSJkke1mJFXqG6cfQ9TB9u8Q" width="690" height="472" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/b/f/bf7b7f49e11e30b475657f11b13b0584c44ed604_2_690x472.png, https://discuss.pytorch.org/uploads/default/optimized/3X/b/f/bf7b7f49e11e30b475657f11b13b0584c44ed604_2_1035x708.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/b/f/bf7b7f49e11e30b475657f11b13b0584c44ed604.png 2x" data-dominant-color="2F2F2F"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1083×741 63.3 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <aside class="quote no-group" data-username="David_YYD" data-post="1" data-topic="191394">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/david_yyd/48/65207_2.png" class="avatar"> David_YYD:</div>
<blockquote>
<p>error: unknown file type ‘’ (from ‘ct_reconstruction’)</p>
</blockquote>
</aside>
<p>You would need to check which file type in <code>pyronn</code> is unknown as the error seems to come from this 3rd party library, not PyTorch itself.</p>