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

AttributeError: 'RecordVideo' object has no attribute 'video_recorder' #631

Open
carterwg7 opened this issue Nov 7, 2024 · 0 comments
Open

Comments

@carterwg7
Copy link

carterwg7 commented Nov 7, 2024

When using the sb3_highway_dqn.ipynb script, I get the following error when attempting to visualize the episodes:

/usr/local/lib/python3.10/dist-packages/highway_env/envs/common/abstract.py in _automatic_rendering(self)
335 """
336 if self.viewer is not None and self.enable_auto_render:
--> 337 if self._record_video_wrapper and self._record_video_wrapper.video_recorder:
338 self._record_video_wrapper.video_recorder.capture_frame()
339 else:

AttributeError: 'RecordVideo' object has no attribute 'video_recorder'

When I ran the script a week or so ago, it worked fine and I was able to record and watch the simulations, so I'm not sure why it no longer works. I've disconnected and deleted the runtime as well. I'm fairly new to Python, so maybe I'm doing something wrong.

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

No branches or pull requests

1 participant