-
Notifications
You must be signed in to change notification settings - Fork 166
Description
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.
It would really help to have this fixed because then I'd be able to create custom environments in the newer version which is much easier to interface with.
Traceback (most recent call last):
File "/root/minerRL/renderGame.py", line 83, in
obs = env.reset()
File "/usr/local/lib/python3.10/dist-packages/gym/wrappers/time_limit.py", line 27, in reset
return self.env.reset(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/minerl/env/_singleagent.py", line 22, in reset
multi_obs = super().reset()
File "/usr/local/lib/python3.10/dist-packages/minerl/env/_multiagent.py", line 433, in reset
agent_xmls = self._setup_agent_xmls(ep_uid)
File "/usr/local/lib/python3.10/dist-packages/minerl/env/_multiagent.py", line 481, in _setup_agent_xmls
xml_in = self.task.to_xml()
File "/usr/local/lib/python3.10/dist-packages/minerl/herobraine/env_spec.py", line 269, in to_xml
xml = template.render(var_dict)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 72, in top-level template code
File "/usr/local/lib/python3.10/dist-packages/minerl/herobraine/env_spec.py", line 292, in get_consolidated_xml
handler_xml_strs = [handler.xml() for handler in handlers]
File "/usr/local/lib/python3.10/dist-packages/minerl/herobraine/env_spec.py", line 292, in
handler_xml_strs = [handler.xml() for handler in handlers]
File "/usr/local/lib/python3.10/dist-packages/minerl/herobraine/hero/handler.py", line 58, in xml
template = env.from_string(self.xml_template())
File "/usr/local/lib/python3.10/dist-packages/minerl/herobraine/hero/handler.py", line 42, in xml_template
raise NotImplementedError()
NotImplementedError