PKU-RL / Plan4MC

Reinforcement learning and planning for Minecraft.
MIT License
161 stars 20 forks source link

An error occurred when verifying the environment installation #4

Open niuyiqun opened 8 months ago

niuyiqun commented 8 months ago

When I run the env_test.py file, I get an error. This file is copied from the code in validate_install.py. What is wrong with this error?

[INFO:minedojo.tasks] Loaded 1581 Programmatic tasks, 1560 Creative tasks, and 1 special task: "Playthrough". Totally 3142 tasks loaded. warning: the default initial_inventory is modified. /Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32 logger.warn( [INFO] Create a task with prompt: combat a spider in night plains with a diamond sword, shield, and a full suite of leather armors [INFO:minedojo.tasks] Loaded 1581 Programmatic tasks, 1560 Creative tasks, and 1 special task: "Playthrough". Totally 3142 tasks loaded. Traceback (most recent call last): File "/Users/nyq/Desktop/课题组/research/MC/Plan4MC/env_test.py", line 30, in env.reset() File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/gym/core.py", line 292, in reset return self.env.reset(kwargs) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/wrappers/ar_nn/delta_inventory_wrapper.py", line 78, in reset observation = self.env.reset(kwargs) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/gym/core.py", line 319, in reset observation = self.env.reset(kwargs) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/wrappers/ar_nn/nn_action_space_wrapper.py", line 259, in reset obs = self.env.reset(kwargs) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/tasks/meta/base.py", line 92, in reset obs = self.env.reset(move_flag = move_flag) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/wrappers/fast_reset.py", line 106, in reset return self.env.reset() File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/sim.py", line 419, in reset raw_obs = self._bridge_env.reset(episode_id, [xml])[0] File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/bridge/bridge_env/bridge_env.py", line 72, in reset self._setup_instances() File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in _setup_instances self._instances.extend([f.result() for f in instance_futures]) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in self._instances.extend([f.result() for f in instance_futures]) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/concurrent/futures/_base.py", line 439, in result return self.get_result() File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/concurrent/futures/_base.py", line 391, in get_result raise self._exception File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/bridge/bridge_env/bridge_env.py", line 177, in _get_new_instance instance.launch(replaceable=self._is_fault_tolerant) File "/Users/nyq/anaconda3/envs/minedojo/lib/python3.9/site-packages/minedojo-0.1-py3.9.egg/minedojo/sim/bridge/mc_instance/instance.py", line 201, in launch raise EOFError( EOFError: /var/folders/cm/dgxhkyl12nlbmb_bnw788yw40000gn/T/tmp1dxoa9bf/Minecraft

Configuration file

Autogenerated from command-line options

malmoports { I:portOverride=9172 } malmoscore { I:policy=0 }

malmoseed { I:seed=37592391 }

runtype { B:replaceable=true }

envtype { B:env=true }

/var/folders/cm/dgxhkyl12nlbmb_bnw788yw40000gn/T/tmp1dxoa9bf/Minecraft/run

HELLO

Configure project : This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s

Minecraft process finished unexpectedly. There was an error with Malmo.

kobeap commented 8 months ago

Has the problem been solved

niuyiqun commented 8 months ago

Has the problem been solved

not yet