Comments (7)
Hi, you need to downgrade to panda-gym v1
from rl-baselines3-zoo.
Hi, you need to downgrade to panda-gym v1
@qgallouedec Thanks for the quick response, can I get the correct install steps and all other versions? Because when I dowgrade by
pip install panda-gym==1.0.0
I got a new error when I enjoy
AttributeError: module 'gym' has no attribute 'GoalEnv'
Then I also downgrade the gym by
pip install gym==0.21.0
But I still get new error
root@BF4-C-008T7:/workspaces/rl_theft# python -m rl_zoo3.enjoy --algo tqc --env PandaPush-v1 -f logs/
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/conda/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/opt/conda/lib/python3.10/site-packages/rl_zoo3/__init__.py", line 6, in <module>
import rl_zoo3.gym_patches # noqa: F401
File "/opt/conda/lib/python3.10/site-packages/rl_zoo3/gym_patches.py", line 82, in <module>
patched_registry.update(gym.envs.registration.registry)
TypeError: 'EnvRegistry' object is not iterable
from rl-baselines3-zoo.
Sure, make sure you use python3.9 or below and
pip install stable-baselines3==1.5.1a8 panda_gym==1.1.1
from rl-baselines3-zoo.
Sure, make sure you use python3.9 or below and
pip install stable-baselines3==1.5.1a8 panda_gym==1.1.1
Hi @qgallouedec , it still does not work. how about the version of zoo3 and gym?
here is the step to reprocude the error now(same as before)
pip install rl_zoo3 stable-baselines3==1.5.1a8 panda_gym==1.1.1
python -m rl_zoo3.enjoy --algo tqc --env PandaPush-v1 -f logs/
and here is my current version
OS: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.17 #1 SMP Fri Apr 2 22:23:49 UTC 2021
Python: 3.8.13
Stable-Baselines3: 1.5.1a8
PyTorch: 2.1.0+cu121
GPU Enabled: True
Numpy: 1.22.3
Gym: 0.21.0
Panda Gym: 1.1.1
I got the same error as before TypeError: 'EnvRegistry' object is not iterable
Traceback (most recent call last):
File "/home/myuser/.conda/envs/si/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/myuser/.conda/envs/si/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/myuser/.conda/envs/si/lib/python3.8/site-packages/rl_zoo3/__init__.py", line 6, in <module>
import rl_zoo3.gym_patches # noqa: F401
File "/home/myuser/.conda/envs/si/lib/python3.8/site-packages/rl_zoo3/gym_patches.py", line 82, in <module>
patched_registry.update(gym.envs.registration.registry)
TypeError: 'EnvRegistry' object is not iterable
I think it is the problem of zoo3 version, as I am already run it in a new conda environment
from rl-baselines3-zoo.
BTW, i try the lowest version of zoo3 in pip install
(1.6.2), it is also not compatible with stable-baselines3==1.5.1a8
from rl-baselines3-zoo.
pip install panda-gym==1.1.1 rl-zoo3==1.6.2 sb3-contrib==1.6.2 stable-baselines3==1.6.2
python -m rl_zoo3.enjoy --algo tqc --env PandaPush-v1
If gives
Episode Reward: -8.00
Episode Length 50
[...]
Episode Reward: -5.00
Episode Length 50
Success rate: 100.00%
20 Episodes
Mean reward: -6.10 +/- 1.87
Mean episode length: 50.00 +/- 0.00
from rl-baselines3-zoo.
pip install panda-gym==1.1.1 rl-zoo3==1.6.2 sb3-contrib==1.6.2 stable-baselines3==1.6.2 python -m rl_zoo3.enjoy --algo tqc --env PandaPush-v1
If gives
Episode Reward: -8.00 Episode Length 50 [...] Episode Reward: -5.00 Episode Length 50 Success rate: 100.00% 20 Episodes Mean reward: -6.10 +/- 1.87 Mean episode length: 50.00 +/- 0.00
Great! It works now with sb3-contrib==1.6.2
which I didn't correctly install.
from rl-baselines3-zoo.
Related Issues (20)
- `optuna.trial.Trial.suggest_uniform()` deprecated
- [Feature Request] Specify custom keyword arguments for eval environments HOT 2
- [Bug]: ppo_lstm not implemented in hyperparams_opt.py HOT 3
- [Question] rl_zoo3 optimization pipeline for ros-based custom env HOT 2
- [Question] Support for Customized BaseFeaturesExtractor HOT 1
- [Bug]: video recording on Pybullet HOT 4
- Plotting Script Improvement HOT 1
- [Question] Training Donkey Car Without Simulator Rendering HOT 2
- Issue with 'feat/offline-RL' Branch for Donkey Car in rl-baselines3-zoo HOT 4
- [Feature Request] Call train from Python code HOT 2
- [Bug]: Cannot enjoy due to error Cannot convert space of type Discrete(7). Please upgrade your code to gymnasium. HOT 1
- [Feature Request] Store git hash of key repos/packages
- [Bug]: Nan Problems for SAC, TQC, for AntBulletEnv-v0, HalfCheetahBulletEnv-v0 HOT 9
- [Error]: I got unexpected error using enjoy() with pretrain model HOT 4
- Training DonkeyCar with TQC algorithm with pretrained AE
- [Bug]: Custom Sub-Hyperparameters during train.py -> Optimize HOT 1
- [Question] You must pass an environment when using `HerReplayBuffer` HOT 1
- [Question] RuntimeError: Unable to sample before the end of the first episode. We recommend choosing a value for learning_starts that is greater than the maximum number of timesteps in the environment. HOT 5
- [Question] Custom Eval Callback for train/optimize HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rl-baselines3-zoo.