When I run the following code, I get this error:
import gym
import minerl
env = gym.make('MineRLObtainDiamond-v0')
Traceback (most recent call last):
File "G:/Minerl_Learning/main.py", line 1, in
import minerl
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl__init.py", line 6, in
import minerl.herobraine.envs
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\envs.py", line 16, in
MINERL_TREECHOP_V0 = Treechop()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\treechop_specs.py", line 35, in init
max_episode_steps=8000, reward_threshold=64.0)
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 30, in init
super().init(name, xml, *args, **kwargs)
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_spec.py", line 24, in init
self.actionables = self.create_actionables()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 43, in create_actionables
handlers.KeyboardAction(k, v) for k,v in INVERSE_KEYMAP.items()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 44, in
if k in SimpleEnvSpec.STANDARD_KEYBOARD_ACTIONS
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\hero\handlers\actionable.py", line 364, in init
super().init(command, spaces.Discrete(len(keys) + 1))
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\hero\spaces.py", line 202, in init__
self.shape = ()
AttributeError: can't set attribute
Can someone tell me why I get an error?
py3.7 + minerl==0.3.7 + windows11
When I run the following code, I get this error: import gym import minerl env = gym.make('MineRLObtainDiamond-v0')
Traceback (most recent call last): File "G:/Minerl_Learning/main.py", line 1, in
import minerl
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl__init.py", line 6, in
import minerl.herobraine.envs
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\envs.py", line 16, in
MINERL_TREECHOP_V0 = Treechop()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\treechop_specs.py", line 35, in init
max_episode_steps=8000, reward_threshold=64.0)
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 30, in init
super().init(name, xml, *args, **kwargs)
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_spec.py", line 24, in init
self.actionables = self.create_actionables()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 43, in create_actionables
handlers.KeyboardAction(k, v) for k,v in INVERSE_KEYMAP.items()
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\env_specs\simple_env_spec.py", line 44, in
if k in SimpleEnvSpec.STANDARD_KEYBOARD_ACTIONS
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\hero\handlers\actionable.py", line 364, in init
super().init(command, spaces.Discrete(len(keys) + 1))
File "F:\Anaconda\envs\minerl_learning\lib\site-packages\minerl\herobraine\hero\spaces.py", line 202, in init__
self.shape = ()
AttributeError: can't set attribute
Can someone tell me why I get an error? py3.7 + minerl==0.3.7 + windows11