Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 04 01:08
    alekh removed as member
  • Sep 02 23:18
    LinxiFan commented #860
  • Aug 26 07:06
    YunLemon reopened #913
  • Aug 17 06:13
    YunLemon opened #913
  • Jul 15 10:15
    Howuhh commented #896
  • Jul 06 12:33
    martkartasev commented #876
  • Jul 06 12:33
    martkartasev commented #876
  • Jun 23 03:32
    t3dodson closed #910
  • Jun 23 03:32
    t3dodson commented #910
  • Jun 20 11:01
    debian-user-france1 edited #912
  • Jun 20 11:01
    debian-user-france1 opened #912
  • Jun 20 10:36
    debian-user-france1 edited #911
  • Jun 20 10:36
    debian-user-france1 opened #911
  • Jun 18 09:42
    t3dodson commented #910
  • Jun 18 09:35
    t3dodson commented #910
  • Jun 18 09:15
    t3dodson opened #910
  • Jun 01 22:40
    saadiqks closed #909
  • May 05 13:37
    CocoTheOwner commented #547
  • May 04 15:47
    AlessandroSigna commented #547
  • Apr 23 05:28
    saadiqks opened #909
Pratik Mehta
It was an issue with xcode, fixed.
Andre Kramer
@seanysull_gitlab Do you have the boost library for Python installed for your version of Python (3.6 from looking at your error)? You could have a look at the docker build scripts for your version of Linux. https://github.com/microsoft/malmo/tree/master/scripts/docker. There is a good chance that Python lib has another name e.g. just boost_python3 so you could check what's installed and modify the CMakefile.txt appropriately:
@stevenwernercs Were you or anyone here able to find a list of strings that AgentHost.sendCommand takes in?
Andre Kramer
@sasinha It depends on whether commands are discrete or continuous. One such list is in https://github.com/microsoft/malmo/blob/master/MalmoEnv/malmoenv/commands.py
Sean O'Sullivan

@AndKram Thanks for your reply, I changed the CMakeLists.txt (I thought this was what you were referring to when you saidCMakeFile.txt) to what you suggested (with "python" instead of python3) and it builds successfully, however, after building i tried to run the command ctest and the majority of the tests fail:

17% tests passed, 94 tests failed out of 113

Total Test time (real) = 222.01 sec

The following tests FAILED:
7 - CppTests_test_persistence (Failed)
8 - CppTests_test_string_server (Child aborted)
16 - PythonTests_test_wrapping (Failed)
17 - PythonTests_test_argument_parser (Failed)
18 - PythonTests_test_agent_host (Failed)
19 - PythonTests_test_mission (Failed)
20 - PythonTests_test_parameter_set (Failed)
21 - PythonTests_test_malmoutils (Failed)
27 - PythonIntegrationTests_animation_test_help (Failed)
28 - PythonIntegrationTests_animation_test (Failed)
29 - PythonIntegrationTests_braitenberg_simulation_help (Failed)
30 - PythonIntegrationTests_braitenberg_simulation (Failed)
31 - PythonIntegrationTests_build_test_help (Failed)
32 - PythonIntegrationTests_build_test (Failed)
33 - PythonIntegrationTests_chat_reward_help (Failed)
34 - PythonIntegrationTests_chat_reward (Failed)
35 - PythonIntegrationTests_chunk_test_help (Failed)
36 - PythonIntegrationTests_chunk_test (Failed)
37 - PythonIntegrationTests_craft_work_help (Failed)
38 - PythonIntegrationTests_craft_work (Failed)
39 - PythonIntegrationTests_decision_tree_test_help (Failed)
40 - PythonIntegrationTests_decision_tree_test (Failed)
41 - PythonIntegrationTests_default_world_test_help (Failed)
42 - PythonIntegrationTests_default_world_test (Failed)
43 - PythonIntegrationTests_depth_map_runner_help (Failed)
44 - PythonIntegrationTests_depth_map_runner (Failed)
45 - PythonIntegrationTests_discrete_3d_test_help (Failed)
46 - PythonIntegrationTests_discrete_3d_test (Failed)
47 - PythonIntegrationTests_drawing_test_help (Failed)
48 - PythonIntegrationTests_drawing_test (Failed)
49 - PythonIntegrationTests_file_test_help (Failed)
50 - PythonIntegrationTests_file_test (Failed)
51 - PythonIntegrationTests_hit_test_help (Failed)
52 - PythonIntegrationTests_hit_test (Failed)
53 - PythonIntegrationTests_inventory_test_help (Failed)
54 - PythonIntegrationTests_inventory_test (Failed)
55 - PythonIntegrationTests_MazeRunner_help (Failed)
56 - PythonIntegrationTests_MazeRunner (Failed)
57 - PythonIntegrationTests_mission_quit_command_example_help (Failed)
58 - PythonIntegrationTests_mission_quit_command_example (Failed)
59 - PythonIntegrationTests_mob_fun_help (Failed)
60 - PythonIntegrationTests_mob_fun (Failed)
61 - PythonIntegrationTests_mouse_steering_test_help (Failed)
62 - PythonIntegrationTests_mouse_steering_test (Failed)
63 - PythonIntegrationTests_moving_target_test_help (Failed)
64 - PythonIntegrationTests_moving_target_test (Failed)
65 - PythonIntegrationTests_overclock_test_help (Failed)
66 - PythonIntegrationTests_overclock_test (Failed)
67 - PythonIntegrationTests_patchwork_quilt_help (Failed)
68 - PythonIntegrationTests_patchwork_quilt (Failed)
69 - PythonIntegrationTests_quit_from_reaching_position_test_help (Failed)
70 - PythonIntegrationTests_quit_from_reaching_position_test (Failed)
71 - PythonIntegrationTests_radar_test_help (Failed)
72 - PythonIntegrationTests_radar_test (Failed)
73 - PythonIntegrationTests_render_speed_test_help (Failed)
74 - PythonIntegrationTests_render_speed_test (Failed)
75 - PythonIntegrationTests_reward_for_discarding_items_test_help (Failed)
76 - PythonIntegrationTests_reward_for_discarding_items_test (Failed)
77 - PythonIntegrationTests_reward_for_items_test_help (Failed)
78 - PythonIntegrationTests_reward_for_items_test (Failed)
79 - PythonIntegrationTests_reward_for_mission_end_test_help (Failed)
80 - PythonIntegrationTests_reward_for_mission_end_test (Failed)
81 - PythonIntegrationTests_robust_frames_help (Failed)
82 - PythonIntegrationTests_robust_frames (Failed)
83 - PythonIntegrationTes

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>
import MalmoPython
ImportError: /home/sean/MalmoPlatform/build/install/Python_Examples/MalmoPython.so: undefined symbol: _ZTIN5boost6python15instance_holderE

Sean O'Sullivan
googling that error leads back to boost issues. I do not have a clue what im doing in regard to boost to be honest. Any ideas on materials I might read to try and get up to speed?
Sean O'Sullivan
also, how does using anaconda or a conda environment affect this?
Hi guys, I'm trying to find a tutorial for constructing a world with houses. Any ideas?
Andre Kramer
@seanysull_gitlab If you are using conda you could try MarLo (https://github.com/crowdAI/marLo) . These python wheels were built from https://github.com/nehaljwani/malmo-pip-pkg which may give you some more clues about building for your Linux/Python/Conda environment. Otherwise, please open an issue on GitHub malmo.
Sean O'Sullivan
Thank you
Pratik Mehta
While installing malmo using cmake, almost all components install successfully except for 'Building minecraft' which always fails for 'fixMcSources'. It says 'Patching failed: minecraft\net\minecraft\util\math\Cartesian.java
Hunk 1 failed! Cannot find hunk target'
As a result I am unable to launch minecraft clients successfully.

More information:
"* What went wrong:
Execution failed for task ':fixMcSources'.

com.cloudbees.diff.PatchException: Cannot find hunk target

  • Try:
    Run with --info or --debug option to get more log output.""
Pratik Mehta
Is this an issue with gradle? I am unable to proceed. This is on Mac OS X High Sierra
Andre Kramer
@pratikmehta14 It may be worth trying to clear your gradle cache: ./gradlew cleanBuildCache or delete ~/.gradle/cache.
I'd like to add torches on the wall of a bedrock room. Anyone know how to do this?
Hi, I just try to run tutorial_1, and got this error"Failed to find an available client for this mission - tried all the clients in the supplied client pool" , and I went to the FAQ page, seems the reason is I got no mod in the mod list, how to fix this?
Wenhan Kong
Hi, I'm trying to get multi_agent_test.py running, but it keeps showing "Not enough available Minecraft instances running." How to fix it?
Hi, I'm wondering if anyone could help me get Malmo working. My problem is that I don't know how to get boost_python35, and as far as i know Malmo doesn't support python3.6, are they planning to? I am at step 7 viii of this page https://github.com/Microsoft/malmo/blob/master/doc/build_linux.md getting: "Could not find the following static Boost libraries: boost_python35" Im running ubuntu 18.10, my system does however have libboost_python[27, 36, 37] at /usr/lib/x86_64-linux-gnu
Pratik Mehta
@AndKram I was on Java 9, moving to JDK 8 helped
Daniel Kozirev
Hello everyone, I am currently considering Project Malmo for long-term use for my PhD research. I was wondering if there is any information on whether this is going to be actively maintained? Thanks in advance!
Andre Kramer
@this-guy-0 There are binary releases available if you don't want to build form source otherwise a good starting point would be the docker build script for Ubuntu 18 (https://github.com/microsoft/malmo/blob/master/scripts/docker/build_ubuntu1804_python3.dockerfile).
Andre Kramer
@WenhanKong Have you started the right number of Minecraft instances (on ports 10000 and 10001, 10002 etc)?
@VictorZhaointhehouse Can you make sure that you have Minecraft running. Possibly it's still handling a previous mission (it's output & logs would tell you) so restarting Minecraft may help.
Sean O'Sullivan
@this-guy-0 I had trouble building from source but got the pre built version working easily.
@AndKram Is it possible to get the distances between the player and the blocks surrounding them in a similar fashion to how you can get the types of the surrounding blocks?
  • Where:
    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.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I met this problem when I run "./launchClient.bat" in my anaconda powershell prompt.
how can I get a version.properties file?
Thanks in advance!
I've install malmo in my windows10 system by "pip3 install malmo"
And I can also import malmo in python
OMG~I fix it. THANKS
Andre Kramer
@seanysull You can ask for depth observations from a video producer.
Hello all,
I'm looking to base my own evolution simulation on the Malmo project base, but I need to know a few things before setting out:
Firstly, due to the continuous nature of my simulation I would need to be able to add new agents during the simulation that may not be defined before the start. Is the AgentSelection definition too rigid for this to occur?
Second, if it turns out that you must define every agent at the time of initialization, must all clients be connected before the environment can begin? If I were to define 20 clients, but only use 15 at the beginning of the simulation, would I be able to introduce the rest at a later date?
Thank you in advance!
Andre Kramer
@PlatinumNinja72 Currently all the agents are declared in the mission XML (as you observe) and the mission startup waits for all of them to turn up. I'd also add that the agents are relatively heavy weight as each requires an instance of Minecraft to be running and failures result in missions ending so having as many as 20 agents could be somewhat problematic.
Isak Falk

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

    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!

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.

Andre Kramer
@IsakFalk You might want to look at the docker examples in https://github.com/microsoft/malmo/tree/master/scripts/docker. There's one (https://github.com/microsoft/malmo/tree/master/scripts/docker) that installs VNC so that you can view it remotely. There are instructions how to run and connect to it near the end of https://github.com/Microsoft/malmo/blob/master/scripts/python-wheel/README.md.
Isak Falk
@AndKram Thanks Andre, I found the repo and it's working now.
how do you run the xml files?
Andre Kramer
Which xml files do you mean?
Could I know is there a way to retrieve the size of the Minecraft World created? I would like to reproduce the whole world as a symbolic view similar to what has been done in the Microsoft Malmo: ai-challenge:PigChase in the environment. However, the world that I would like to visualize is larger and the world size is unknown.