additionally if i try to follow the tutorial when i try to run "sean@sean-HP-Z240-Tower-Workstation:~/MalmoPlatform/build/install/Python_Examples$ python tutorial_1.py" I get the following error:
Traceback (most recent call last):
File "tutorial_1.py", line 24, in <module>
ImportError: /home/sean/MalmoPlatform/build/install/Python_Examples/MalmoPython.so: undefined symbol: _ZTIN5boost6python15instance_holderE
"* What went wrong:
Execution failed for task ':fixMcSources'.
com.cloudbees.diff.PatchException: Cannot find hunk target
Build file 'C:\Users\jagat\Downloads\malmo-master\malmo-master\Minecraft\build.gradle' line: 18
What went wrong:
A problem occurred evaluating root project 'Minecraft'.
version.properties file is missing - this is created automatically by CMake. If you are building from source, make sure you have built the full source tree, not just the Minecraft folder.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Hello, I'm trying to launch a malmo gym environment from a headless server. I've tried to install various xorg packages and currently are trying to instantiate a monitor emulator (I think) with the command
Xvfb :1 -screen 0 800x600x16 & but when trying to instantiate a gym environment (MineRLNavigateDense-v0) I get the following error
java.lang.ExceptionInInitializerError at net.minecraft.client.Minecraft.setWindowIcon(Minecraft.java:670) at net.minecraft.client.Minecraft.init(Minecraft.java:467) at net.minecraft.client.Minecraft.run(Minecraft.java:387) at net.minecraft.client.main.Main.main(Main.java:118) 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
After this, the python throws an error and says
RuntimeError: ERROR! MineRL could not detect an X Server, Monitor, or Virtual Monitor! In order to run minerl environments WITHOUT A HEAD use a software renderer such as 'xvfb': xvfb-run python3 <your_script.py> ! NOTE: xvfb conflicts with NVIDIA-drivers! ! To run headless MineRL on a system with NVIDIA-drivers, please start a ! vnc server of your choosing and then `export DISPLAY=:<insert ur vnc server #> If you're receiving this error and there is a monitor attached, make sure your current displayvariable is set correctly: DISPLAY=:0 python3 <your_script.py> ! NOTE: For this to work your account must be logged on the physical monitor. If none of these steps work, please complain in the discord! If all else fails, JUST PUT THIS IN A DOCKER CONTAINER! :)
But I'm trying to get this to work through a docker image which serves a jupyter notebook (since we are doing a tutorial on RL). Does anyone have any idea on how to make the docker image start an x-server correctly?
I'm a bit over my head with this, so sorry if the solution is simple.
python3 tutorial_1.pyand see the agent "doing nothing". Then, I followed "3 Get moving" from Tutorial.pdf, the agent does move but, there is an error: "Error: AgentHost::sendCommand : commands connection is not open. Is the mission running?", is it normal?