-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name '_C' from partially initialized module 'torchsdf' (most likely due to a circular import) #1
Comments
Sorry for replying so late. I tried to install torchsdf on three machines (two Ubuntu servers and one docker container on my Windows laptop) with conda, and didn't encounter such |
conda create -n graspnet python=3.8 Package: sent documents to my server: do: error: ImportError: cannot import name '_C' from partially initialized module 'torchsdf' |
|
I notice that "The detected CUDA version (9.1) mismatches the version that was used to compile PyTorch (11.3). Please make sure to use the same CUDA versions". Maybe you can check your cuda complier version by Maybe you can have a try to install torchsdf (just pytorch and torchsdf) on a machine with higher cuda version to see if the same error would happen. Or you can try to install a higher version cuda on your working machine. (For exmaple, https://developer.nvidia.com/cuda-11.3.0-download-archive) By "runfile(local)" installation, you can either ask sudoer to update cuda (though I do not recommand), or install cuda into your user environment. Hope these can help you. |
Thank you very much! I replace cuda complier 9.1 with version 11.3, it worded. |
Traceback (most recent call last):
File "setup.py", line 176, in
ext_modules=get_extensions(),
File "setup.py", line 135, in get_extensions
include_dirs = get_include_dirs()
File "setup.py", line 160, in get_include_dirs
_, bare_metal_major, _ = get_cuda_bare_metal_version(CUDA_HOME)
File "setup.py", line 59, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
File "", line 1, in
File "/home/ustc/PycharmProjects/DexGraspNet/TorchSDF/torchsdf/init.py", line 1, in
from torchsdf.sdf import *
File "/home/ustc/PycharmProjects/DexGraspNet/TorchSDF/torchsdf/sdf.py", line 2, in
from torchsdf import _C
ImportError: cannot import name '_C' from partially initialized module 'torchsdf' (most likely due to a circular import) (/home/ustc/PycharmProjects/DexGraspNet/TorchSDF/torchsdf/init.py)
when I tried bash install.sh,it occured
The text was updated successfully, but these errors were encountered: