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

Conda stuck on Installing pip dependencies when trying to create env #1

Open
MyJumperBroke23 opened this issue Feb 7, 2024 · 3 comments

Comments

@MyJumperBroke23
Copy link

When I try to run conda env create -f environment.yml, it gets stuck on Installing pip dependencies: /

@ymahlau
Copy link
Owner

ymahlau commented Feb 9, 2024

Hi, thanks for the information. I believe the problem was that the pip packages of pytorch-geometric now are named with an underscore instead of a dash. Could you test if it works with the updated environment file from my last commit? The installation took about 10min on my PC, maybe let it run for some time.

If it still does not work please let me know as well!
Yours
Yannik

@MyJumperBroke23
Copy link
Author

MyJumperBroke23 commented Feb 11, 2024

Thanks for the response. I was able to create the conda env after changing torch_spline-conv to torch_spline_conv, but when I try to run mutag.py, I get

RuntimeError:
object has no attribute sparse_csc_tensor:

Searching around, this issue seems to be fixed by downgrading the version of torch sparse but I'm currently having issues doing that

@ymahlau
Copy link
Owner

ymahlau commented Feb 12, 2024

Thanks for the remark! The new versions of pytorch geometric require a newer python version and have a different import path for GNNExplainer. I updated the environment file and the call to GNNExplainer. If you remove your old environment with
conda remove --name subgraphx --all
and then install the environment again, it should work. If it doesn't feel free to contact me again!

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