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

Any Plan for releasing the latest version of DGL on Pip? #7825

Open
kenko911 opened this issue Oct 15, 2024 · 6 comments
Open

Any Plan for releasing the latest version of DGL on Pip? #7825

kenko911 opened this issue Oct 15, 2024 · 6 comments

Comments

@kenko911
Copy link

Hi DGL developers,

I am the developer of MatGL (https://github.com/materialsvirtuallab/matgl), a framework built on DGL and PyTorch. Recently, we encountered an issue updating our PyTorch version to 2.4.0 via bot because the latest DGL version available on Pip, 2.2.1, does not support PyTorch 2.4.0. I am wondering if there are any plans to release the latest version on Pip. Thank you!

Best
Kenko

@kenko911 kenko911 changed the title Any Plan for releasing the latest version of DGL in Pip? Any Plan for releasing the latest version of DGL on Pip? Oct 16, 2024
@Bin-cc
Copy link

Bin-cc commented Oct 22, 2024

Hi Kenko,

Have you successfully solved this problem? I also encountered such situation, then I tried to install torch==2.1.0 and torchdata==0.7.0 while remaining dgl==2.2.1.

It was indeed useful for importing dgl, but when I tried to add edges to graph, a new error would rise: RuntimeError: Could not infer dtype of numpy.int64. Thus, the problem has been bothering me. It will be grateful if you have any new ideas and share them with me.

Best,
Bin

@rudongyu
Copy link
Collaborator

Have you tried with pip install dgl -f https://data.dgl.ai/wheels/torch-2.4/cu124/repo.html? (https://www.dgl.ai/pages/start.html) It contains wheels for dgl 2.4.0 based on pytorch 2.4

@DanielYang59
Copy link

DanielYang59 commented Nov 4, 2024

@kenko911 Great to see you here. Looks like dgl has their own way to distribute bdist and sdist. I'm not a dgl user at all, but they only ship 2.2.1 wheels for windows only, 2.2.0 wheels for macos only and so on.

For the time being we might need to build from source ourselves, or perhaps we might need to store a pre-built one somewhere as a temporary solution (as the build is pretty costly).

Copy link

github-actions bot commented Dec 5, 2024

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

@ElliottKasoar
Copy link

Have you tried with pip install dgl -f https://data.dgl.ai/wheels/torch-2.4/cu124/repo.html? (https://www.dgl.ai/pages/start.html) It contains wheels for dgl 2.4.0 based on pytorch 2.4

This is great as a solution for individuals, but it makes it very difficult to develop anything with dgl as a dependency, as it's not at all straightforward to specify this in a pyproject.toml file (or similar).

(The build-from-source requirements for MacOS/Windows also makes it unrealistic to run any cross-platform CI that depends on dgl, which is disappointing.)

@kenko911
Copy link
Author

Could any DGL developers provide comments or insights on this? Thank you!

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

5 participants