TextWorld icon indicating copy to clipboard operation
TextWorld copied to clipboard

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

Open ruiyiw opened this issue 1 year ago • 2 comments

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

ruiyiw avatar Nov 26 '24 22:11 ruiyiw

Thanks for reporting those issues.

For your first point, this is related to https://github.com/microsoft/TextWorld/issues/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 avatar Nov 27 '24 21:11 MarcCote

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/

MarcCote avatar Nov 28 '24 03:11 MarcCote