Skip to content

[BUG] Help: running the "get_des_file_rendering" #1

@samvelyan

Description

@samvelyan

This is a migration copy of the original bug report here: facebookresearch#93.


Hi, I tried running this by following the guide:

from minihack.tiles.rendering import get_des_file_rendering
import IPython.display

def render_des_file(des_file, **kwargs):
image = get_des_file_rendering(des_file, **kwargs)
IPython.display.display(image)

des_file = """
MAZE: "mylevel", ' '
FLAGS:premapped
GEOMETRY:center,center
MAP
.....
.....
.....
.....
.....
ENDMAP
"""
render_des_file(des_file, n_images=1, full_screen=False)

got the following problem:
Traceback (most recent call last): File "/Users/saharadmoni/Programming/PycharmProjects/Minihack/main.py", line 29, in render_des_file(des_file, n_images=1, full_screen=False) File "/Users/saharadmoni/Programming/PycharmProjects/Minihack/main.py", line 13, in render_des_file image = get_des_file_rendering(des_file, **kwargs) File "/Users/saharadmoni/anaconda3/envs/minihack/lib/python3.8/site-packages/minihack/tiles/rendering.py", line 65, in get_des_file_rendering env = MHCustom( File "/Users/saharadmoni/anaconda3/envs/minihack/lib/python3.8/site-packages/minihack/tiles/rendering.py", line 43, in init super().init(*args, des_file=des_file, **kwargs) File "/Users/saharadmoni/anaconda3/envs/minihack/lib/python3.8/site-packages/minihack/skills.py", line 52, in init super().init(*args, des_file=des_file, **kwargs) File "/Users/saharadmoni/anaconda3/envs/minihack/lib/python3.8/site-packages/minihack/base.py", line 271, in init super().init(*args, **kwargs) File "/Users/saharadmoni/anaconda3/envs/minihack/lib/python3.8/site-packages/nle/env/tasks.py", line 53, in init super().init(*args, actions=actions, **kwargs) TypeError: init() got an unexpected keyword argument 'archivefile'

Ran on Mac silicone conda environment python 3.8.

I would be happy to get help finding a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions