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

Can't install #5

Closed
nickponline opened this issue Sep 29, 2023 · 2 comments
Closed

Can't install #5

nickponline opened this issue Sep 29, 2023 · 2 comments

Comments

@nickponline
Copy link

$ pip3 install --upgrade setuptools
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: setuptools in /opt/anaconda3/envs/dev/lib/python3.10/site-packages (68.0.0)
Collecting setuptools
  Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/bb/26/7945080113158354380a12ce26873dd6c1ebd88d47f5bc24e2c5bb38c16a/setuptools-68.2.2-py3-none-any.whl.metadata
  Downloading setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 kB 11.6 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 68.0.0
    Uninstalling setuptools-68.0.0:
      Successfully uninstalled setuptools-68.0.0
Successfully installed setuptools-68.2.2
pip3 install git+https://github.com/AlexandreSajus/Quadcopter-AI.git
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting git+https://github.com/AlexandreSajus/Quadcopter-AI.git
  Cloning https://github.com/AlexandreSajus/Quadcopter-AI.git to /private/var/folders/yl/nwbv85dx7_vb01s5f597y_hc0000gn/T/pip-req-build-3fwymr_2
  Running command git clone --filter=blob:none --quiet https://github.com/AlexandreSajus/Quadcopter-AI.git /private/var/folders/yl/nwbv85dx7_vb01s5f597y_hc0000gn/T/pip-req-build-3fwymr_2
  Resolved https://github.com/AlexandreSajus/Quadcopter-AI.git to commit 1dcca4d610a17a44b3e6fe0e9bf50c4c7e725185
  Preparing metadata (setup.py) ... done
Collecting stable-baselines3==1.7.0 (from quadai==0.0.0)
  Downloading stable_baselines3-1.7.0-py3-none-any.whl (171 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 171.8/171.8 kB 4.6 MB/s eta 0:00:00
Collecting gym==0.21.0 (from quadai==0.0.0)
  Downloading gym-0.21.0.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 20.8 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(dev) [nickp@m2 (main ✗)]$ pip3 --version
pip 23.2.1 from /opt/anaconda3/envs/dev/lib/python3.10/site-packages/pip (python 3.10)
(dev) [nickp@m2(main ✗)]$ python3 --version
Python 3.10.6
@AlexandreSajus
Copy link
Owner

I found a fix here: openai/gym#3176

The new versions of pip and setuptools break the setup of gym==0.21.0

I have updated the requirements and the steps of the README:

  • You need to first force downgrade pip to 21
python -m pip install pip==21
  • Then install the package as normal (I set the setuptools version in the requirements already):
pip install git+https://github.com/AlexandreSajus/Quadcopter-AI.git

Let me know if this works so I can close this issue.

@AlexandreSajus
Copy link
Owner

I am assuming this is fixed so closing... Feel free to reopen the issue.

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