Public bug reported:

Installing the python3-pip package on 14.04LTS does not install all
required dependencies. python3-pyparsing is missing. Additionally, the
latest version of python3-pyparsing available in the 14.04LTS repos is
not compatible with the python3-pip version available. This means that
running update/upgrade on an LTS machine can result in not working pip3
in 2 different ways.

Installing and running python3-pip:

$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python3-colorama python3-distlib python3-requests python3-urllib3
  python3-wheel
The following NEW packages will be installed:
  python3-colorama python3-distlib python3-pip python3-requests
  python3-urllib3 python3-wheel
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/332 kB of archives.
After this operation, 1,724 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package python3-colorama.
(Reading database ... 253156 files and directories currently installed.)
Preparing to unpack .../python3-colorama_0.2.5-0.1ubuntu2_all.deb ...
Unpacking python3-colorama (0.2.5-0.1ubuntu2) ...
Selecting previously unselected package python3-distlib.
Preparing to unpack .../python3-distlib_0.1.8-1ubuntu1_all.deb ...
Unpacking python3-distlib (0.1.8-1ubuntu1) ...
Selecting previously unselected package python3-urllib3.
Preparing to unpack .../python3-urllib3_1.7.1-1ubuntu4_all.deb ...
Unpacking python3-urllib3 (1.7.1-1ubuntu4) ...
Selecting previously unselected package python3-requests.
Preparing to unpack .../python3-requests_2.2.1-1ubuntu0.3_all.deb ...
Unpacking python3-requests (2.2.1-1ubuntu0.3) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_1.5.4-1ubuntu4_all.deb ...
Unpacking python3-pip (1.5.4-1ubuntu4) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.24.0-1~ubuntu1_all.deb ...
Unpacking python3-wheel (0.24.0-1~ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up python3-colorama (0.2.5-0.1ubuntu2) ...
Setting up python3-distlib (0.1.8-1ubuntu1) ...
Setting up python3-urllib3 (1.7.1-1ubuntu4) ...
Setting up python3-requests (2.2.1-1ubuntu0.3) ...
Setting up python3-pip (1.5.4-1ubuntu4) ...
Setting up python3-wheel (0.24.0-1~ubuntu1) ...
$ pip3
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 
72, in <module>
    import packaging.requirements
  File "/usr/local/lib/python3.4/dist-packages/packaging/requirements.py", line 
9, in <module>
    from pyparsing import stringStart, stringEnd, originalTextFor, 
ParseException
ImportError: No module named 'pyparsing'
$

The next logical step, installing python3-pyparsing also does not result
in working pip3:

$ sudo apt-get install python3-pyparsing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python3-pyparsing
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.4 kB of archives.
After this operation, 198 kB of additional disk space will be used.
Get:1 http://pxe.dev.purestorage.com/ubuntu/ trusty/main python3-pyparsing all 
2.0.1+dfsg1-1build1 [34.4 kB]
Fetched 34.4 kB in 0s (123 kB/s)
Selecting previously unselected package python3-pyparsing.
(Reading database ... 253344 files and directories currently installed.)
Preparing to unpack .../python3-pyparsing_2.0.1+dfsg1-1build1_all.deb ...
Unpacking python3-pyparsing (2.0.1+dfsg1-1build1) ...
Setting up python3-pyparsing (2.0.1+dfsg1-1build1) ...
$ pip3
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 
72, in <module>
    import packaging.requirements
  File "/usr/local/lib/python3.4/dist-packages/packaging/requirements.py", line 
59, in <module>
    MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() missing 1 required positional argument: 'name'
$

This looks related to an upstream bug in pyparsing 2.0.1 (but fixed in
2.0.2) combined with new pip or setuptools that require pyparsing. There
is some discussion upstream at
https://github.com/pypa/packaging/issues/91 .

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1676675

Title:
  python3-pip package missing dependency for python3-pyparsing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1676675/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to