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

update dgl to cuda 12.4 pytorch 2.4.x got error "FileNotFoundError: Cannot find DGL C++ sparse library at /opt/conda/envs/torch124/lib/python3.11/site-packages/dgl/dgl_sparse/libdgl_sparse_pytorch_2.4.0.post301.so" #7791

Open
NicksonCheng opened this issue Sep 9, 2024 · 1 comment

Comments

@NicksonCheng
Copy link

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Environment

  • DGL Version (e.g., 1.0):
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3):
  • OS (e.g., Linux):
  • How you installed DGL (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version (if applicable):
  • GPU models and configuration (e.g. V100):
  • Any other relevant information:

Additional context

update dgl to cuda 12.4 pytorch 2.4.x got error "FileNotFoundError: Cannot find DGL C++ sparse library at /opt/conda/envs/torch124/lib/python3.11/site-packages/dgl/dgl_sparse/libdgl_sparse_pytorch_2.4.0.post301.so"

@jansole
Copy link

jansole commented Sep 17, 2024

hey! i have the same problem. i'm working on a windows machine in colab in python 3.10.

i have relatively no issues installing it:

Installing collected packages: torchdata, dgl
Successfully installed dgl-2.1.0+cu121 torchdata-0.8.0

but when i execute the code i get this:

FileNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 import dgl
2 import networkx as nx
3 import matplotlib.pyplot as plt
4
5 dgl.backend = 'pytorch'

6 frames
/usr/local/lib/python3.10/dist-packages/dgl/graphbolt/init.py in load_graphbolt()
43 path = os.path.join(dirname, "graphbolt", basename)
44 if not os.path.exists(path):
---> 45 raise FileNotFoundError(
46 f"Cannot find DGL C++ graphbolt library at {path}"
47 )

FileNotFoundError: Cannot find DGL C++ graphbolt library at /usr/local/lib/python3.10/dist-packages/dgl/graphbolt/libgraphbolt_pytorch_2.4.0.so

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

No branches or pull requests

2 participants