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

Package conflict #3

Open
anilakash opened this issue Oct 11, 2023 · 8 comments
Open

Package conflict #3

anilakash opened this issue Oct 11, 2023 · 8 comments

Comments

@anilakash
Copy link

Hi,
Thanks for sharing the code for A*NET. While installing packages like torchdrug it is resulting in different types of errors. There is a conflict for the packages. Could you please specify the version for each of these packages.

Thanks

@KiddoZhu
Copy link
Member

Hi. Thanks for interest in this project. The version specifications can be found in requirements.txt.

@anilakash
Copy link
Author

Hi,
Thanks for your response. The conflicts were resolved when I used the latest PyTorch. However, it leads to a Torchdrug error for missing header file namely, SparseTensorUtils.h under ATen. In recent PyTorch this file has been moved to ATen/native. I have requested a pull after committing these changes. Please approve if that works.

@JuliaGast
Copy link

Hello @anilakash
I have the same problem, the torchdrug error for missing header file.

Could you please let me know your solution?
Best and Thanks

@anilakash
Copy link
Author

Hi @JuliaGast
I have forked the official torchdrug implementation and updated the paths to ATen/native. The committed repository is available at https://github.com/anilakash/torchdrug

@Cranooooooo
Copy link

Hi @anilakash
I have problems when setting up the environment.
I guess it is because of the version mismatch between those packages.

May I get the version list of your packages?
Thanks a lot!

@anilakash
Copy link
Author

Hi @anilakash I have problems when setting up the environment. I guess it is because of the version mismatch between those packages.

May I get the version list of your packages? Thanks a lot!

Hi @Cranooooooo,

Thanks for the query. Could you please confirm the specific package. On the other hand, you can try to install other packages as suggested in the original repository and install torchdrug from here https://github.com/anilakash/torchdrug . This works for me. Good luck.

@EauDeData
Copy link

Hi @anilakash , words don't allow me to thank you enough for your help with your fork.
For whomever struggling with something similar (in CUDA12.4, Pytorch 2.40) find here a short bash script that worked for me:


conda create -n astar python==3.10 -y
conda activate astar; conda clean -a -y; pip cache purge
pip install numpy==1.26.4
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.4.0+cu124.html
pip install torch-cluster -f https://data.pyg.org/whl/torch-2.4.0+cu124.html
pip install pyg-lib -f https://data.pyg.org/whl/torch-2.4.0+cu124.html
echo "Now go and thank this brother git@github.com:anilakash/torchdrug.git"
git clone git@github.com:anilakash/torchdrug.git
cd torchdrug
pip install -r requirements.txt
python setup.py install
cd ..; rm -rf ./torchdrug

pip install ogb
pip install easydict
pip install PyYAML
pip install easydict

@anilakash
Copy link
Author

anilakash commented Nov 6, 2024 via email

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