-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
Symption
The setup command crashed with the following output:
(hybrik) {username}:~/HybrIK$ python setup.py develop
Traceback (most recent call last):
File "setup.py", line 6, in <module>
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
File "/home/{username}/anaconda3/envs/hybrik/lib/python3.8/site-packages/torch/__init__.py", line 197, in <module>
from torch._C import * # noqa: F403
ImportError: /home/{username}/anaconda3/envs/hybrik/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined symbol: iJIT_NotifyEventCause (Suspected)
The installed PyTorch version (or the conda channel it came from) is no longer compatible with your current system environment.
Solution
-
Remove the broken environment:
conda deactivate conda env remove -n hybrik
-
Rerun the installation steps, REPLACING this:
conda install pytorch==1.9.1 torchvision==0.10.1 -c pytorch
WITH this:
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html -
If encounter the following error:
error: Couldn't find a setup script in /tmp/easy_install-8uovd3gj/scipy-1.16.0rc1.tar.gzJust run
pip install scipy
Then rerun:
python setup.py develop
-
Everything should now work as expected.
Environment
- Ubuntu 22.04.5 LTS
- NVIDIA RTX 4090
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels