Open whcpumpkin opened 2 years ago
Hey, did you follow the installation guide to install MineDojo first?
Hi
I did follow the guide.
And the java version:
openjdk version "1.8.0_342" OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~18.04-b07) OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
After installing Java JDK 8, in case your Ubuntu comes with pre-installed Java, you may need to run the following code to switch default Java version:
root@ubuntu:/home/user/whc# sudo update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure.
Will there be some problems about using Ubuntu 18.04?
Hey, did you follow the installation guide to install MineDojo first?
Hello! When i run
main/dense_reward/animal_zoo/run.py
, it seems that there is an error about the version ofgradle
inmain/dense_reward/animal_zoo/dense_reward.py line 39
. How do i deal withgradle
? The full error report is shown as follow.[INFO:minedojo.tasks] Loaded 1572 Programmatic tasks, 1558 Creative tasks, and 1 special task: "Playthrough". Totally 3131 tasks loaded. /home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32 logger.warn( Episode: 0%| | 0/2 [00:00<?, ?it/s][INFO:minedojo.tasks] Loaded 1572 Programmatic tasks, 1558 Creative tasks, and 1 special task: "Playthrough". Totally 3131 tasks loaded. Episode: 0%| | 0/2 [01:37<?, ?it/s] Traceback (most recent call last): File "/home/user/anaconda3/envs/largemodel/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/user/anaconda3/envs/largemodel/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/user/.vscode-server/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/main.py", line 45, in
cli.main()
File "/home/user/.vscode-server/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
run()
File "/home/user/.vscode-server/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("main"))
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/runpy.py", line 268, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/user/whc/MineCLIP/main/dense_reward/animal_zoo/run.py", line 14, in
obs = env.reset()
File "/home/user/whc/MineCLIP/mineclip/dense_reward/animal_zoo/hunt_cow.py", line 78, in reset
return super().reset(kwargs)
File "/home/user/whc/MineCLIP/mineclip/dense_reward/animal_zoo/dense_reward.py", line 39, in reset
obs = super().reset(kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/gym/core.py", line 292, in reset
return self.env.reset(kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/gym/core.py", line 292, in reset
return self.env.reset(kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/wrappers/ar_nn/delta_inventory_wrapper.py", line 78, in reset
observation = self.env.reset(kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/gym/core.py", line 319, in reset
observation = self.env.reset(kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/wrappers/ar_nn/nn_action_space_wrapper.py", line 259, in reset
obs = self.env.reset(*kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/tasks/meta/base.py", line 87, in reset
obs = self.env.reset()
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/wrappers/fast_reset.py", line 71, in reset
return self.env.reset()
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/sim.py", line 419, in reset
raw_obs = self._bridge_env.reset(episode_id, [xml])[0]
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 72, in reset
self._setup_instances()
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in _setup_instances
self._instances.extend([f.result() for f in instance_futures])
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in
self._instances.extend([f.result() for f in instance_futures])
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/concurrent/futures/_base.py", line 439, in result
return self.get_result()
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/concurrent/futures/_base.py", line 391, in get_result
raise self._exception
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn( self.args, **self.kwargs)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 177, in _get_new_instance
instance.launch(replaceable=self._is_fault_tolerant)
File "/home/user/anaconda3/envs/largemodel/lib/python3.9/site-packages/minedojo/sim/bridge/mc_instance/instance.py", line 201, in launch
raise EOFError(
EOFError: /tmp/tmpw8obb0gu/Minecraft
Configuration file
Autogenerated from command-line options
malmoports { I:portOverride=11967 } malmoscore { I:policy=0 }
malmoseed { I:seed=410979445 }
runtype { B:replaceable=true }
envtype { B:env=true }
/tmp/tmpw8obb0gu/Minecraft/run
HELLO
Time: 8/13/22 5:21 PM Description: Initializing game
java.lang.ExceptionInInitializerError at net.minecraft.client.Minecraft.setWindowIcon(Minecraft.java:629) at net.minecraft.client.Minecraft.init(Minecraft.java:429) at net.minecraft.client.Minecraft.run(Minecraft.java:352) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: Could not open X display connection at org.lwjgl.opengl.Display.(Display.java:141)
... 16 more
Caused by: org.lwjgl.LWJGLException: Could not open X display connection
at org.lwjgl.opengl.LinuxDisplay.openDisplay(Native Method)
at org.lwjgl.opengl.LinuxDisplay.incDisplay(LinuxDisplay.java:305)
at org.lwjgl.opengl.LinuxDisplay.internAtom(LinuxDisplay.java:629)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:734)
at org.lwjgl.opengl.Display.(Display.java:138)
... 16 more
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head -- Thread: Client thread Stacktrace: at net.minecraft.client.Minecraft.setWindowIcon(Minecraft.java:629) at net.minecraft.client.Minecraft.init(Minecraft.java:429)
-- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:352) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26)
-- System Details -- Details: Minecraft Version: 1.11.2 Operating System: Linux (amd64) version 5.4.0-122-generic Java Version: 1.8.0_342, Private Build Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Private Build Memory: 1280054720 bytes (1220 MB) / 1476919296 bytes (1408 MB) up to 1908932608 bytes (1820 MB) JVM Flags: 2 total; -Xdebug -Xmx2G IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): OverclockingPlugin (MalmoMod-0.37.0.jar) com.microsoft.Malmo.OverclockingClassTransformer Launched Version: 1.11.2 LWJGL: 2.9.4 OpenGL:
[17:21:36] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:523]: #@!@# Game crashed! Crash report saved to: #@!@# /tmp/tmpw8obb0gu/Minecraft/run/./crash-reports/crash-2022-08-13_17.21.36-client.txt
ERRORRuntimeException: No OpenGL context found in the current thread. GL Caps: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language:ERRORNullPointerException: null Profiler Position: N/A (disabled) CPU:FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':runClient'.
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':runClient'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) Caused by: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 255 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:395) at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:37) at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:79) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99) ... 31 more
Get more help at https://help.gradle.org
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 23s 18 actionable tasks: 17 executed, 1 up-to-date
Minecraft process finished unexpectedly. There was an error with Malmo.