Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error obs=env.reset() // #705

Closed
drozdj opened this issue May 24, 2023 · 3 comments
Closed

error obs=env.reset() // #705

drozdj opened this issue May 24, 2023 · 3 comments

Comments

@drozdj
Copy link

drozdj commented May 24, 2023

main.py contents:
import gym
import minerl
env = gym.make('MineRLBasaltFindCave'-v0')
obs = env.reset()

dr@macbrain:~/projects$ python3 main.py
/usr/lib/python3.10/runpy.py:126: RuntimeWarning: 'minerl.utils.process_watcher' found in sys.modules after import of package 'minerl.utils', but prior to execution of 'minerl.utils.process_watcher'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
Traceback (most recent call last):
File "/home/dr/projects/main.py", line 5, in
obs = env.reset()
File "/home/dr/.local/lib/python3.10/site-packages/gym/wrappers/time_limit.py", line 27, in reset
return self.env.reset(**kwargs)
File "/home/dr/.local/lib/python3.10/site-packages/minerl/herobraine/env_specs/basalt_specs.py", line 78, in reset
return self.env.reset()
File "/home/dr/.local/lib/python3.10/site-packages/minerl/herobraine/env_specs/basalt_specs.py", line 57, in reset
return super().reset()
File "/home/dr/.local/lib/python3.10/site-packages/gym/core.py", line 251, in reset
return self.env.reset(**kwargs)
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/_singleagent.py", line 22, in reset
multi_obs = super().reset()
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/_multiagent.py", line 436, in reset
self._setup_instances()
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/_multiagent.py", line 539, in _setup_instances
self.instances.extend([f.result() for f in instance_futures])
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/_multiagent.py", line 539, in
self.instances.extend([f.result() for f in instance_futures])
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/_multiagent.py", line 805, in _get_new_instance
instance.launch(replaceable=self._is_fault_tolerant)
File "/home/dr/.local/lib/python3.10/site-packages/minerl/env/malmo.py", line 427, in launch
raise EOFError(
EOFError: /home/dr/.local/lib/python3.10/site-packages/minerl/env/../MCP-Reborn
/home/dr/.local/lib/python3.10/site-packages/minerl/env/../MCP-Reborn/launchClient.sh: line 52: java: command not found
Minecraft process finished unexpectedly. There was an error with Malmo.

@drozdj
Copy link
Author

drozdj commented May 24, 2023

M1 Pro chip

@drozdj drozdj closed this as completed May 24, 2023
@drozdj drozdj reopened this May 24, 2023
@drozdj
Copy link
Author

drozdj commented May 24, 2023

M1 Pro chip
also running on vm headless linux server

@Miffyli
Copy link
Contributor

Miffyli commented May 24, 2023

See this comment for help: #659 (comment)

@drozdj drozdj closed this as completed Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants