machinalis / iepy

Information Extraction in Python
BSD 3-Clause "New" or "Revised" License
905 stars 186 forks source link

Couldn't install iepy through pip #104

Closed sreejithc321 closed 8 years ago

sreejithc321 commented 8 years ago

I am getting this error

TypeError: 'encoding' is an invalid keyword argument for this function

Collecting iepy Using cached iepy-0.9.5.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-nP8ujN/iepy/setup.py", line 7, in with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f: TypeError: 'encoding' is an invalid keyword argument for this function

michaele4321 commented 8 years ago

I'm not an expert on this but I ran into the same error trying to dockerize the install process. It seemed to be caused by accidentally running python 2 instead of python 3.

Did you follow the "create a Virtualenv" step linked to from http://iepy.readthedocs.io/en/latest/installation.html ?

jmansilla commented 8 years ago

Indeed, that error appears when running on python 2, which isn't supported.

Should be better to print a more informative error message here. Wondering how easy that would be.

dmoisset commented 8 years ago

Checking for a python version is not too hard, I submitted a PR that does that