Problem with import minerl

#1

I got an error while importing minerl. Did anyone encounter below problem?

(minerl-py3.7) MacBook-Pro:~ desin$ python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import minerl
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.7/site-packages/minerl/init.py”, line 1, in
import minerl.data
File “/usr/local/lib/python3.7/site-packages/minerl/data/init.py”, line 1, in
from minerl.data.data_pipeline import DataPipeline
File “/usr/local/lib/python3.7/site-packages/minerl/data/data_pipeline.py”, line 8, in
from typing import List, Tuple, Any
File “/usr/local/lib/python3.7/site-packages/typing.py”, line 1356, in
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File “/usr/local/lib/python3.7/site-packages/typing.py”, line 1004, in new
self._abc_registry = extra._abc_registry
AttributeError: type object ‘Callable’ has no attribute ‘_abc_registry’

#2

This looks like an error within your python installation and perhaps not in minerl.

💯 - wguss@bigbook:~$ python3.7
Python 3.7.1 (default, Oct 22 2018, 11:21:55) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import minerl
>>>

Could you running the following in python:

>>> from typing import List, Tuple, Any

If this fails with the same error, then try running

pip uninstall typing
#3

It was probably configuration error with version 3.7. I removed/reinstalled everything after switching to python 3.6 and now it works. thanks