Giter Club home page Giter Club logo

gym-minecraft's People

Contributors

bowenjiangubc avatar figgybit avatar tambetm avatar yet-another-account avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gym-minecraft's Issues

use of target_network in duel.py (in example)

Hi,

I have been exploring your example code of dual networks in dqn.
In that, I don't see how the target network is really used in your implementation. Its weights are updated at constant intervals, but you don't "use" it anywhere.
The existence of target network is to compute the target_q values right? which is 'qpost' in your code if I am not mistaken.
So, shouldn't line 144 be

qpost = target_model.predict(poststates)

instead of

qpost = model.predict(poststates)

Please correct me if I'm wrong, I am still learning about dqns! :)

Does client_pool work?

I keep getting this error when running env.init(client_pool=[('127.0.0.1', 10001)]). I've launched the Malmo server using ./launchClient -port 10001.
Error:
Error starting mission: Failed to find an available client for this mission - tried all the clients in the supplied client pool.

_configure() got an unexpected keyword argument

Hello,
after I installed minecraft-py, launch minecraft is ok. but, run examples/test.py or others code always got _configure() got an unexpected keyword argument:

python test.py
[2017-01-10 10:30:28,995] Making new env: MinecraftBasic-v0
Traceback (most recent call last):
File "test.py", line 7, in
env.configure(allowDiscreteMovement=["move", "turn"], log_level="INFO")
File "/Users/jomyhuang/Desktop/dev/gym/gym/core.py", line 230, in configure
reraise(suffix='(for {})'.format(self.spec.id))
File "/Users/jomyhuang/Desktop/dev/gym/gym/utils/reraise.py", line 17, in reraise
reraise_impl(e, traceback)
File "/Users/jomyhuang/Desktop/dev/gym/gym/core.py", line 224, in configure
self._configure(*args, **kwargs)
gym.utils.reraise.ReraisedException: The original exception was:

exceptions.TypeError: _configure() got an unexpected keyword argument 'allowDiscreteMovement'

(for MinecraftBasic-v0)

Problem parsing XML or accessing AgentObservationsPort?

I just installed gym-minecraft and I'm trying to run the first default mission ('MinecraftBasic-v0'), but having problems getting the mission to start. I'm using the test.py code:

import logging
logging.basicConfig(level=logging.DEBUG)

import gym
import gym_minecraft

env = gym.make('MinecraftBasic-v0')
env.init(start_minecraft=True)
env.reset()

done = False
while not done:
        env.render()
        action = env.action_space.sample()
        obs, reward, done, info = env.step(action)
        
env.close()

Minecraft starts, but then I get this error:

INFO:minecraft_py:Minecraft process ready
INFO:gym_minecraft.envs.minecraft_env:Started Minecraft on port 10000, overriding client_pool.
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:crouch
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:jump
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:move
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:pitch
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:strafe
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:turn
DEBUG:gym_minecraft.envs.minecraft_env:ContinuousMovement:use
DEBUG:gym_minecraft.envs.minecraft_env:Discrete(14)
WARNING:gym_minecraft.envs.minecraft_env:Error starting mission: Internal error: the XML we generate does not validate: instance document parsing failed
:1:2897 error: element 'AgentObservationsPort' is not allowed for content model '(ClientIPAddress,ClientMissionControlPort,ClientCommandsPort,AgentIPAddress,AgentMissionControlPort,AgentVideoPort,AgentDepthPort,AgentLuminancePort,AgentObservationsPort,AgentRewardsPort,AgentColourMapPort)'
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><MissionInit xmlns="http://ProjectMalmo.microsoft.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ProjectMalmo.microsoft.com MissionInit.xsd"><Mission><About><Summary>Find the goal!</Summary></About><ModSettings><PrioritiseOffscreenRendering>true</PrioritiseOffscreenRendering></ModSettings><ServerSection><ServerInitialConditions><Time><StartTime>6000</StartTime><AllowPassageOfTime>false</AllowPassageOfTime></Time><Weather>clear</Weather><AllowSpawning>false</AllowSpawning></ServerInitialConditions><ServerHandlers><FlatWorldGenerator destroyAfterUse="true" forceReset="false" generatorString="3;7,220*1,5*3,2;3;,biome_1" seed=""/><ClassroomDecorator seed="__SEED__"><specification><width>7</width><height>7</height><length>7</length><pathLength>0</pathLength><divisions><southNorth>0</southNorth><eastWest>0</eastWest><aboveBelow>0</aboveBelow></divisions><horizontalObstacles><gap>0</gap><bridge>0</bridge><door>0</door><puzzle>0</puzzle><jump>0</jump></horizontalObstacles><verticalObstacles><stairs>0</stairs><ladder>0</ladder><jump>0</jump></verticalObstacles><hintLikelihood>1</hintLikelihood></specification></ClassroomDecorator><ServerQuitFromTimeUp description="out_of_time" timeLimitMs="30000"/><ServerQuitWhenAnyAgentFinishes description=""/></ServerHandlers></ServerSection><AgentSection mode="Survival"><Name>James Bond</Name><AgentStart><Placement pitch="0" x="-203.5" y="81" yaw="0" z="217.5"/></AgentStart><AgentHandlers><ObservationFromFullStats/><VideoProducer viewpoint="0" want_depth="false"><Width>320</Width><Height>240</Height></VideoProducer><RewardForTouchingBlockType dimension="0"><Block behaviour="oncePerBlock" cooldownInMs="1000" reward="20" type="gold_ore diamond_ore redstone_ore"/></RewardForTouchingBlockType><RewardForSendingCommand dimension="0" reward="-1"/><RewardForMissionEnd dimension="0" rewardForDeath="-10000"><Reward description="found_goal" reward="1000"/><Reward description="out_of_time" reward="-1000"/></RewardForMissionEnd><ContinuousMovementCommands turnSpeedDegs="180"><ModifierList type="deny-list"><command>attack</command></ModifierList></ContinuousMovementCommands><AgentQuitFromTouchingBlockType><Block description="found_goal" type="gold_block diamond_block redstone_block"/></AgentQuitFromTouchingBlockType></AgentHandlers></AgentSection></Mission><ExperimentUID>experiment_id</ExperimentUID><ClientRole>0</ClientRole><ClientAgentConnection><ClientIPAddress>127.0.0.1</ClientIPAddress><ClientMissionControlPort>10000</ClientMissionControlPort><ClientCommandsPort>0</ClientCommandsPort><AgentIPAddress>127.0.0.1</AgentIPAddress><AgentMissionControlPort>10035</AgentMissionControlPort><AgentVideoPort>10472</AgentVideoPort><AgentObservationsPort>10416</AgentObservationsPort><AgentRewardsPort>10309</AgentRewardsPort></ClientAgentConnection></MissionInit>

INFO:gym_minecraft.envs.minecraft_env:Sleeping for 10 seconds...

I haven't changed any of the xml files, and the xml text is structurally valid. I also tried loading the mission file from another source:

env = gym.make('MinecraftBasic-v0')
env.load_mission_file("basic2.xml")

The script loaded the mission file correctly, but I still get the same error.

Then there's the other error: error: element 'AgentObservationsPort' is not allowed for content model . This seems to be linked to the ClientAgentConnection in Malmo https://github.com/Microsoft/malmo/blob/master/Schemas/MissionInit.xsd

Any help would be much appreciated!

Compilation problems

Hey,

I ran into some problems when trying to compile Minecraft / minecraft_py as per the README's instructions. Basically I followed the instructions up until the point where you try to run minecraft_py for the first time (code inside the snippet below, first lines). Does anyone have an idea what's going on?

`In [1]: import logging
...: logging.basicConfig(level=logging.DEBUG)
...:
...: import minecraft_py
...:
...: proc, port = minecraft_py.start()
...: minecraft_py.stop(proc)
...:
INFO:minecraft_py:Starting Minecraft process: /usr/local/lib/python2.7/dist-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/launchClient.sh -port 10000
DEBUG:minecraft_py:Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.

DEBUG:minecraft_py:java.lang.RuntimeException: MISSING REPLACEMENT DATA FOR API_GROUP_DIR

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.TokenReplacer.replace(TokenReplacer.java:83)

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.DelayedBase.call(DelayedBase.java:34)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.unpack(AbstractFileResolver.java:201)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.convertObjectToFile(AbstractFileResolver.java:186)

DEBUG:minecraft_py: at org.gradle.api.internal.file.BaseDirFileResolver.doResolve(BaseDirFileResolver.java:71)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:84)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:66)

DEBUG:minecraft_py: at org.gradle.api.internal.file.DefaultFileOperations.file(DefaultFileOperations.java:73)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.file(AbstractProject.java:649)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:391)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:386)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)

DEBUG:minecraft_py: at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)

DEBUG:minecraft_py: at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)

DEBUG:minecraft_py: at com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:521)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:92)

DEBUG:minecraft_py: at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)

DEBUG:minecraft_py: at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125)

DEBUG:minecraft_py: at org.gradle.internal.Factories$1.create(Factories.java:22)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)

DEBUG:minecraft_py: at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)

DEBUG:minecraft_py: at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

DEBUG:minecraft_py: at org.gradle.launcher.Main.doAction(Main.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)

DEBUG:minecraft_py: at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)

DEBUG:minecraft_py: at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

DEBUG:minecraft_py:

DEBUG:minecraft_py:FAILURE: Build failed with an exception.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Where:

DEBUG:minecraft_py:Build file '/usr/local/lib/python2.7/dist-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build.gradle' line: 25

DEBUG:minecraft_py:

DEBUG:minecraft_py:* What went wrong:

DEBUG:minecraft_py:A problem occurred evaluating root project 'Minecraft'.

DEBUG:minecraft_py:> 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.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Try:

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

DEBUG:minecraft_py:

DEBUG:minecraft_py:BUILD FAILED

DEBUG:minecraft_py:

DEBUG:minecraft_py:Total time: 5.425 secs

DEBUG:minecraft_py:Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.

DEBUG:minecraft_py:java.lang.RuntimeException: MISSING REPLACEMENT DATA FOR API_GROUP_DIR

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.TokenReplacer.replace(TokenReplacer.java:83)

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.DelayedBase.call(DelayedBase.java:34)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.unpack(AbstractFileResolver.java:201)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.convertObjectToFile(AbstractFileResolver.java:186)

DEBUG:minecraft_py: at org.gradle.api.internal.file.BaseDirFileResolver.doResolve(BaseDirFileResolver.java:71)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:84)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:66)

DEBUG:minecraft_py: at org.gradle.api.internal.file.DefaultFileOperations.file(DefaultFileOperations.java:73)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.file(AbstractProject.java:649)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:391)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:386)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)

DEBUG:minecraft_py: at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)

DEBUG:minecraft_py: at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)

DEBUG:minecraft_py: at com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:521)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:92)

DEBUG:minecraft_py: at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)

DEBUG:minecraft_py: at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125)

DEBUG:minecraft_py: at org.gradle.internal.Factories$1.create(Factories.java:22)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)

DEBUG:minecraft_py: at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)

DEBUG:minecraft_py: at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

DEBUG:minecraft_py: at org.gradle.launcher.Main.doAction(Main.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)

DEBUG:minecraft_py: at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)

DEBUG:minecraft_py: at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

DEBUG:minecraft_py:

DEBUG:minecraft_py:FAILURE: Build failed with an exception.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Where:

DEBUG:minecraft_py:Build file '/usr/local/lib/python2.7/dist-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build.gradle' line: 25

DEBUG:minecraft_py:

DEBUG:minecraft_py:* What went wrong:

DEBUG:minecraft_py:A problem occurred evaluating root project 'Minecraft'.

DEBUG:minecraft_py:> 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.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Try:

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

DEBUG:minecraft_py:

DEBUG:minecraft_py:BUILD FAILED

DEBUG:minecraft_py:

DEBUG:minecraft_py:Total time: 3.829 secs

DEBUG:minecraft_py:Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.

DEBUG:minecraft_py:java.lang.RuntimeException: MISSING REPLACEMENT DATA FOR API_GROUP_DIR

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.TokenReplacer.replace(TokenReplacer.java:83)

DEBUG:minecraft_py: at net.minecraftforge.gradle.util.delayed.DelayedBase.call(DelayedBase.java:34)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.unpack(AbstractFileResolver.java:201)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.convertObjectToFile(AbstractFileResolver.java:186)

DEBUG:minecraft_py: at org.gradle.api.internal.file.BaseDirFileResolver.doResolve(BaseDirFileResolver.java:71)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:84)

DEBUG:minecraft_py: at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:66)

DEBUG:minecraft_py: at org.gradle.api.internal.file.DefaultFileOperations.file(DefaultFileOperations.java:73)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.file(AbstractProject.java:649)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:391)

DEBUG:minecraft_py: at net.minecraftforge.gradle.user.UserBasePlugin$3.execute(UserBasePlugin.java:386)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)

DEBUG:minecraft_py: at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)

DEBUG:minecraft_py: at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)

DEBUG:minecraft_py: at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)

DEBUG:minecraft_py: at com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)

DEBUG:minecraft_py: at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:521)

DEBUG:minecraft_py: at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:92)

DEBUG:minecraft_py: at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)

DEBUG:minecraft_py: at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125)

DEBUG:minecraft_py: at org.gradle.internal.Factories$1.create(Factories.java:22)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

DEBUG:minecraft_py: at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)

DEBUG:minecraft_py: at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)

DEBUG:minecraft_py: at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)

DEBUG:minecraft_py: at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)

DEBUG:minecraft_py: at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)

DEBUG:minecraft_py: at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)

DEBUG:minecraft_py: at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)

DEBUG:minecraft_py: at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)

DEBUG:minecraft_py: at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

DEBUG:minecraft_py: at org.gradle.launcher.Main.doAction(Main.java:33)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)

DEBUG:minecraft_py: at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)

DEBUG:minecraft_py: at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

DEBUG:minecraft_py: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

DEBUG:minecraft_py: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

DEBUG:minecraft_py: at java.lang.reflect.Method.invoke(Method.java:498)

DEBUG:minecraft_py: at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)

DEBUG:minecraft_py: at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)

DEBUG:minecraft_py: at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

DEBUG:minecraft_py:

DEBUG:minecraft_py:FAILURE: Build failed with an exception.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Where:

DEBUG:minecraft_py:Build file '/usr/local/lib/python2.7/dist-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build.gradle' line: 25

DEBUG:minecraft_py:

DEBUG:minecraft_py:* What went wrong:

DEBUG:minecraft_py:A problem occurred evaluating root project 'Minecraft'.

DEBUG:minecraft_py:> 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.

DEBUG:minecraft_py:

DEBUG:minecraft_py:* Try:

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

DEBUG:minecraft_py:

DEBUG:minecraft_py:BUILD FAILED

DEBUG:minecraft_py:

DEBUG:minecraft_py:Total time: 3.747 secs

DEBUG:minecraft_py:

EOFError Traceback (most recent call last)
in ()
4 import minecraft_py
5
----> 6 proc, port = minecraft_py.start()
7 minecraft_py.stop(proc)

/usr/local/lib/python2.7/dist-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/init.pyc in start(port)
68 logger.debug(line)
69 if not line:
---> 70 raise EOFError("Minecraft process finished unexpectedly")
71 if b"CLIENT enter state: DORMANT" in line:
72 break

EOFError: Minecraft process finished unexpectedly
`

Install Error: C1083: Cannot open include file: 'SDL.h': No such file or directory

Hi, I am attempting to install gym for the first time and after running the following command I get the following error back, have I done something wrong in the setup process?

Thanks in advance

python setup.py install

----
Continuing With "setup.py"
Skipping module _numericsurfarray for Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] build.
Skipping module scrap for Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] build.
Skipping module _camera for Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] build.
WARNING, DLL for SDL library not found.
WARNING, DLL for SDL_ttf library not found.
WARNING, DLL for SDL_image library not found.
WARNING, DLL for SDL_mixer library not found.
WARNING, DLL for smpeg library not found.
WARNING, DLL for png library not found.
WARNING, DLL for jpeg library not found.
WARNING, DLL for portmidi library not found.
WARNING, DLL for tiff library not found.
WARNING, DLL for z library not found.
WARNING, DLL for vorbis library not found.
WARNING, DLL for vorbisfile library not found.
WARNING, DLL for ogg library not found.
C:\Users\Phil\AppData\Local\Programs\Python\Python36\lib\site-packages\setuptools\dist.py:340: UserWarning: The version specified ('1.9.1release') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version
no previously-included directories found matching '*\CVS'
no previously-included directories found matching '*\*\CVS'
gfxdraw.c
C:\Users\Phil\AppData\Local\Temp\easy_install-6xqmf6hk\pygame-1.9.1release\src\pygame.h(106): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.21.27702\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Error installation

Hi !
I have a problem with the installation (step 5).
I have tried to run the code but there is path problem :

>>> import minecraft_py
>>> proc, port = minecraft_py.start()
INFO:minecraft_py:Starting Minecraft process: /home/nicolas/miniconda2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/launchClient.sh -port 10000
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nicolas/miniconda2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/__init__.py", line 64, in start
    preexec_fn=os.setsid)
  File "/home/nicolas/miniconda2/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/home/nicolas/miniconda2/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/home/nicolas/miniconda2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft

I checked the path (/miniconda2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py).
It only contains two files :
init.py
init.pyc

Yet I followed all the installation steps

i can load client from malmo/minecraft folder independently using terminal but gets this error when i run my source code both in terminal and in pycharm editor.

return f(*args, **kwds)
[2019-03-31 13:34:45,761] Making new env: MinecraftBasic-v0
/home/adil/minecraft-py/minecraft_py/Malmo/Minecraft
Traceback (most recent call last):
File "/home/adil/Downloads/Minecraft-Reinforcement-Learning-master/DRQN_vs_DQN_minecraft.py", line 50, in
skip_steps = 0) #Movements modified to a faster convergence
File "/home/adil/anaconda3/lib/python3.6/site-packages/gym_minecraft-0.0.2-py3.6.egg/gym_minecraft/envs/minecraft_env.py", line 114, in init
self.mc_process, port = minecraft_py.start()
File "/home/adil/anaconda3/lib/python3.6/site-packages/minecraft_py-0.0.2-py3.6.egg/minecraft_py/init.py", line 80, in start
raise EOFError("Minecraft process finished unexpectedly")
EOFError: Minecraft process finished unexpectedly

In there any enemy present in MinecraftBasic-v0 ??

Fist of all, excuse me for asking a question in the shape of an issue,
In MinecraftBasic-v0 the agent needs to touch the target block in partially observable environment where there is no lava. My question is that is there any enemy in that grey room where the agent need to touch the target block. Please how can i find a detail information about MinecraftBasic-v0 such as enemy, food, Air, life, Damage taken, Damage Dealt etc etc etc.
I will be thankful if someone replies with a little detail to my question.

Error while setting up

Hello there!
I tried installing following the instructions.

pip install gym
minecraft_py: git clone and python setup.py install
pip install pygame
gym_minecraft: git clone and python setup.py install

Up to this point no problem encountered. However now I try to run the provided snippet for building Minecraft:

    import logging
    logging.basicConfig(level=logging.DEBUG)
    import minecraft_py
    proc, port = minecraft_py.start()
    minecraft_py.stop(proc)

And the line minecraft_py.start() throws an error:

python snippet.py 
INFO:minecraft_py:Starting Minecraft process: /home/mario/miniconda3/envs/pygym2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/launchClient.sh -port 10000
Traceback (most recent call last):
  File "snippet.py", line 6, in <module>
    proc, port = minecraft_py.start()
  File "/home/mario/miniconda3/envs/pygym2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/__init__.py", line 64, in start
    preexec_fn=os.setsid)
  File "/home/mario/miniconda3/envs/pygym2/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/home/mario/miniconda3/envs/pygym2/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/home/mario/miniconda3/envs/pygym2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft'

It seems that the path to Malmo is wrong.

I would also like to mention that I have a separate Malmo installation going on in a different folder, I hope that is not interfering here.

Performing:
ls /home/mario/miniconda3/envs/pygym2/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/
reveals that there is no Malmo there, as there are only two files inside:
__init__.py __init__.pyc

I can confirm that minecraft_py is listed by conda list as a successfully installed package, version 0.0.2

Sorry in advance if this issue is trivial or I'm doing something obvious wrong.

Fail to launch the environment

I failed trying to lauch Minecraft Environment with the following error messages (it's too long so I just put some error bits):
DEBUG:minecraft_py:[ant:javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
DEBUG:minecraft_py:[ant:javac] Note: Some input files use or override a deprecated API.
DEBUG:minecraft_py:[ant:javac] Note: Recompile with -Xlint:deprecation for details.
DEBUG:minecraft_py:[ant:javac] Note: Some input files use unchecked or unsafe operations.
DEBUG:minecraft_py:[ant:javac] Note: Recompile with -Xlint:unchecked for details.
DEBUG:minecraft_py:[ant:javac] 1 warning
DEBUG:minecraft_py::recompileMc FAILED
DEBUG:minecraft_py:
DEBUG:minecraft_py:FAILURE: Build failed with an exception.
DEBUG:minecraft_py:
DEBUG:minecraft_py:* What went wrong:
DEBUG:minecraft_py:Execution failed for task ':recompileMc'.
DEBUG:minecraft_py:> Problems opening file input stream for file: /home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/tmp/recompileMc/compiled/net/minecraft/network/play/server/S11PacketSpawnExperienceOrb.class
DEBUG:minecraft_py:
DEBUG:minecraft_py:* Try:
DEBUG:minecraft_py:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
DEBUG:minecraft_py:
DEBUG:minecraft_py:BUILD FAILED
DEBUG:minecraft_py:
DEBUG:minecraft_py:Total time: 10 mins 56.875 secs
DEBUG:minecraft_py:****************************
DEBUG:minecraft_py: Powered By MCP:
DEBUG:minecraft_py: http://modcoderpack.com/
DEBUG:minecraft_py: Searge, ProfMobius, Fesh0r,
DEBUG:minecraft_py: R4wk, ZeuX, IngisKahn, bspkrs
DEBUG:minecraft_py: MCP Data version : 9.10
DEBUG:minecraft_py:****************************
DEBUG:minecraft_py:Version string 'unspecified' does not match SemVer specification
DEBUG:minecraft_py:You should try SemVer : http://semver.org/
DEBUG:minecraft_py::deobfCompileDummyTask
DEBUG:minecraft_py::deobfProvidedDummyTask
DEBUG:minecraft_py::compileApiJava UP-TO-DATE
DEBUG:minecraft_py::processApiResources UP-TO-DATE
DEBUG:minecraft_py::apiClasses UP-TO-DATE
DEBUG:minecraft_py::copyModToClient UP-TO-DATE
DEBUG:minecraft_py::copyModToServer UP-TO-DATE
DEBUG:minecraft_py::deleteSchemas
DEBUG:minecraft_py::copySchemas
DEBUG:minecraft_py::jaxb
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-xjc/2.2.4-1/jaxb-xjc-2.2.4-1.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/net/java/jvnet-parent/1/jvnet-parent-1.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.4-1/jaxb-impl-2.2.4-1.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.3/jaxb-api-2.2.3.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/activation/activation/1.1/activation-1.1.pom
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-xjc/2.2.4-1/jaxb-xjc-2.2.4-1.jar
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.4-1/jaxb-impl-2.2.4-1.jar
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.3/jaxb-api-2.2.3.jar
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar
DEBUG:minecraft_py:Download https://repo1.maven.org/maven2/javax/activation/activation/1.1/activation-1.1.jar
DEBUG:minecraft_py::sourceMainJava
DEBUG:minecraft_py::compileJava
DEBUG:minecraft_py:Download https://libraries.minecraft.net/com/mojang/authlib/1.5.17/authlib-1.5.17.pom
DEBUG:minecraft_py:Download https://libraries.minecraft.net/com/mojang/authlib/1.5.17/authlib-1.5.17.jar
DEBUG:minecraft_py:error: error reading /home/alexzhou/.gradle/caches/minecraft/net/minecraftforge/forge/1.8-11.14.3.1543/snapshot/20141130/forgeSrc-1.8-11.14.3.1543.jar; error in opening zip file
DEBUG:minecraft_pyโš ๏ธ [options] bootstrap class path not set in conjunction with -source 1.6
DEBUG:minecraft_py:error: error reading /home/alexzhou/.gradle/caches/minecraft/net/minecraftforge/forge/1.8-11.14.3.1543/snapshot/20141130/forgeSrc-1.8-11.14.3.1543.jar; cannot read zip file
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:24: error: package net.minecraftforge.event.entity.living does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.entity.living.LivingDeathEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:25: error: package net.minecraftforge.event.world does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.world.ChunkEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:26: error: package net.minecraftforge.fml.client.event.ConfigChangedEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:27: error: package net.minecraftforge.fml.common.eventhandler does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:28: error: package net.minecraftforge.fml.common.gameevent.PlayerEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:29: error: package net.minecraftforge.fml.common.gameevent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.TickEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:22: error: package net.minecraftforge.event.entity.living does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.entity.living.LivingDeathEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:23: error: package net.minecraftforge.event.entity.living.LivingSpawnEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:24: error: package net.minecraftforge.event.world does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.world.ChunkEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:25: error: package net.minecraftforge.event.world.WorldEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.event.world.WorldEvent.PotentialSpawns;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:26: error: package net.minecraftforge.fml.client.event.ConfigChangedEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:27: error: package net.minecraftforge.fml.common.gameevent.PlayerEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:28: error: package net.minecraftforge.fml.common.gameevent.TickEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:29: error: package net.minecraftforge.fml.common.gameevent.TickEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.TickEvent.PlayerTickEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:30: error: package net.minecraftforge.fml.common.gameevent.TickEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.TickEvent.RenderTickEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:31: error: package net.minecraftforge.fml.common.gameevent.TickEvent does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.gameevent.TickEvent.ServerTickEvent;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:60: error: package TickEvent does not exist
DEBUG:minecraft_py: public void onClientTick(TickEvent.ClientTickEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:79: error: package TickEvent does not exist
DEBUG:minecraft_py: public void onServerTick(TickEvent.ServerTickEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:91: error: package TickEvent does not exist
DEBUG:minecraft_py: public void onPlayerTick(TickEvent.PlayerTickEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:103: error: package TickEvent does not exist
DEBUG:minecraft_py: public void onRenderTick(TickEvent.RenderTickEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:115: error: package ChunkEvent does not exist
DEBUG:minecraft_py: public void onChunkLoad(ChunkEvent.Load cev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:127: error: cannot find symbol
DEBUG:minecraft_py: public void onPlayerDies(LivingDeathEvent lde)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class LivingDeathEvent
DEBUG:minecraft_py: location: class EpisodeEventWrapper
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:139: error: cannot find symbol
DEBUG:minecraft_py: public void onConfigChanged(OnConfigChangedEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class OnConfigChangedEvent
DEBUG:minecraft_py: location: class EpisodeEventWrapper
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/EpisodeEventWrapper.java:157: error: cannot find symbol
DEBUG:minecraft_py: public void onPlayerJoinedServer(PlayerLoggedInEvent ev)
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class PlayerLoggedInEvent
DEBUG:minecraft_py: location: class EpisodeEventWrapper
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateMachine.java:24: error: package net.minecraftforge.common does not exist
DEBUG:minecraft_py:import net.minecraftforge.common.MinecraftForge;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateMachine.java:25: error: package net.minecraftforge.fml.common does not exist
DEBUG:minecraft_py:import net.minecraftforge.fml.common.FMLCommonHandler;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:95: error: cannot find symbol
DEBUG:minecraft_py: protected void onClientTick(ClientTickEvent ev) throws Exception {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class ClientTickEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:97: error: cannot find symbol
DEBUG:minecraft_py: protected void onServerTick(ServerTickEvent ev) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class ServerTickEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:99: error: cannot find symbol
DEBUG:minecraft_py: protected void onPlayerTick(PlayerTickEvent ev) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class PlayerTickEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:101: error: cannot find symbol
DEBUG:minecraft_py: protected void onRenderTick(RenderTickEvent ev) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class RenderTickEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:103: error: package ChunkEvent does not exist
DEBUG:minecraft_py: protected void onChunkLoad(ChunkEvent.Load cev) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:105: error: cannot find symbol
DEBUG:minecraft_py: protected void onPlayerDies(LivingDeathEvent event) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class LivingDeathEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:107: error: cannot find symbol
DEBUG:minecraft_py: protected void onConfigChanged(OnConfigChangedEvent event) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class OnConfigChangedEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/StateEpisode.java:109: error: cannot find symbol
DEBUG:minecraft_py: protected void onPlayerJoinedServer(PlayerLoggedInEvent event) {}
DEBUG:minecraft_py: ^
DEBUG:minecraft_py: symbol: class PlayerLoggedInEvent
DEBUG:minecraft_py: location: class StateEpisode
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/MalmoAuthenticationScreen.java:26: error: package net.minecraft.client.gui does not exist
DEBUG:minecraft_py:import net.minecraft.client.gui.GuiButton;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/MalmoAuthenticationScreen.java:27: error: package net.minecraft.client.gui does not exist
DEBUG:minecraft_py:import net.minecraft.client.gui.GuiScreen;
DEBUG:minecraft_py: ^
DEBUG:minecraft_py:/home/alexzhou/machine-learning/gym/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/minecraft_py/Malmo/Minecraft/build/sources/main/java/com/microsoft/Malmo/MalmoAuthenticationScreen.java:28: error: package net.minecraft.client.gui does not exist
DEBUG:minecraft_py:import net.minecraft.client.gui.GuiTextField;
...........
################################
The error goes on but later it's mainly about not being able to import net.minecraftforge.fml.client.config...
I'm not really sure what is going on... I have been trying to make this work for way too much time....

Import pytorch gives segmentation fault

I have been playing with this environment these days and would like to use pytorch to train a RL agent. However, when I import pytorch inside the script, the program gives a segmentation fault.

Code:

import gym_minecraft
import gym
import torch

if __name__ == '__main__':
    env = gym.make('MinecraftBasic-v0')
    env.init(start_minecraft=True)
    obs = env.reset()

The minecraft program is launched but does not load any task and throws a segmentation fault:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

However, if I remove import torch, it works fine.

Edit:

Here is the backtrace:

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007fffc15e8577 in void std::__once_call_impl<std::_Bind_simple<void (*())()> >() () from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/torch/lib/libTHC.so.1
(gdb) where
#0  0x00007fffc15e8577 in void std::__once_call_impl<std::_Bind_simple<void (*())()> >() () from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/torch/lib/libTHC.so.1
#1  0x00007ffff77eba99 in __pthread_once_slow (once_control=0x7fffa98b3ea0 <malmo::test_schemas_flag>, init_routine=0x7fffb9711fe1 <std::__once_proxy()>) at pthread_once.c:116
#2  0x00007fffa9448a89 in malmo::AgentHost::startMission(malmo::MissionSpec const&, malmo::ClientPool const&, malmo::MissionRecordSpec const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#3  0x00007fffa9441cbe in boost::python::detail::caller_arity<6u>::impl<void (malmo::AgentHost::*)(malmo::MissionSpec const&, malmo::ClientPool const&, malmo::MissionRecordSpec const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >), boost::python::default_call_policies, boost::mpl::vector7<void, malmo::AgentHost&, malmo::MissionSpec const&, malmo::ClientPool const&, malmo::MissionRecordSpec const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator()(_object*, _object*) ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#4  0x00007fffa959969d in boost::python::objects::function::call(_object*, _object*) const ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#5  0x00007fffa9599898 in boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke(boost::detail::function::function_buffer&) ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#6  0x00007fffa95a1883 in boost::python::detail::exception_handler::operator()(boost::function0<void> const&) const ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#7  0x00007fffa940a823 in boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<bool, boost::python::detail::translate_exception<malmo::MissionException, void (*)(malmo::MissionException const&)>, boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<void (*)(malmo::MissionException const&)> > >, bool, boost::python::detail::exception_handler const&, boost::function0<void> const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0<void> const&) ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#8  0x00007fffa95a1858 in boost::python::detail::exception_handler::operator()(boost::function0<void> const&) const ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#9  0x00007fffa940a7d3 in boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<bool, boost::python::detail::translate_exception<xsd::cxx::tree::exception<char>, void (*)(xsd::cxx::tree::exception<char> const&)>, boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<void (*)(xsd::cxx::tree::exception<char> const&)> > >, bool, boost::python::detail::exception_handler const&, boost::function0<void> const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0<void> const&) ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#10 0x00007fffa95a163d in boost::python::handle_exception_impl(boost::function0<void>) ()
   from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#11 0x00007fffa9596a79 in function_call () from /home/junhong/anaconda3/envs/MC-research/lib/python2.7/site-packages/minecraft_py/Malmo/Python_Examples/MalmoPython.so
#12 0x00007ffff7a42773 in PyObject_Call () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#13 0x00007ffff7ad653b in PyEval_EvalFrameEx () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#14 0x00007ffff7adcdac in PyEval_EvalFrameEx () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#15 0x00007ffff7adcdac in PyEval_EvalFrameEx () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#16 0x00007ffff7ade4e9 in PyEval_EvalCodeEx () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#17 0x00007ffff7ade70a in PyEval_EvalCode () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#18 0x00007ffff7af793d in run_mod () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#19 0x00007ffff7af8ab8 in PyRun_FileExFlags () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#20 0x00007ffff7af9cd8 in PyRun_SimpleFileExFlags () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#21 0x00007ffff7b0bd3c in Py_Main () from /home/junhong/anaconda3/envs/MC-research/bin/../lib/libpython2.7.so.1.0
#22 0x00007ffff6d23830 in __libc_start_main (main=0x555555554850 <main>, argc=2, argv=0x7fffffffdc58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdc48)
    at ../csu/libc-start.c:291
#23 0x000055555555487f in _start ()

very slow performance

Hi,

I have been trying to run a multi-agent setup on my local PC. But, for even 1 agent(mc client), the CPU utilization is very high (80-100%), is this normal or do I need to play around with the render settings?
(I am running this on a desktop i5 4670 3.4 GHz and nVidia 660 GTX)
Also, is it possible to run this on an ec2 instance? is full off-screen render possible?

Reset performance

I have a problem with reset, I'm using the eating_1.xml mission.
Each time I reset the environment my inventory is cleared but the items (the food) are not erased so after a few iteration the map is fulled by thousands of fruits. I could use forceWorldReset() but it's very slow. How to fully reset the map or avoid the spawning of already present fruits

[Question] Agent misses frames very frequently

Hi,

I have been using gym-minecraft in an A3C code that I am testing. It requires multiple clients running parallelly (I've used a docker image for that). I use 4 agents to train the model and I frequently get the Agent missed 13 observation(s). message for from all of the agents. I tried reducing the fps to 60 (in options.txt file in docker folder), the number of frames that it misses has decreased, but the agent still very frequently misses frames.

Is there anything else I should try modifying in the options or the xml?

Malmo version mismatches between various parts in the project

Hey,
I've been trying now to get the docker for gym-minecraft, working as well as the agent code on another docker. There's been several problems with the schema versions between the various parts of this pipeline:
The docker is using version Malmo's 0.18.0, while some installations of minecraft-py have 0.19.0 and in the Malmo's own project there's already a 0.21.0 out. Currently, I've managed to fix a few of these mismatches by editing for example the Dockerfile, or pulling my own versions of Malmo, but each setup.py (plus some locations elsewhere) seems to be supplying their own hard-coded version numbers.

Is there some way to change the versions all at once in planning, or already existing somewhere?

-J

Server without GUI

I'm trying to run the code on my server.
There is no GUI so I have tried to use :
xvfb-run -a -e /dev/stdout -s '-screen 0 1400x900x24' ./launchClient.sh

but I have the following error :

[10:38:41] [Client thread/INFO]: Setting user: Player620
[10:38:44] [Client thread/WARN]: Skipping bad option: lastServer:
[10:38:44] [Client thread/INFO]: LWJGL Version: 2.9.4
[10:38:44] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 6/22/17 10:38 AM
Description: Initializing game

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: No display mode extension is available
> Building 95% > :runClient6 XSELINUXs still allocated at reset
SCREEN: 0 objects of 256 bytes = 0 total bytes 0 private allocs
DEVICE: 0 objects of 96 bytes = 0 total bytes 0 private allocs
CLIENT: 0 objects of 144 bytes = 0 total bytes 0 private allocs
WINDOW: 0 objects of 48 bytes = 0 total bytes 0 private allocs
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 6 objects, 88 bytes, 0 allocs
1 PIXMAPs still allocated at reset
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 6 objects, 88 bytes, 0 allocs
4 GCs still allocated at reset
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 5 objects, 72 bytes, 0 allocs
1 CURSORs still allocated at reset
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 1 objects, 8 bytes, 0 allocs
1 CURSOR_BITSs still allocated at reset
TOTAL: 0 objects, 0 bytes, 0 allocs
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
        at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
        ... 16 more
Caused by: org.lwjgl.LWJGLException: No display mode extension is available
        at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:737)
        at org.lwjgl.opengl.Display.<clinit>(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:670)
        at net.minecraft.client.Minecraft.init(Minecraft.java:467)

-- Initialization --
Details:
Stacktrace:
        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)

-- System Details --
Details:
        Minecraft Version: 1.11.2
        Operating System: Linux (amd64) version 3.13.0-113-generic
        Java Version: 1.8.0_111, Oracle Corporation
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 870902560 bytes (830 MB) / 1061683200 bytes (1012 MB) up to 1908932608 bytes (1820 MB)
        JVM Flags: 1 total; -Xmx2G
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: 
        Loaded coremods (and transformers): 
OverclockingPlugin (MalmoMod-0.30.0.jar)
  com.microsoft.Malmo.OverclockingClassTransformer
        Launched Version: 1.11.2
        LWJGL: 2.9.4
        OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
        GL Caps: 
        Using VBOs: No
        Is Modded: Definitely; Client brand changed to 'fml,forge'
        Type: Client (map_client.txt)
        Resource Packs: 
        Current Language: ~~ERROR~~ NullPointerException: null
        Profiler Position: N/A (disabled)
        CPU: <unknown>
[10:38:44] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# /home/nicolas/.pyenv/versions/main/lib/python2.7/site-packages/minecraft_py-0.0.2-py2.7.egg/Malmo-0.30.0-Linux-Ubuntu-14.04-64bit_withBoost/Minecraft/run/./crash-reports/crash-2017-06-22_10.38.44-client.txt
:runClient FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runClient'.
> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 255

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

BUILD FAILED

Total time: 11.556 secs

How to run gym-minecraft on a server ?

ValueError: (False, 'Unknown discrete action jumpeast')

import gym
import gym_minecraft
env = gym.make('MinecraftCliffWalking1-v0')

env.init(start_minecraft=True)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jonkowalski/Desktop/MOVEIT/Desktop/Personal/SCHOOL/GATECH/7641/virtual_ml/venv/lib/python2.7/site-packages/gym_minecraft-0.0.2-py2.7.egg/gym_minecraft/envs/minecraft_env.py", line 129, in init
    self._create_action_space()
  File "/Users/jonkowalski/Desktop/MOVEIT/Desktop/Personal/SCHOOL/GATECH/7641/virtual_ml/venv/lib/python2.7/site-packages/gym_minecraft-0.0.2-py2.7.egg/gym_minecraft/envs/minecraft_env.py", line 191, in _create_action_space
    raise ValueError(False, "Unknown discrete action " + cmd)
ValueError: (False, 'Unknown discrete action jumpeast')

when debugging the code there seems to be a large set of discrete actions that are not supported

(Pdb) cmds = self.mission_spec.getAllowedCommands(0, ch)
(Pdb) [x for x in cmds]
['jump', 'jumpeast', 'jumpmove', 'jumpnorth', 'jumpsouth', 'jumpstrafe', 'jumpuse', 'jumpwest', 'look', 'move', 'moveeast', 'movenorth', 'movesouth', 'movewest', 'strafe', 'turn', 'use']

https://github.com/tambetm/gym-minecraft/blob/master/gym_minecraft/envs/minecraft_env.py#L182-L191

Dependency Not Installed

I keep getting an error saying
DependencyNotInstalled: No module named 'minecraft_py'. (HINT: install minecraft_py from https://github.com/tambetm/minecraft-py

When I definitely do have minecraft-py installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.