minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
711 stars 153 forks source link

Got errors on the custom environment example #609

Closed mwang808 closed 2 years ago

mwang808 commented 2 years ago

Hello,

I try to run the "mlg_wb_solution.py" file provided in the tutorial but got the following errors. Can you tell me how to fix it? Thanks.

I am using ubuntu 20.04. The error information is below.

Traceback (most recent call last): File "mlg_wb_solution.py", line 16, in obs = env.reset() File "/home/xxx/.local/lib/python3.8/site-packages/gym/wrappers/time_limit.py", line 27, in reset return self.env.reset(**kwargs) File "/home/xxx/.local/lib/python3.8/site-packages/minerl/env/_singleagent.py", line 22, in reset multi_obs = super().reset() File "/home/xxx/.local/lib/python3.8/site-packages/minerl/env/_multiagent.py", line 452, in reset agent_xmls = self._setup_agent_xmls(ep_uid) File "/home/xxx/.local/lib/python3.8/site-packages/minerl/env/_multiagent.py", line 498, in _setup_agent_xmls xml_in = self.task.to_xml() File "/home/xxx/.local/lib/python3.8/site-packages/minerl/herobraine/env_spec.py", line 269, in to_xml xml = template.render(var_dict) File "/home/xxx/.local/lib/python3.8/site-packages/jinja2/environment.py", line 1291, in render self.environment.handle_exception() File "/home/xxx/.local/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception raise rewrite_traceback_stack(source=source) File "