-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docs: least install probs w/ Python >=3.10 AND <3.13 and to install PyTorch BEFORE Genesis fixes numpy ver problems #354
Comments
what's causing issue with 3.13? |
Under the summary is the output from my M3 MBP when I tried to install Genesis and PyTorch latest in a clean Conda Python 3.13.1 env.
Also, as said, to avoid numpy errors from PyTorch numpy 2.0.1 and make Genesis work AT ALL, install PyTorch first and THEN Genesis with its numpy 1.26.4, replacing 2.0.1 (and pillow 11.0.0?). (seemingly incompatibility between numpy v 1 & 2 and Genesis needs v 1) Edit 2h later, one more thing which I overlooked (dunno how important): HTH (base) max:Genesis gy$ conda activate genesis The conflict is caused by: To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
LibMambaUnsatisfiableError: Encountered problems while solving:
Could not solve for environment specs |
in the pyproject.toml file we specified numpy=1.26 -- numpy 2 has various compatibility issues with many packages |
Sure, and because PyTorch (at least latest) overwrites Genesis' numpy 1.26 when you follow the docs and install it AFTER Genesis, the docs should be changed to install PyTorch FIRST and THEN Genesis to overwrite 2.0 with 1.26 and not vv. And because torchvisoin,.. has problems with 3.13, docs should say python<3.13. These issues are not apparent when you adapted your dev environment over time, but in a clean install. Thanks |
Got it! thanks for the heads up. Will update doc |
Edit 2 days later on Sun 241229:
From what I see from the "minimum Python version" thread, >=3.10 <3.13 would avoid install issues some macOSes.
End edit
Originally:
As even Hello ran into issues with the suggested setup (mainly numpy, e.g. ValueError) on any platform (x64 Ubuntu 24.04 & Win 11, MBP M3) I put some more work and analysis.
First off, install runs into all kinds of issues with Python 3.13, so docs should say Python >=3.9 <3.13.
Running into numpy errors I installed PyTorch before Genesis (from latest repo) in a 3.12(.8) env, which replaced numpy 2.0.1 with 1.26.4 from Genesis which made Hello run.
Cheers
G.
The text was updated successfully, but these errors were encountered: