pip's configparser dependency breaks backports namespace conventions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
configparser (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This is specifically a problem with the debundling of the pip package, see https:/
Environment
pip version: python-pip (9.0.1-2.3)
Python version: Python 2.7.15+
OS: Ubuntu 18.10
Description
The python-pip package (at least on Ubuntu 18.10) depends on the python-configparser package, which dumps a blank __init__.py into the /usr/lib/
Expected behavior
pip should be able to install backports packages, which can then be imported without error.
How to Reproduce
After installing python-pip, run command pip install backports.
Then run from backports.
An error occurs.
Output
>>> from backports.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named shutil_which```
affects: | python-pip (Ubuntu) → configparser (Ubuntu) |
This just cost me four hours on Ubuntu 18.04.