minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
705 stars 155 forks source link

AttributeError: module 'gym.spaces' has no attribute 'space'. #50

Closed Madhuparna04 closed 5 years ago

Madhuparna04 commented 5 years ago

Not able to import minerl.

I am getting the following error - `AttributeError Traceback (most recent call last)

in 1 import gym ----> 2 import minerl ~/.local/lib/python3.6/site-packages/minerl/__init__.py in ----> 1 import minerl.data 2 import minerl.env ~/.local/lib/python3.6/site-packages/minerl/data/__init__.py in ----> 1 from minerl.data.data_pipeline import DataPipeline 2 from minerl.data.download import download 3 import os 4 5 ~/.local/lib/python3.6/site-packages/minerl/data/data_pipeline.py in 18 19 ---> 20 class DataPipeline: 21 """ 22 Creates a data pipeline object used to itterate through the MineRL-v0 dataset ~/.local/lib/python3.6/site-packages/minerl/data/data_pipeline.py in DataPipeline() 66 67 @staticmethod ---> 68 def map_to_dict(handler_list: list, target_space: gym.spaces.space): 69 70 def _map_to_dict(i: int, src: list, key: str, gym_space: gym.spaces.space, dst: dict): AttributeError: module 'gym.spaces' has no attribute 'space'`
Madhuparna04 commented 5 years ago

After downloading the repository it works just fine.