tambetm / gym-minecraft

Minecraft environment for Open AI Gym, based on Microsoft's Malmo.
272 stars 29 forks source link

_configure() got an unexpected keyword argument #1

Open jomyhuang opened 7 years ago

jomyhuang commented 7 years ago

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)

tambetm commented 7 years ago

Oh, due to recent change in Gym, I had to rename configure() to init(). Sorry, haven't had time to update examples and documentation yet. Plus it seems they are going to revert this change, so probably I will change it back to configure() soon!

jomyhuang commented 7 years ago

got it! thank you!