dahlia / wikidata

Wikidata client library for Python

Home Page:https://pypi.org/project/Wikidata/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: No module named 'typing'

StephaneLefebvre opened this issue · comments

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

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