dahlia / wikidata

Wikidata client library for Python
https://pypi.org/project/Wikidata/
GNU General Public License v3.0
337 stars 31 forks source link

ImportError: No module named 'typing' #4

Closed StephaneLefebvre closed 6 years ago

StephaneLefebvre commented 6 years ago

Hello,

It seems that the pip requirement misses the typing include: ImportError: No module named 'typing'

In [1]: from wikidata.client import Client
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-1b52aaa17050> in <module>()
----> 1 from wikidata.client import Client

/home/.../lib/python3.4/site-packages/wikidata/client.py in <module>()
      6 import json
      7 import logging
----> 8 from typing import (TYPE_CHECKING,
      9                     Callable, Mapping, MutableMapping, Optional, Sequence,
     10                     Union, cast)

ImportError: No module named 'typing'

It can be hand fixed by pip install typing but it might be cleaner to add it in the setup

dahlia commented 6 years ago

Fixed by da0bd002124d43c758e3901e8208945952f66d2b and new versions that contain the bugfix have just released: 0.5.4 (changelog) and 0.6.1 (changelog).