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

Failure to run "Handcrafting a game".ipynb on Google Colab and Linux server #358

Open
ruiyiw opened this issue Nov 26, 2024 · 2 comments
Open

Comments

@ruiyiw
Copy link

ruiyiw commented Nov 26, 2024

I followed the instructions from the file notebooks/Handcrafting a game.ipynb on both Colab and Linux server but encountered the following errors:

  1. On Colab -- error when running M.render()
    Image

  2. On Linux server -- error when installing the chrome driver following README instructions
    Image

Is there a way to fix this? Thank you

@MarcCote
Copy link
Contributor

MarcCote commented Nov 27, 2024

Thanks for reporting those issues.

For your first point, this is related to #352 which has been fixed in #353. That said, I have yet to finalize the 1.6.2 release. However, you can pip install a prerelease candidate like this

pip install --pre -U textworld

Let me know if that solves your issue on Colab.

For your second error. It looks like the library I was using is not maintained anymore. I'll switch to https://pypi.org/project/chromedriver-py/ which seems active. I will integrate this in the 1.6.2 release. I'll add a note in the README saying to manually download Chrome and chromedriver.

@MarcCote
Copy link
Contributor

Thinking more about your second point. You will also need the Chrome binary for this to work. You need to manually download both Chrome and the chromedriver that matches the Chrome version you installed.

The chromedriver binary needs to be place somewhere visible in your PATH, e.g. in ~/.local/bin/

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

2 participants