alexandresajus / quadcopter-ai Goto Github PK
View Code? Open in Web Editor NEWControlling a Rigidbody Quadcopter using Control Theory and Reinforcement Learning
License: GNU General Public License v3.0
Controlling a Rigidbody Quadcopter using Control Theory and Reinforcement Learning
License: GNU General Public License v3.0
๐
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 ?
Hi!
Such a cute code.
I have import your repository to my pycharm IDE, it gives me this error:
"ModuleNotFoundError: No module named 'quadai'"
have I missed something?
$ 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.