You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import minedojo
if __name__ == "__main__":
env = minedojo.make(
task_id="techtree_from_barehand_to_archery", image_size=(160, 256),
)
obs = env.reset()
for i in range(50):
act = env.action_space.no_op()
act[0] = 1 # forward/backward
if i % 10 == 0:
act[2] = 1 # jump
obs, reward, done, info = env.step(act)
env.close()
I get the following error trace
[INFO:minedojo.tasks] Loaded 1581 Programmatic tasks, 1560 Creative tasks, and 1 special task: "Playthrough". Totally 3142 tasks loaded.
Traceback (most recent call last):
File "/Users/andrewstelmach/Desktop/MineDojo/scripts/validate_install.py", line 5, in <module>
env = minedojo.make(
^^^^^^^^^^^^^^
File "/Users/andrewstelmach/Desktop/MineDojo/minedojo/tasks/__init__.py", line 539, in make
return ARNNWrapper(env_obj, cam_interval=cam_interval)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andrewstelmach/Desktop/MineDojo/minedojo/sim/wrappers/ar_nn/ar_nn_wrapper.py", line 26, in __init__
_NNActionSpaceWrapper(
File "/Users/andrewstelmach/Desktop/MineDojo/minedojo/sim/wrappers/ar_nn/nn_action_space_wrapper.py", line 27, in __init__
and "swap_slot" not in env.action_space.keys()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: please use this wrapper with event_level_control = True
The text was updated successfully, but these errors were encountered:
You might have to wrap env.action_space.keys() in a list() like list(env.action_space.keys()) for it to work. This worked for me on gym version 0.22.0.
When running the following simple script:
I get the following error trace
The text was updated successfully, but these errors were encountered: