Skip to content
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

from . import _c ImportError: cannot import name '_c' #14

Open
JialeTao opened this issue Apr 30, 2021 · 4 comments
Open

from . import _c ImportError: cannot import name '_c' #14

JialeTao opened this issue Apr 30, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@JialeTao
Copy link

JialeTao commented Apr 30, 2021

Hi, I followed the introduction and finished installing process successfully, but when I try to import "from torch_batch_svd import svd", it raises error of "File "/disk2/jiale.tjl/projects/articulated-animation/torch-batch-svd/torch_batch_svd/batch_svd.py", line 3, in
from . import _c
ImportError: cannot import name '_c'" .

Do you have any suggenstions?

@KinglittleQ
Copy link
Owner

I cannot reproduce your error. Could you share more details, e.g. environments, installation steps ...

@KinglittleQ KinglittleQ added the help wanted Extra attention is needed label May 2, 2021
@Atuno
Copy link

Atuno commented May 8, 2021

I met similar problem as well. The torch_batch_svd directory was in my project directory, and I solved this problem by moving torch_batch_svd to the parent directory of my project, removing all generated directories like "build" and "dist" and rebuilding by the command "python setup.py install".

@zhenglong178
Copy link

Hi, I followed the introduction and finished installing process successfully, but when I try to import "from torch_batch_svd import svd", it raises error of "File "/disk2/jiale.tjl/projects/articulated-animation/torch-batch-svd/torch_batch_svd/batch_svd.py", line 3, in
from . import _c
ImportError: cannot import name '_c'" .

Do you have any suggenstions?

Hello, I have the same problem. Have you solved it?

@iliasprc
Copy link

Hello, I have the same issue when I try to run svd from other directories. I have built successfully the library and the test passes but when i import torch_batch_svd to my project it raises error

../../../miniconda3/envs/Compact-Transformers/lib/python3.7/site-packages/torch_batch_svd-1.0.0-py3.7-linux-x86_64.egg/torch_batch_svd/batch_svd.py:3: in <module> from . import _c E ImportError: libcusolver.so.10.0: cannot open shared object file: No such file or direct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants