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

Segmentation fault on import torch_geometric #6878

Open
midannii opened this issue Mar 8, 2023 · 2 comments
Open

Segmentation fault on import torch_geometric #6878

midannii opened this issue Mar 8, 2023 · 2 comments
Labels

Comments

@midannii
Copy link

midannii commented Mar 8, 2023

🐛 Describe the bug

When I try to import torch_geometric I get a segmentation fault error.

I am just trying to import torch_geometric to get started and as such haven't even used any functions yet, since every time I try to import I get this error.

(I can import torch_scatter, torch_cluster, and torch_sparse)

Help me plz..

Environment

  • PyG version: latest

  • PyTorch version: 1.12.1

  • OS: linux(centOS)

  • Python version: 3.8.16

  • CUDA/cuDNN version: 11.2

  • How you installed PyTorch and PyG (conda, pip, source):
    - pytorch: conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
    - pyg: conda install pyg -c pyg

  • Any other relevant information (e.g., version of torch-scatter):
    - torch_scatter: 2.1.0
    - torch_cluster: 1.6.0
    - torch_sparse: 0.6.16
    - torch: 1.9.1 (checked in conda list)
    - torch_spline_conv: 1.2.1 (checked in conda list)

@midannii midannii added the bug label Mar 8, 2023
@EdisonLeeeee
Copy link
Contributor

It appears that you are using different versions of PyTorch simultaneously, such as 1.9.1 and 1.12.1. Would you be able to uninstall one of them and try again?

@EulerPascal404
Copy link
Contributor

PyTorch version: 1.12.1
torch: 1.9.1 (checked in conda list)

Yup, it seems you have 2 different versions of pytorch installed. You can uninstall pytorch with the following command: conda uninstall pytorch. Then try reinstalling pytorch - it should fix the error.

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

3 participants