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

Fix toy_text rendering on headless machines #3037

Merged
merged 3 commits into from
Aug 22, 2022

Conversation

RedTachyon
Copy link
Contributor

Description

Fixes #3032

The pygame code did stuff with the display even in rgb_array mode, which makes it impossible to run it on a headless machine. The relevant code has been moved into the if condition.

WIP because I need to check if it actually works on colab and on a head...ful? computer, and probably address potential similar problems in other envs.

@RedTachyon RedTachyon marked this pull request as draft August 22, 2022 13:53
@RedTachyon RedTachyon marked this pull request as ready for review August 22, 2022 15:19
@RedTachyon RedTachyon changed the title [WIP] Fix FrozenLake rendering on headless machines Fix toy_text rendering on headless machines Aug 22, 2022
@jkterry1 jkterry1 merged commit 1f86478 into openai:master Aug 22, 2022
@KristianHolsheimer
Copy link
Contributor

Thanks!

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.

[Bug Report] Cannot render toy_text envs in Google Colab
3 participants