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

not compatible with gym_pybullet_drones env #714

Closed
6 of 11 tasks
zhixiongzh opened this issue Aug 23, 2023 · 5 comments
Closed
6 of 11 tasks

not compatible with gym_pybullet_drones env #714

zhixiongzh opened this issue Aug 23, 2023 · 5 comments
Assignees
Labels
bug Something isn't working env Questions about RL environment

Comments

@zhixiongzh
Copy link

zhixiongzh commented Aug 23, 2023

  • I have marked all applicable categories:
    • exception-raising bug
    • RL algorithm bug
    • system worker bug
    • system utils bug
    • code design/refactor
    • documentation request
    • new feature request
  • I have visited the readme and doc
  • I have searched through the issue tracker and pr tracker
  • I have mentioned version numbers, operating system and environment, where applicable:
    import ding, torch, sys
    print(ding.__version__, torch.__version__, sys.version, sys.platform)
    v0.4.9 1.12.1 3.7.13 (default, Mar 29 2022, 02:18:16) 
    [GCC 7.5.0] linux

I use the docker you provide with docker pull opendilab/ding:nightly-mujoco, but the python version there is 3.7, which is imcompatible with the requirement of gym_pybullet_drones, which require python 3.10, so that I can not install that with offical steps as below

git clone https://github.com/utiasDSL/gym-pybullet-drones.git
cd gym-pybullet-drones/

conda create -n drones python=3.10
conda activate drones

pip3 install --upgrade pip
pip3 install -e . # if needed, `sudo apt install build-essentials` to install `gcc` and build `pybullet`

But in the di zoo you provide the test file of this environment, so I want to ask how you install this env package so that you can run the test file.

@PaParaZz1 PaParaZz1 added bug Something isn't working env Questions about RL environment labels Aug 23, 2023
@zhixiongzh
Copy link
Author

opendilab/PPOxFamily#4 (comment)
I found you have used drones env in the course that you forked a old version of env, that is ok for me, but I still can not install the old version with your code.

@zjowowen
Copy link
Collaborator

Hi,

This repo [https://github.com/zjowowen/gym-pybullet-drones.git] is updated with the origin repo [https://github.com/utiasDSL/gym-pybullet-drones].

You can run the gym-pybullet-drones by:
conda create gym-pybullet-drones -n python=3.10
pip install setuptools==63.2.0
pip install git+https://github.com/zjowowen/gym-pybullet-drones@master
pip install DI-engine

@zhixiongzh
Copy link
Author

Thanks, it fix the problem

@RibhavOjha
Copy link

@zhixiongzh after doing pip install git+https://github.com/zjowowen/gym-pybullet-drones@master, what did you do? like it got installed successfully for me, but then what? did you do :
`git clone https://github.com/utiasDSL/gym-pybullet-drones.git
cd gym-pybullet-drones/

conda create -n drones python=3.10
conda activate drones

pip3 install --upgrade pip
pip3 install -e . # if needed, sudo apt install build-essentials to install gcc and build `pybullet``

after that?

@zhixiongzh
Copy link
Author

@zhixiongzh after doing pip install git+https://github.com/zjowowen/gym-pybullet-drones@master, what did you do? like it got installed successfully for me, but then what? did you do : `git clone https://github.com/utiasDSL/gym-pybullet-drones.git cd gym-pybullet-drones/

conda create -n drones python=3.10 conda activate drones

pip3 install --upgrade pip pip3 install -e . # if needed, sudo apt install build-essentials to install gcc and build `pybullet``

after that?

if it is successfully installed using pip install git+https://github.com/zjowowen/gym-pybullet-drones@master, then it is done, you do not need to do other things. If you are asking how to use it, please refer to dizoo/gym_pybullet_drones/envs/test_ding_env.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working env Questions about RL environment
Projects
None yet
Development

No branches or pull requests

4 participants