Giter Site home page Giter Site logo

alexandresajus / quadcopter-ai Goto Github PK

View Code? Open in Web Editor NEW
150.0 150.0 32.0 279.47 MB

Controlling a Rigidbody Quadcopter using Control Theory and Reinforcement Learning

License: GNU General Public License v3.0

Python 100.00%
control-theory game physics python reinforcement-learning rigidbody-physics

quadcopter-ai's Issues

Can't install

$ 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

Compatibility Issues in train_SAC.py

👋

I'm experiencing library compatibility issues when attempting to run train_SAC.py.

Specifically, the problem(s) arises with the following libraries: gym, gymnasium, wandb, stable-baselines3.

AssertionError: The algorithm only supports (<class 'gymnasium.spaces.box.Box'>,) as action spaces but Box(-1.0, 1.0, (2,), float32) was provided.

I've tried downgrading to older versions of some of these libraries, but the incompatibility issues persist. Maybe you should specify versions in requirements.txt ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.