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

No module named 'torch_cluster.graclus_cuda' #20

Closed
josauder opened this issue Apr 11, 2019 · 7 comments
Closed

No module named 'torch_cluster.graclus_cuda' #20

josauder opened this issue Apr 11, 2019 · 7 comments
Labels

Comments

@josauder
Copy link

I Install the library using pip3 install torch-cluster.

When using the library using from torch_cluster import knn_graph I get:

Traceback (most recent call last):
  File "/home/jonathan/workspace/pcnn/models/Hybrid.py", line 9, in <module>
    from torch_cluster import knn_graph
  File "/home/jonathan/.local/lib/python3.6/site-packages/torch_cluster/__init__.py", line 1, in <module>
    from .graclus import graclus_cluster
  File "/home/jonathan/.local/lib/python3.6/site-packages/torch_cluster/graclus.py", line 5, in <module>
    import torch_cluster.graclus_cuda
ModuleNotFoundError: No module named 'torch_cluster.graclus_cuda'

How can I fix this?
Thanks in advance.

@rusty1s
Copy link
Owner

rusty1s commented Apr 11, 2019

Your CUDA is not setup correctly. Please follow the installation guide.

@divyanshj16
Copy link

@josauder were you able to solve this issue?
Pytorch works perfectly with cudatoolkit installed by Anaconda, but this import fails.

@rusty1s
Copy link
Owner

rusty1s commented Oct 10, 2019

You need to manually install CUDA to make this package work.

@divyanshj16
Copy link

Oh, Alright. Thanks.

@gortali
Copy link

gortali commented Mar 10, 2020

I have the same problem, have you managed to solve the issue? my CUDA installation seems fine

@divyanshj16
Copy link

Reinstall all the libraries again and build them again.
pip install --no-binary torch-cluster torch-cluster --no-cache-dir
Do this for all libraries, replacing the name of the library at the appropriate place.

@github-actions
Copy link

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants