[Python-modules-team] Bug#914387: python3-pip: cannot import name 'main' from 'pip'

Alexander William Wong alex at udia.ca
Thu Nov 22 20:53:24 GMT 2018


Package: python3-pip
Version: 9.0.1-2.3
Severity: important


Dear Maintainer,

I upgraded python3-pip and python3 today.

Running pip3, I see that the wrapper script is broken.
The wrapper script should import from main.__internal__ instead of main.

The paths for pip3 and python3 -m pip --version are the same.

=====
$ pip3
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main' from 'pip' (/home/alexander/.local/lib/python3.7/site-packages/pip/__init__.py)

$ python3 -m pip --version
pip 18.1 from /home/alexander/.local/lib/python3.7/site-packages/pip (python 3.7)
=====


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-pip depends on:
ii  ca-certificates    20180409
ii  python-pip-whl     9.0.1-2.3
ii  python3            3.7.1-2
ii  python3-distutils  3.7.1-1

Versions of packages python3-pip recommends:
ii  build-essential     12.5
ii  python3-dev         3.7.1-2
ii  python3-setuptools  40.5.0-1
ii  python3-wheel       0.30.0-0.2

python3-pip suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list