aidudezzz / deepbots

A wrapper framework for Reinforcement Learning in the Webots robot simulator using Python 3.
https://deepbots.readthedocs.io/
GNU General Public License v3.0
230 stars 49 forks source link

Unable to install deepbots #150

Closed anirjoshi closed 8 months ago

anirjoshi commented 8 months ago

I get the following error when I run pip install deepbots

Collecting deepbots
  Using cached deepbots-1.0.0-py3-none-any.whl (30 kB)
Collecting gym==0.21 (from deepbots)
  Using cached gym-0.21.0.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel 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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Is it possible to resolve this? Is it possible to build deepbots from source rather than using pip?

anirjoshi commented 8 months ago

Hi, Just saw that this issue has been already raised (and pinned). The following seems to work for me:

pip install setuptools==65.5.0
pip install git+https://github.com/openai/gym.git@9180d12e1b66e7e2a1a622614f787a6ec147ac40
pip install deepbots

The second command pip install git+https://github.com/openai/gym.git@9180d12e1b66e7e2a1a622614f787a6ec147ac40 is also given here.

The actual sequence of commands that worked are as follows, but the commands given above should also work.

pip install setuptools==65.5.0
pip install numpy
pip install pandas
pip install torch
pip install git+https://github.com/openai/gym.git@9180d12e1b66e7e2a1a622614f787a6ec147ac40
pip install deepbots
tsampazk commented 8 months ago

Hey @anirjoshi, happy to hear that you solved the issue. Feel free to contact us again if you face any other difficulty.

Mentioning the pinned issue #143.