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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing the dependency libraries, installing torch_geometric reported an error. #9103

Open
DL-JerkLearner opened this issue Mar 26, 2024 · 4 comments

Comments

@DL-JerkLearner
Copy link

馃樀 Describe the installation problem

The first combination: torch-cluster-1.6.0+pt113cu117, torch-scatter-2.1.0+pt113cu117, torch-sparse-0.6.16+pt113cu117, torch-spline-conv-1.2.1+pt113cu117. Installing torch-geometric-2.5.1 gave me an error**:** **Could not find module 'D:\Softwares\Anaconda\envs\pytorch\Lib\site-packages\torch_cluster_grid_cuda.pyd' (or one of its dependencies). Try using the full path with constructor syntax.**I've tried upgrading or downgrading torch-geometric, neither works. However, some versions display torch-sparse errors.

On top of that, I tried different versions of the dependency libraries. torch-cluster-1.6.1+pt113cu117, torch-scatter-2.1.1+pt113cu117, torch-sparse-0.6.17+pt113cu117, torch-spline-conv-1.2.2+pt113cu117. The same error will be displayed, but of a different type.AttributeError: partially initialized module 'torch_geometric' has no attribute 'typing' (most likely due to a circular import)
Overall, different torch_geometric versions cause different dependent libraries to report errors, not sure how to fix that.

Environment

  • PyG version:2.5.2
  • PyTorch version:1.13.1
  • OS:
  • Python version:2.8.2
  • CUDA/cuDNN version:11.7
  • How you installed PyTorch and PyG (conda, pip, source): pip
  • Any other relevant information (e.g., version of torch-scatter):
@rusty1s
Copy link
Member

rusty1s commented Mar 26, 2024

Could not find module 'D:\Softwares\Anaconda\envs\pytorch\Lib\site-packages\torch_cluster_grid_cuda.pyd'

I am wondering why it picks up this part. Can you confirm that _grid_cuda.pyg exist in D:\Softwares\Anaconda\envs\pytorch\Lib\site-packages\torch_cluster?

@DL-JerkLearner
Copy link
Author

And here's another weird thing. ''from torch_geometric.data import InMemoryDataset, download_url'' This command works. However, ''from torch_geometric.nn import GCNConv'', this command reports an error that the file _grid_cuda.pyg could not be found.

@DL-JerkLearner
Copy link
Author

I deleted all the libraries and reinstalled them again. I still get an error at 'torch_geometric.nn' with the message: 'Could not find module 'D:\Softwares\Anaconda\envs\pytorch\Lib' (or one of its dependencies). site-packages\torch_cluster_grid_cuda.pyd' (or one of its dependencies). Try using the full path with constructor syntax.''

Similarly, the command 'import torch_geometric.datasets' also gives the same error.

But I double-checked the torch_cluster folder and found that the file '_grid_cuda.pyd' is in that folder, but it tells me I can't find it.

@rusty1s
Copy link
Member

rusty1s commented Mar 27, 2024

Mh, that's impossible. Which version of PyG are you using? We dropped torch-cluster as a required dependency a while ago.

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

No branches or pull requests

2 participants