dgl icon indicating copy to clipboard operation
dgl copied to clipboard

Cannot work with pythorch2.5

Open Kakk7447 opened this issue 11 months ago • 3 comments

🐛 Bug

Steps to reproduce the behavior:

  1. I down load dgl in https://www.dgl.ai/pages/start.html use pip(stable),but i can not import

Traceback (most recent call last): File "d:a.py", line 4, in import dgl File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl_init_.py", line 16, in from . import ( File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\dataloading_init_.py", line 13, in
from .dataloader import * File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\dataloading\dataloader.py", line 27, in File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\distributed_init_.py", line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\distributed\dist_graph.py", line 11, in
from .. import backend as F, graphbolt as gb, heterograph_index File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\graphbolt_init_.py", line 36, in load_graphbolt() File "D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\graphbolt_init_.py", line 26, in load_graphbolt
raise FileNotFoundError( FileNotFoundError: Cannot find DGL C++ graphbolt library at D:\For Programming\IDE\Anaconda3-2024.10.1-winx64\Anaconda3-envs\MT\Lib\site-packages\dgl\graphbolt\graphbolt_pytorch_2.5.0.dll

To Reproduce

-->

Expected behavior

How to solve this problem

Environment

  • DGL Version :2.2.1
  • OS : win10
  • How you installed DGL ( pip,):
  • Python version:2.5.0
  • CUDA/cuDNN version (if applicable):12.4

Additional context

Image

Kakk7447 avatar May 04 '25 01:05 Kakk7447

Hi,

I got something very similar. Except I can't seem to download it.

Collecting dgl==2.5.0+cu121 ERROR: HTTP error 403 while getting https://data.dgl.ai/wheels/torch-2.5/cu121/dgl-2.5.0%2Bcu121-cp39-cp39-manylinux1_x86_64.whl ERROR: Could not install requirement dgl==2.5.0+cu121 from https://data.dgl.ai/wheels/torch-2.5/cu121/dgl-2.5.0%2Bcu121-cp39-cp39-manylinux1_x86_64.whl because of HTTP error 403 Client Error: Forbidden for url: https://data.dgl.ai/wheels/torch-2.5/cu121/dgl-2.5.0%2Bcu121-cp39-cp39-manylinux1_x86_64.whl for URL https://data.dgl.ai/wheels/torch-2.5/cu121/dgl-2.5.0%2Bcu121-cp39-cp39-manylinux1_x86_64.whl

SaiMahitVaddadi avatar May 15 '25 14:05 SaiMahitVaddadi

This issue has been automatically marked as stale due to lack of activity. It will be closed if no further activity occurs. Thank you

github-actions[bot] avatar Jun 15 '25 01:06 github-actions[bot]

I have the same problem of access denied

$ pip install  dgl -f https://data.dgl.ai/wheels/torch-2.4/cu121/repo.html
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Looking in links: https://data.dgl.ai/wheels/torch-2.4/cu121/repo.html
Collecting dgl
  ERROR: HTTP error 403 while getting https://data.dgl.ai/wheels/torch-2.4/cu121/dgl-2.5.0%2Bcu121-cp312-cp312-manylinux1_x86_64.whl (from https://data.dgl.ai/wheels/torch-2.4/cu121/repo.html)
Image

lll123github avatar Nov 12 '25 14:11 lll123github