astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.44k stars 460 forks source link

no such file or directory: cmake #1329

Open quinn-dougherty opened 1 month ago

quinn-dougherty commented 1 month ago

Steps to Reproduce

  1. rye init proj
  2. rye add safety-gymnasium

Expected Result

rye installs transitive closure (in this case, mujoco)

Actual Result

error: [Errno 2] No such file or directory: 'cmake'

Version Info

rye 0.37.0 commit: 0.37.0 (1980-01-01) platform: linux (x86_64) self-python: cpython@3.12.2 symlink support: true uv enabled: true

Stacktrace

╰─>$ rye add --verbose safety-gymnasium
Added safety-gymnasium>=1.0.0 as regular dependency
Python version already downloaded. Skipping.
Reusing already existing virtualenv
Generating production lockfile: /home/qd/Projects/safeguarded/shields-research-group/safe-veloc/requirements.lock
Resolved 21 packages in 252ms
-e file:.
    # via -r /tmp/.tmp6OCayr
absl-py==2.1.0
    # via mujoco
cloudpickle==3.0.0
    # via gymnasium
farama-notifications==0.0.4
    # via gymnasium
glfw==2.7.0
    # via mujoco
gymnasium==0.28.1
    # via
    #   gymnasium-robotics
    #   pettingzoo
    #   safety-gymnasium
gymnasium-robotics==1.2.2
    # via safety-gymnasium
imageio==2.34.2
    # via
    #   gymnasium-robotics
    #   safety-gymnasium
jax-jumpy==1.0.0
    # via gymnasium
jinja2==3.1.4
    # via gymnasium-robotics
markupsafe==2.1.5
    # via jinja2
mujoco==2.3.3
    # via
    #   gymnasium-robotics
    #   safety-gymnasium
numpy==1.23.5
    # via
    #   gymnasium
    #   gymnasium-robotics
    #   imageio
    #   jax-jumpy
    #   mujoco
    #   pettingzoo
pettingzoo==1.24.3
    # via gymnasium-robotics
pillow==10.4.0
    # via imageio
pygame==2.1.0
    # via safety-gymnasium
pyopengl==3.1.7
    # via mujoco
pyyaml==6.0.2
    # via safety-gymnasium
safety-gymnasium==1.0.0
    # via
    #   -r /tmp/.tmp6OCayr
    #   safe-veloc
typing-extensions==4.12.2
    # via gymnasium
xmltodict==0.13.0
    # via safety-gymnasium
Generating dev lockfile: /home/qd/Projects/safeguarded/shields-research-group/safe-veloc/requirements-dev.lock
Resolved 21 packages in 16ms
-e file:.
    # via -r /tmp/.tmpuHC9wi
absl-py==2.1.0
    # via mujoco
cloudpickle==3.0.0
    # via gymnasium
farama-notifications==0.0.4
    # via gymnasium
glfw==2.7.0
    # via mujoco
gymnasium==0.28.1
    # via
    #   gymnasium-robotics
    #   pettingzoo
    #   safety-gymnasium
gymnasium-robotics==1.2.2
    # via safety-gymnasium
imageio==2.34.2
    # via
    #   gymnasium-robotics
    #   safety-gymnasium
jax-jumpy==1.0.0
    # via gymnasium
jinja2==3.1.4
    # via gymnasium-robotics
markupsafe==2.1.5
    # via jinja2
mujoco==2.3.3
    # via
    #   gymnasium-robotics
    #   safety-gymnasium
numpy==1.23.5
    # via
    #   gymnasium
    #   gymnasium-robotics
    #   imageio
    #   jax-jumpy
    #   mujoco
    #   pettingzoo
pettingzoo==1.24.3
    # via gymnasium-robotics
pillow==10.4.0
    # via imageio
pygame==2.1.0
    # via safety-gymnasium
pyopengl==3.1.7
    # via mujoco
pyyaml==6.0.2
    # via safety-gymnasium
safety-gymnasium==1.0.0
    # via
    #   -r /tmp/.tmpuHC9wi
    #   safe-veloc
typing-extensions==4.12.2
    # via gymnasium
xmltodict==0.13.0
    # via safety-gymnasium
Installing dependencies
DEBUG uv 0.2.27
DEBUG Searching for Python interpreter in system path
DEBUG Found cpython 3.12.2 at `/home/qd/Projects/safeguarded/shields-research-group/safe-veloc/.venv/bin/python3` (active virtual environment)
DEBUG Using Python 3.12.2 environment at .venv/bin/python3
DEBUG Acquired lock for `.venv`
DEBUG Using request timeout of 30s
DEBUG Found PEP 621 metadata for /home/qd/Projects/safeguarded/shields-research-group/safe-veloc in `pyproject.toml` (safe-veloc)
DEBUG Solving with installed Python version: 3.12.2
DEBUG Adding direct dependency: absl-py==2.1.0
DEBUG Adding direct dependency: cloudpickle==3.0.0
DEBUG Adding direct dependency: farama-notifications==0.0.4
DEBUG Adding direct dependency: glfw==2.7.0
DEBUG Adding direct dependency: gymnasium==0.28.1
DEBUG Adding direct dependency: gymnasium-robotics==1.2.2
DEBUG Adding direct dependency: imageio==2.34.2
DEBUG Adding direct dependency: jax-jumpy==1.0.0
DEBUG Adding direct dependency: jinja2==3.1.4
DEBUG Adding direct dependency: markupsafe==2.1.5
DEBUG Adding direct dependency: mujoco==2.3.3
DEBUG Adding direct dependency: numpy==1.23.5
DEBUG Adding direct dependency: pettingzoo==1.24.3
DEBUG Adding direct dependency: pillow==10.4.0
DEBUG Adding direct dependency: pygame==2.1.0
DEBUG Adding direct dependency: pyopengl==3.1.7
DEBUG Adding direct dependency: pyyaml==6.0.2
DEBUG Adding direct dependency: safety-gymnasium==1.0.0
DEBUG Adding direct dependency: typing-extensions==4.12.2
DEBUG Adding direct dependency: xmltodict==0.13.0
DEBUG Adding direct dependency: safe-veloc*
DEBUG Searching for a compatible version of safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc (*)
DEBUG Found fresh response for: https://pypi.org/simple/absl-py/
DEBUG Found fresh response for: https://pypi.org/simple/gymnasium/
DEBUG Found fresh response for: https://pypi.org/simple/cloudpickle/
DEBUG Found fresh response for: https://pypi.org/simple/gymnasium-robotics/
DEBUG Found fresh response for: https://pypi.org/simple/jax-jumpy/
DEBUG Found fresh response for: https://pypi.org/simple/farama-notifications/
DEBUG Found fresh response for: https://pypi.org/simple/imageio/
DEBUG Acquired lock for `/home/qd/.cache/uv/built-wheels-v3/editable/2189ef4313c3a8c3`
DEBUG Found fresh response for: https://pypi.org/simple/glfw/
DEBUG Found fresh response for: https://pypi.org/simple/jinja2/
DEBUG Found fresh response for: https://pypi.org/simple/pettingzoo/
DEBUG Found fresh response for: https://pypi.org/simple/typing-extensions/
DEBUG Found fresh response for: https://pypi.org/simple/xmltodict/
DEBUG Found fresh response for: https://pypi.org/simple/safety-gymnasium/
DEBUG Found fresh response for: https://pypi.org/simple/pyopengl/
DEBUG Found fresh response for: https://pypi.org/simple/markupsafe/
DEBUG Found fresh response for: https://pypi.org/simple/pyyaml/
DEBUG Found fresh response for: https://pypi.org/simple/mujoco/
DEBUG Preparing metadata for: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc
DEBUG No static `PKG-INFO` available for: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc (MissingPkgInfo)
DEBUG Found static `pyproject.toml` for: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc
DEBUG No workspace root found, using project root
DEBUG Found fresh response for: https://pypi.org/simple/pygame/
DEBUG Searching for a compatible version of absl-py (==2.1.0)
DEBUG Selecting: absl-py==2.1.0 [compatible] (absl_py-2.1.0-py3-none-any.whl)
DEBUG Found fresh response for: https://pypi.org/simple/pillow/
DEBUG Found fresh response for: https://pypi.org/simple/numpy/
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/a2/ad/e0d3c824784ff121c03cc031f944bc7e139a8f1870ffd2845cc2dd76f6c4/absl_py-2.1.0-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of cloudpickle (==3.0.0)
DEBUG Selecting: cloudpickle==3.0.0 [compatible] (cloudpickle-3.0.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/96/43/dae06432d0c4b1dc9e9149ad37b4ca8384cf6eb7700cd9215b177b914f0a/cloudpickle-3.0.0-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of farama-notifications (==0.0.4)
DEBUG Selecting: farama-notifications==0.0.4 [compatible] (Farama_Notifications-0.0.4-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/05/2c/ffc08c54c05cdce6fbed2aeebc46348dbe180c6d2c541c7af7ba0aa5f5f8/Farama_Notifications-0.0.4-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of glfw (==2.7.0)
DEBUG Selecting: glfw==2.7.0 [compatible] (glfw-2.7.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2014_x86_64.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/ec/e8/462afb18f3627d11d4dab74228b52094e1a121d57fe57957c821c50bbfba/glfw-2.7.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2014_x86_64.whl.metadata
DEBUG Searching for a compatible version of gymnasium (==0.28.1)
DEBUG Selecting: gymnasium==0.28.1 [compatible] (gymnasium-0.28.1-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/60/82/3762ef4555791a729ae554e13c011efe5e8347d7eba9ea5ed245a8d1b234/gymnasium-0.28.1-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of gymnasium-robotics (==1.2.2)
DEBUG Selecting: gymnasium-robotics==1.2.2 [compatible] (gymnasium_robotics-1.2.2-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/65/fb/bf0d6778797776b88dc344843a4c6f4447ef5891249143655dc78ef618c8/gymnasium_robotics-1.2.2-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of imageio (==2.34.2)
DEBUG Selecting: imageio==2.34.2 [compatible] (imageio-2.34.2-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/3d/84/f1647217231f6cc46883e5d26e870cc3e1520d458ecd52d6df750810d53c/imageio-2.34.2-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of jax-jumpy (==1.0.0)
DEBUG Selecting: jax-jumpy==1.0.0 [compatible] (jax_jumpy-1.0.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/73/23/338caee543d80584916da20f018aeb017764509d964fd347b97f41f97baa/jax_jumpy-1.0.0-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of jinja2 (==3.1.4)
DEBUG Selecting: jinja2==3.1.4 [compatible] (jinja2-3.1.4-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of markupsafe (==2.1.5)
DEBUG Selecting: markupsafe==2.1.5 [compatible] (MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/0a/0d/2454f072fae3b5a137c119abf15465d1771319dfe9e4acbb31722a0fff91/MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG Searching for a compatible version of mujoco (==2.3.3)
DEBUG Selecting: mujoco==2.3.3 [compatible] (mujoco-2.3.3.zip)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/21/2c/f59255b4fbd159a374c4077721bc5baac11afcc15b8a28f8c7658ac89df5/mujoco-2.3.3-2-cp310-cp310-macosx_10_12_x86_64.whl.metadata
DEBUG Searching for a compatible version of numpy (==1.23.5)
DEBUG Selecting: numpy==1.23.5 [compatible] (numpy-1.23.5.tar.gz)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/25/7b/3b587a62aa54ad7ecf90eabfc77cf78e96d3df1d0e8c31fc534ad3ca6e17/numpy-1.23.5-pp38-pypy38_pp73-macosx_10_9_x86_64.whl.metadata
DEBUG Searching for a compatible version of pettingzoo (==1.24.3)
DEBUG Selecting: pettingzoo==1.24.3 [compatible] (pettingzoo-1.24.3-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/c8/4e/eae7b6ecb801573fbec0c76b0fd1dd95bfd1a7fd8770bdd20242044e91f0/pettingzoo-1.24.3-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of pillow (==10.4.0)
DEBUG Selecting: pillow==10.4.0 [compatible] (pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/55/77/40daddf677897a923d5d33329acd52a2144d54a9644f2a5422c028c6bf2d/pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata
DEBUG Searching for a compatible version of pygame (==2.1.0)
DEBUG Selecting: pygame==2.1.0 [compatible] (pygame-2.1.0.tar.gz)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/d9/99/a15d138e9981acea150834cb570cc0f3b57a952e1fdba1aafd8f11b06241/pygame-2.1.0-pp36-pypy36_pp73-win32.whl.metadata
DEBUG Searching for a compatible version of pyopengl (==3.1.7)
DEBUG Selecting: pyopengl==3.1.7 [compatible] (PyOpenGL-3.1.7-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/99/48/00e31747821d3fc56faddd00a4725454d1e694a8b67d715cf20f531506a5/PyOpenGL-3.1.7-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of pyyaml (==6.0.2)
DEBUG Selecting: pyyaml==6.0.2 [compatible] (PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
DEBUG Searching for a compatible version of safety-gymnasium (==1.0.0)
DEBUG Selecting: safety-gymnasium==1.0.0 [compatible] (safety_gymnasium-1.0.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/b1/79/de1f26e1cdeb96032ef55e4f69ca12d0c3afa6fa8331b3c75f86bf6785da/safety_gymnasium-1.0.0-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of typing-extensions (==4.12.2)
DEBUG Selecting: typing-extensions==4.12.2 [compatible] (typing_extensions-4.12.2-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of xmltodict (==0.13.0)
DEBUG Selecting: xmltodict==0.13.0 [compatible] (xmltodict-0.13.0-py2.py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/94/db/fd0326e331726f07ff7f40675cd86aa804bfd2e5016c727fa761c934990e/xmltodict-0.13.0-py2.py3-none-any.whl.metadata
DEBUG Tried 21 versions: absl-py 1, cloudpickle 1, farama-notifications 1, glfw 1, gymnasium 1, gymnasium-robotics 1, imageio 1, jax-jumpy 1, jinja2 1, markupsafe 1, mujoco 1, numpy 1, pettingzoo 1, pillow 1, pygame 1, pyopengl 1, pyyaml 1, safe-veloc 1, safety-gymnasium 1, typing-extensions 1, xmltodict 1
DEBUG Split specific environment resolution took 0.013s
Resolved 21 packages in 14ms
DEBUG Requirement already cached: absl-py==2.1.0
DEBUG Requirement already cached: cloudpickle==3.0.0
DEBUG Requirement already cached: farama-notifications==0.0.4
DEBUG Requirement already cached: glfw==2.7.0
DEBUG Requirement already cached: gymnasium==0.28.1
DEBUG Identified uncached requirement: gymnasium-robotics==1.2.2
DEBUG Requirement already cached: imageio==2.34.2
DEBUG Requirement already cached: jax-jumpy==1.0.0
DEBUG Requirement already cached: jinja2==3.1.4
DEBUG Requirement already cached: markupsafe==2.1.5
DEBUG Identified uncached requirement: mujoco==2.3.3
DEBUG Identified uncached requirement: numpy==1.23.5
DEBUG Requirement already cached: pettingzoo==1.24.3
DEBUG Requirement already cached: pillow==10.4.0
DEBUG Identified uncached requirement: pygame==2.1.0
DEBUG Requirement already cached: pyopengl==3.1.7
DEBUG Requirement already cached: pyyaml==6.0.2
DEBUG Identified uncached requirement: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc
DEBUG Identified uncached requirement: safety-gymnasium==1.0.0
DEBUG Requirement already cached: typing-extensions==4.12.2
DEBUG Requirement already cached: xmltodict==0.13.0
DEBUG Acquired lock for `/home/qd/.cache/uv/built-wheels-v3/editable/2189ef4313c3a8c3`
DEBUG Acquired lock for `/home/qd/.cache/uv/built-wheels-v3/index/b2a7eb67d4c26b82/numpy/1.23.5`
DEBUG Acquired lock for `/home/qd/.cache/uv/built-wheels-v3/index/b2a7eb67d4c26b82/mujoco/2.3.3`
DEBUG Acquired lock for `/home/qd/.cache/uv/built-wheels-v3/index/b2a7eb67d4c26b82/pygame/2.1.0`
DEBUG Building: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc
DEBUG No cache entry for: https://files.pythonhosted.org/packages/b1/79/de1f26e1cdeb96032ef55e4f69ca12d0c3afa6fa8331b3c75f86bf6785da/safety_gymnasium-1.0.0-py3-none-any.whl
DEBUG No cache entry for: https://files.pythonhosted.org/packages/65/fb/bf0d6778797776b88dc344843a4c6f4447ef5891249143655dc78ef618c8/gymnasium_robotics-1.2.2-py3-none-any.whl
INFO Ignoring empty directory
DEBUG No cache entry for: https://files.pythonhosted.org/packages/7c/c0/57f9709e2e542a6af8fe4623627a74329869cdc21f03486f521c7b90fc57/pygame-2.1.0.tar.gz
DEBUG No cache entry for: https://files.pythonhosted.org/packages/42/38/775b43da55fa7473015eddc9a819571517d9a271a9f8134f68fb9be2f212/numpy-1.23.5.tar.gz
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/7c/03/7ce6078745085febd22fc4586a63016a71125031b97883d456ce1d64e5ed/mujoco-2.3.3.zip
DEBUG Building: mujoco==2.3.3
DEBUG Solving with installed Python version: 3.12.2
INFO Ignoring empty directory
DEBUG Adding direct dependency: hatchling*
DEBUG Found stale response for: https://pypi.org/simple/hatchling/
DEBUG Sending revalidation request for: https://pypi.org/simple/hatchling/
DEBUG Solving with installed Python version: 3.12.2
DEBUG Adding direct dependency: setuptools>=40.8.0
DEBUG Found stale response for: https://pypi.org/simple/setuptools/
DEBUG Sending revalidation request for: https://pypi.org/simple/setuptools/
DEBUG Found not-modified response for: https://pypi.org/simple/hatchling/
DEBUG Found not-modified response for: https://pypi.org/simple/setuptools/
DEBUG Searching for a compatible version of hatchling (*)
DEBUG Selecting: hatchling==1.25.0 [compatible] (hatchling-1.25.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/0c/8b/90e80904fdc24ce33f6fc6f35ebd2232fe731a8528a22008458cf197bc4d/hatchling-1.25.0-py3-none-any.whl.metadata
DEBUG Adding transitive dependency for hatchling==1.25.0: packaging>=23.2
DEBUG Adding transitive dependency for hatchling==1.25.0: pathspec>=0.10.1
DEBUG Adding transitive dependency for hatchling==1.25.0: pluggy>=1.0.0
DEBUG Adding transitive dependency for hatchling==1.25.0: trove-classifiers*
DEBUG Searching for a compatible version of setuptools (>=40.8.0)
DEBUG Selecting: setuptools==72.1.0 [compatible] (setuptools-72.1.0-py3-none-any.whl)
DEBUG Found stale response for: https://pypi.org/simple/packaging/
DEBUG Sending revalidation request for: https://pypi.org/simple/packaging/
DEBUG Found stale response for: https://pypi.org/simple/pathspec/
DEBUG Sending revalidation request for: https://pypi.org/simple/pathspec/
DEBUG Found stale response for: https://pypi.org/simple/pluggy/
DEBUG Sending revalidation request for: https://pypi.org/simple/pluggy/
DEBUG Found stale response for: https://pypi.org/simple/trove-classifiers/
DEBUG Sending revalidation request for: https://pypi.org/simple/trove-classifiers/
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/e1/58/e0ef3b9974a04ce9cde2a7a33881ddcb2d68450803745804545cdd8d258f/setuptools-72.1.0-py3-none-any.whl.metadata
DEBUG Tried 1 versions: setuptools 1
DEBUG Split specific environment resolution took 0.025s
DEBUG Installing in setuptools==72.1.0 in /home/qd/.cache/uv/builds-v0/.tmpGdNSjS
DEBUG Requirement already cached: setuptools==72.1.0
DEBUG Installing build requirement: setuptools==72.1.0
DEBUG Found not-modified response for: https://pypi.org/simple/packaging/
DEBUG Searching for a compatible version of packaging (>=23.2)
DEBUG Selecting: packaging==24.1 [compatible] (packaging-24.1-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl.metadata
DEBUG Downloading source distribution: pygame==2.1.0
DEBUG Downloading source distribution: numpy==1.23.5
DEBUG Found not-modified response for: https://pypi.org/simple/pathspec/
DEBUG Searching for a compatible version of pathspec (>=0.10.1)
DEBUG Selecting: pathspec==0.12.1 [compatible] (pathspec-0.12.1-py3-none-any.whl)
DEBUG Found not-modified response for: https://pypi.org/simple/pluggy/
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of pluggy (>=1.0.0)
DEBUG Selecting: pluggy==1.5.0 [compatible] (pluggy-1.5.0-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl.metadata
DEBUG Calling `setuptools.build_meta:__legacy__.get_requires_for_build_wheel()`
DEBUG Found not-modified response for: https://pypi.org/simple/trove-classifiers/
DEBUG Searching for a compatible version of trove-classifiers (*)
DEBUG Selecting: trove-classifiers==2024.7.2 [compatible] (trove_classifiers-2024.7.2-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/0f/b0/09794439a62a7dc18bffdbf145aaf50297fd994890b11da27a13e376b947/trove_classifiers-2024.7.2-py3-none-any.whl.metadata
DEBUG Tried 5 versions: hatchling 1, packaging 1, pathspec 1, pluggy 1, trove-classifiers 1
DEBUG Split specific environment resolution took 0.043s
DEBUG Installing in hatchling==1.25.0, packaging==24.1, pathspec==0.12.1, pluggy==1.5.0, trove-classifiers==2024.7.2 in /home/qd/.cache/uv/builds-v0/.tmpGB5hYr
DEBUG Requirement already cached: hatchling==1.25.0
DEBUG Requirement already cached: packaging==24.1
DEBUG Requirement already cached: pathspec==0.12.1
DEBUG Requirement already cached: pluggy==1.5.0
DEBUG Requirement already cached: trove-classifiers==2024.7.2
DEBUG Installing build requirements: hatchling==1.25.0, packaging==24.1, pathspec==0.12.1, pluggy==1.5.0, trove-classifiers==2024.7.2
DEBUG Calling `hatchling.build.get_requires_for_build_editable()`
DEBUG Installing extra requirements for build backend
DEBUG Solving with installed Python version: 3.12.2
DEBUG Adding direct dependency: hatchling*
DEBUG Adding direct dependency: editables>=0.3, <1.dev0
DEBUG Searching for a compatible version of hatchling (*)
DEBUG Selecting: hatchling==1.25.0 [compatible] (hatchling-1.25.0-py3-none-any.whl)
DEBUG Adding transitive dependency for hatchling==1.25.0: packaging>=23.2
DEBUG Adding transitive dependency for hatchling==1.25.0: pathspec>=0.10.1
DEBUG Adding transitive dependency for hatchling==1.25.0: pluggy>=1.0.0
DEBUG Adding transitive dependency for hatchling==1.25.0: trove-classifiers*
DEBUG Found stale response for: https://pypi.org/simple/editables/
DEBUG Sending revalidation request for: https://pypi.org/simple/editables/
DEBUG Found not-modified response for: https://pypi.org/simple/editables/
DEBUG Searching for a compatible version of editables (>=0.3, <1.dev0)
DEBUG Selecting: editables==0.5 [compatible] (editables-0.5-py3-none-any.whl)
DEBUG Found fresh response for: https://files.pythonhosted.org/packages/6b/be/0f2f4a5e8adc114a02b63d92bf8edbfa24db6fc602fca83c885af2479e0e/editables-0.5-py3-none-any.whl.metadata
DEBUG Searching for a compatible version of packaging (>=23.2)
DEBUG Selecting: packaging==24.1 [compatible] (packaging-24.1-py3-none-any.whl)
DEBUG Searching for a compatible version of pathspec (>=0.10.1)
DEBUG Selecting: pathspec==0.12.1 [compatible] (pathspec-0.12.1-py3-none-any.whl)
DEBUG Searching for a compatible version of pluggy (>=1.0.0)
DEBUG Selecting: pluggy==1.5.0 [compatible] (pluggy-1.5.0-py3-none-any.whl)
DEBUG Searching for a compatible version of trove-classifiers (*)
DEBUG Selecting: trove-classifiers==2024.7.2 [compatible] (trove_classifiers-2024.7.2-py3-none-any.whl)
DEBUG Tried 6 versions: editables 1, hatchling 1, packaging 1, pathspec 1, pluggy 1, trove-classifiers 1
DEBUG Split specific environment resolution took 0.007s
DEBUG Installing in editables==0.5, hatchling==1.25.0, packaging==24.1, pathspec==0.12.1, pluggy==1.5.0, trove-classifiers==2024.7.2 in /home/qd/.cache/uv/builds-v0/.tmpGB5hYr
DEBUG Requirement already cached: editables==0.5
DEBUG Requirement already installed: hatchling==1.25.0
DEBUG Requirement already installed: packaging==24.1
DEBUG Requirement already installed: pathspec==0.12.1
DEBUG Requirement already installed: pluggy==1.5.0
DEBUG Requirement already installed: trove-classifiers==2024.7.2
DEBUG Installing build requirement: editables==0.5
DEBUG Calling `hatchling.build.build_editable("/home/qd/.cache/uv/built-wheels-v3/editable/2189ef4313c3a8c3/eD5DmbZnwIlN92csu6vV8/.tmp88SAVX", {}, None)`
DEBUG Finished building: safe-veloc @ file:///home/qd/Projects/safeguarded/shields-research-group/safe-veloc
DEBUG Calling `setuptools.build_meta:__legacy__.build_wheel("/home/qd/.cache/uv/built-wheels-v3/index/b2a7eb67d4c26b82/mujoco/2.3.3/BRcH_UgA_2GpmaMdbJiOR/.tmpWCOosn", {}, None)`
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: mujoco==2.3.3
  Caused by: Failed to build: `mujoco==2.3.3`
  Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1
--- stdout:
running bdist_wheel
running build
running build_py
copying mujoco/__init__.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/viewer.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/bindings_test.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/viewer_test.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/rollout_test.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/renderer_test.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/rollout.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/render_test.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/gl_context.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/renderer.py -> build/lib.linux-x86_64-cpython-312/mujoco
copying mujoco/osmesa/__init__.py -> build/lib.linux-x86_64-cpython-312/mujoco/osmesa
copying mujoco/egl/__init__.py -> build/lib.linux-x86_64-cpython-312/mujoco/egl
copying mujoco/egl/egl_ext.py -> build/lib.linux-x86_64-cpython-312/mujoco/egl
copying mujoco/glfw/__init__.py -> build/lib.linux-x86_64-cpython-312/mujoco/glfw
running build_ext
Configuring CMake with the following arguments:
    -DPython3_ROOT_DIR:PATH=/home/qd/.cache/uv/builds-v0/.tmpGdNSjS
    -DPython3_EXECUTABLE:STRING=/home/qd/.cache/uv/builds-v0/.tmpGdNSjS/bin/python
    -DCMAKE_MODULE_PATH:PATH=/home/qd/.cache/uv/built-wheels-v3/index/b2a7eb67d4c26b82/mujoco/2.3.3/BRcH_UgA_2GpmaMdbJiOR/mujoco-2.3.3.zip/cmake
    -DCMAKE_BUILD_TYPE:STRING=Release
    -DCMAKE_LIBRARY_OUTPUT_DIRECTORY:PATH=build/temp.linux-x86_64-cpython-312
    -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=ON
    -DCMAKE_Fortran_COMPILER:STRING=
    -DBUILD_TESTING:BOOL=OFF
    -DMUJOCO_LIBRARY_DIR:PATH=/nix/store/9x0520ay0cb28fyljfhg7pf4w8dg7xf3-mujoco-3.2.2/lib
    -DMUJOCO_INCLUDE_DIR:PATH=/nix/store/9x0520ay0cb28fyljfhg7pf4w8dg7xf3-mujoco-3.2.2/include
    -DPython3_LIBRARY=/home/qd/.rye/py/cpython@3.12.2/lib/python3.12
    -DPython3_INCLUDE_DIR=/home/qd/.rye/py/cpython@3.12.2/include/python3.12
--- stderr:
/home/qd/.cache/uv/builds-v0/.tmpGdNSjS/lib/python3.12/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
/home/qd/.cache/uv/builds-v0/.tmpGdNSjS/lib/python3.12/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
error: [Errno 2] No such file or directory: 'cmake'
---
error: Installation of dependencies failed in venv at /home/qd/Projects/safeguarded/shields-research-group/safe-veloc/.venv. uv exited with status: exit status: 2
zanieb commented 1 month ago

Hi! Sounds like your dependency mujoco requires CMake to build — you'll need to install that on your system, Rye cannot do so.

quinn-dougherty commented 1 month ago

sorry, forgot to mention that cmake is installed. how do i point rye internal processes to my $(which cmake)? I have to do CC=$(which gcc) GCC=$(which g++) rye sync in a couple projects, but i don't know the environment variable for cmake executable

zanieb commented 1 month ago

Ah okay. which cmake returns a path? That's weird then. This still shouldn't be something related to Rye; cmake isn't being found by the mujoco build script so you'll need to inquire there.

quinn-dougherty commented 1 month ago

yes, which cmake returns a path