pyg-lib icon indicating copy to clipboard operation
pyg-lib copied to clipboard

Error while using LinkLoaderNeighbor function which is indirectly due to installations issues. (Please consider it urgently as my project is stuck due this)

Open ishanki19-pixel opened this issue 1 year ago • 18 comments

🐛 Describe the bug

I am attaching the Image of the bug: Screenshot (513)

Environment

  • pyg-lib version:
  • PyTorch version: 2.2.1+cu121
  • OS: Windows
  • Python version:3.10.12
  • CUDA/cuDNN version: CPU
  • How you installed PyTorch and pyg-lib (conda, pip, source): pip (Note: there was also issue which is currently already opened by someone regarding the setup.py file)
  • Any other relevant information:

ishanki19-pixel avatar Mar 21 '24 08:03 ishanki19-pixel

Have you considered to simply upgrade pyg-lib (as the error suggests)?

rusty1s avatar Mar 25 '24 07:03 rusty1s

I am again and again getting error regarding the build failing, I have many different ways still build is getting failed for pyg-lib. Uploading Screenshot (519).png…

ishanki19-pixel avatar Mar 25 '24 11:03 ishanki19-pixel

Actually, I have just gone through the repo of pyg-lib where I found that they have informed themselves that currently window wheels are not working and they are working over that!!! I hope this issue might get resolved asap!

ishanki19-pixel avatar Mar 25 '24 11:03 ishanki19-pixel

I see. I missed the part that you are working on Windows. What does

pip install ninja wheel cmake
pip install --verbose git+https://github.com/pyg-team/pyg-lib.git

return in your case?

rusty1s avatar Mar 25 '24 14:03 rusty1s

It returns the same error as told before! I hope the team would come up with a solution asap!

ishanki19-pixel avatar Mar 26 '24 07:03 ishanki19-pixel

I was referring to the installation log, not the error you see when you wanna use edge-level temporal sampling.

rusty1s avatar Mar 26 '24 08:03 rusty1s

Yeah, I was too referring to the installation itself! but there is problem with the wheels and setup.py file.

ishanki19-pixel avatar Mar 27 '24 05:03 ishanki19-pixel

Can you post the installation log here when running

pip install ninja wheel cmake
pip uninstall pyg-lib
pip uninstall pyg-lib
pip install --verbose git+https://github.com/pyg-team/pyg-lib.git

rusty1s avatar Mar 27 '24 12:03 rusty1s

After running the above code, I got this output:

Screenshot (520) Screenshot (521) Screenshot (522) Screenshot (523) Screenshot (524)

ishanki19-pixel avatar Mar 28 '24 02:03 ishanki19-pixel

Got it, can you try to install via

FORCE_CUDA=0 pip install --verbose git+https://github.com/pyg-team/pyg-lib.git

rusty1s avatar Mar 28 '24 14:03 rusty1s

Getting the same errors: Screenshot (525) Screenshot (526) Screenshot (527) Screenshot (528) Screenshot (529)

ishanki19-pixel avatar Mar 28 '24 14:03 ishanki19-pixel

That's very strange. It still tries to build CUDA although FORCE_CUDA=0 (seems Windows related). Can you download the repo locally, change this line to

            '-DWITH_CUDA=OFF',

and try again (by installing via pip install --verbose .)?

rusty1s avatar Mar 29 '24 08:03 rusty1s

Its not working again, showing the same error even if I tried it running through my cmd.

ishanki19-pixel avatar Apr 03 '24 18:04 ishanki19-pixel

Okay, I can try to find some time to enable Windows builds, but it may take some time. You can also try to install torch-sparse if pyg-lib causes issues.

rusty1s avatar Apr 03 '24 19:04 rusty1s

Okay but pls try to fix this asap.

ishanki19-pixel avatar Apr 06 '24 07:04 ishanki19-pixel

pyg-lib nows supports Windows, and you can install it from nightly:

pip install pyg-lib -f https://data.pyg.org/whl/nightly/torch-${TORCH}+${CUDA}.html

by replacing ${TORCH} and ${CUDA} according to your installation.

rusty1s avatar Apr 08 '24 11:04 rusty1s

pyg-lib nows supports Windows, and you can install it from nightly:

pip install pyg-lib -f https://data.pyg.org/whl/nightly/torch-${TORCH}+${CUDA}.html

by replacing ${TORCH} and ${CUDA} according to your installation.

Thanks, @rusty1s, it works as it should be!

iishutov avatar Apr 11 '24 15:04 iishutov

yes @rusty1s thank you so much, its working now!!!!

ishanki19-pixel avatar Apr 12 '24 16:04 ishanki19-pixel