Failure to run "Handcrafting a game".ipynb on Google Colab and Linux server
I followed the instructions from the file notebooks/Handcrafting a game.ipynb on both Colab and Linux server but encountered the following errors:
-
On Colab -- error when running
M.render() -
On Linux server -- error when installing the chrome driver following README instructions
Is there a way to fix this? Thank you
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.
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/