facebookresearch/minihack

[BUG] TypeError: __init__() got an unexpected keyword argument 'archivefile'

Closed this issue ยท 2 comments

๐Ÿ› Bug

To Reproduce

Steps to reproduce the behavior:

  1. Run the Tutorial on Google Colab
  2. Build an environment and try to print it
(https://github.com/facebookresearch/minihack/tree/main/minihack/tiles)/rendering.py

Executed line: render_des_file(des_file, n_images=1, full_screen=False)
Error message: TypeError: init() got an unexpected keyword argument 'archivefile'

Expected behavior

Normally it should print out a picture of the environment

Environment

  • MiniHack Version (e.g., 1.0): 0.1.5
  • NLE Version (e.g. 1.0): 0.9.0
  • PyTorch Version (e.g., 1.0): 0.23.0
  • OS (e.g., Linux): Mac OS
  • Python version: 3.9

Temporary solution:

I redefined the function and deleted the "archivefile=None" from the function, then it worked.

Hi @EmmaHongW. Thanks for pointing this out. Indeed, the archivefile parameter has been removed in NLE==0.9.0 version and needs to be removed here.

Resolved in this commit.