Open prescod opened 9 months ago
Same error on windows, btw, despite "packaging" being successfully installed
same here..
Sounds like I know what's the issue : you need to install setuptools and buildtools, and then you can install it
made a merge request with a fix
I am skeptical about that pull request. It changes line 258 of setup.py, but the crash happens when Python tries to run lines 8, 11 and 18.
Instead, I made a pyproject.toml
with this content:
[build-system]
requires = ["packaging", "torch", "setuptools", "wheel"]
This seems to install the four requirements before running setup.py
.
I can't see .toml project files in the original repo, so I just asked for a pull request with minimal changes. lets you install this at least from source. I also have no experience with .toml. If you have ideas for improvements, I guess you're free to create pull requests!
Just to comment that I also had this same problem. I'm on Ubuntu 22.04 using virtualenv. I already have setuptools
(from apt). I was able to proceed a bit further by doing a few pip install
s... but I'm not fully installed yet.
I was able to resolve this by running $ pip install wheel I think the packaging error is spurious.
听起来我知道问题出在哪里:您需要安装 setuptools 和 buildtools,然后才能安装它
Even though I have setuptools and buildtools installed, I still get an error when I run them.I think setuptools and buildtools are probably not the problem. Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
C:\Users\cwj.conda\envs\vmunet\Lib\site-packages\causal-conv1d\setup.py:78: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/py
torch/pytorch, only images whose names contain 'devel' will provide nvcc.
warnings.warn(
Traceback (most recent call last):
File "
torch.__version__ = 2.1.1+cu118
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
听起来我知道问题出在哪里:您需要安装 setuptools 和 buildtools,然后才能安装它
Even though I have setuptools and buildtools installed, I still get an error when I run them.I think setuptools and buildtools are probably not the problem. Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [13 lines of output] C:\Users\cwj.conda\envs\vmunet\Lib\site-packages\causal-conv1d\setup.py:78: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/py torch/pytorch, only images whose names contain 'devel' will provide nvcc. warnings.warn( Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\cwj.conda\envs\vmunet\Lib\site-packages\causal-conv1d\setup.py", line 112, in if bare_metal_version >= Version("11.8"): NameError: name 'bare_metal_version' is not defined
torch.__version__ = 2.1.1+cu118 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
听起来我知道问题出在哪里:您需要安装 setuptools 和 buildtools,然后才能安装它
Even though I have setuptools and buildtools installed, I still get an error when I run them.I think setuptools and buildtools are probably not the problem. Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [13 lines of output] C:\Users\cwj.conda\envs\vmunet\Lib\site-packages\causal-conv1d\setup.py:78: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/py torch/pytorch, only images whose names contain 'devel' will provide nvcc. warnings.warn( Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\cwj.conda\envs\vmunet\Lib\site-packages\causal-conv1d\setup.py", line 112, in if bare_metal_version >= Version("11.8"): NameError: name 'bare_metal_version' is not defined
torch.__version__ = 2.1.1+cu118 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
I have the same problem with u. Have u sovled it?
I can only folk the repository and build it locally