AutoVerse-ai / Verse-library

Library for modeling, simulation, and verification of interacting autonomous agents
https://autoverse-ai.github.io/Verse-library/
University of Illinois/NCSA Open Source License
29 stars 18 forks source link

Required version of ray not available on newer versions of Python #40

Open alex-bellon opened 3 months ago

alex-bellon commented 3 months ago

I'm using Python 3.12, and when setting up the library, I ran into issues installing the dependencies because the required versions (in my case, version 2.4.0 of ray) are not available for Python 3.12:

→ pip install -e . --break-system-packages
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/alex/git/verse_test
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of verse to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement ray~=2.4.0 (from verse) (from versions: 2.31.0, 2.32.0rc0, 2.32.0, 2.33.0, 2.34.0)
ERROR: No matching distribution found for ray~=2.4.0

Since the install failed on ray, I'm not sure if any of the other dependencies run into this issue.

To solve this I used pyenv to switch to Python 3.8, but this might cause an issue for other people and might be worth noting in the README since it says anything 3.8+ should work.

lyg1597 commented 3 months ago

Thanks for pointing this out! We have never tested the tool with Python 3.12. We will update setup script for properly install the tool on Python 3.12.