Description
The setup.py script uses the pip commands req and download that since pip version 10.0 have been moved to the _internale api of pip. As a consequence, the install script breaks.
Output
Traceback (most recent call last):
File "setup.py", line 24, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
To reproduce
Run python setup.py develop with pip >= 10.0
Temporary workaround
The combination of
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
and
try: # for pip >= 10
install_reqs = parse_requirements('./requirements.txt', session=pip.internal_.download.PipSession())
except ImportError: # for pip <= 9.0.3
install_reqs = parse_requirements('./requirements.txt', session=pip.download.PipSession())
are a non recommended way to make the setup script work for now. The recommended way is documented here and here.
Package dependencies
Labutils requires tidyextractors which suffers from the same problem. Lastly, tidyextractors depends on tweepy which fails to install with python >= 3.7.0. A workaround for that exists.
Tasks
Description
The
setup.pyscript uses the pip commandsreqanddownloadthat since pip version 10.0 have been moved to the_internale api of pip. As a consequence, the install script breaks.Output
To reproduce
Run
python setup.py developwith pip >= 10.0Temporary workaround
The combination of
and
are a non recommended way to make the setup script work for now. The recommended way is documented here and here.
Package dependencies
Labutils requires tidyextractors which suffers from the same problem. Lastly, tidyextractors depends on tweepy which fails to install with python >= 3.7.0. A workaround for that exists.
Tasks
setup.pyfor use with pip 10.0setup.pyfor use with pip 10.0README.rst