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

add explicit version for gym dependencies #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jwdinius
Copy link

Hello all! I was trying to follow along with the YouTube videos and I ran into an issue when trying to run the "Follow the Gap" example:

(/home/joe/work/github/f1tenth/ESweek2021_educationclassA3/.conda) joe@joe-pc:~/work/github/f1tenth/ESweek2021_educationclassA3/01_Follow_The_Gap(main)$ python3 FollowTheGap.py 
Traceback (most recent call last):
  File "FollowTheGap.py", line 82, in <module>
    runner.run()
  File "FollowTheGap.py", line 55, in run
    env.render()
  File "/home/joe/work/github/f1tenth/ESweek2021_educationclassA3/gym/f110_gym/envs/f110_env.py", line 391, in render
    F110Env.renderer.update_map(self.map_name, self.map_ext)
  File "/home/joe/work/github/f1tenth/ESweek2021_educationclassA3/gym/f110_gym/envs/rendering.py", line 153, in update_map
    self.batch.add(1, GL_POINTS, None, ('v3f/stream', [map_points[i, 0], map_points[i, 1], map_points[i, 2]]), ('c3B/stream', [183, 193, 222]))
AttributeError: 'Batch' object has no attribute 'add'

It looks like there was a breaking API change introduced with the release of pyglet v2.0.0. After pegging the versions of the gym dependencies, the demo runs as expected (i.e., the GUI pops up and the simulated car drives around the obstacles).

Thanks for sharing these examples and the videos on YouTube. I'm looking forward to going them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant