Open ctessler opened 3 months ago
Thank you for raising this issue. This is a recent bug due to incompatibility between pip version >=24.0 and gym version 0.19.0. You can resolve this when using virtualenv by downgrading pip to 24.0 as follows:
Fix using PIP
mkdir gymenv
cd gymenv
virtualenv .
source bin/activate
pip install --upgrade pip==24.0
git clone https://github.com/f1tenth/f1tenth_gym.git
cd f1tenth_gym
pip install -e .
The same can be done for the Dockerfile by changing line 45 as follows:
Fix using Docker
RUN pip3 install --upgrade pip
to RUN pip3 install --upgrade pip==24.0
docker build -t f1tenth_gym_container -f Dockerfile .
docker run --gpus all -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix f1tenth_gym_container
I will push this fix to the main branch tomorrow
Thank you for the helpful response. Unfortunately, the suggested fix does not resolve the issue. I have attached the output of the PIP installation steps pip_output.txt.
The installation instructions for Docker work, running an example is failing (but that's likely because of an nvidia-container problem).
Hello, i tried the installation today using pip 21.0 and python 3.8.19. I did the following steps: pip install pip==21.0 pip install opencv-python==3.4.2.17 # installing gym 0.19.0 before doing this throws an error
Then navigate to the f1tenth_gym and install the required packages cd f1tenth_gym pip install -e .
@tungkaG can you please include the output of the installation?
Describe the bug Neither set of instructions for installing the f1tenth_gym work correctly. The instructions were taken from https://github.com/f1tenth/f1tenth_gym. There appears to be a problem with f11-gym version 0.19.0, that's referenced from setup.py in the f1tenth_gym master branch.
I tried modifying setup.py from https://github.com/f1tenth/f1tenth_gym to use a more recent version of the gym, the lowest version that passes this step is 0.22.0. However, this causes additional errors, so the fix is something more involved than a version bump to the gym package.
Reproduction using docker Steps to reproduce:
git clone https://github.com/f1tenth/f1tenth_gym.git
cd f1tenth_gym
docker build -t f1tenth_gym_container -t Dockerfile .
Expected behavior A successful installation of a docker container for the gym.
Reproduction using PIP
mkdir gymenv
cd gymenv
virtualenv .
source bin/activate
git clone https://github.com/f1tenth/f1tenth_gym.git
cd f1tenth_gym
Desktop (please complete the following information):