Attaching debdiff for xenial

** Patch added: "lp1626258_xenial.debdiff"

** Description changed:

  pip 8.1.1 (xenial) tries to access properties that were dropped from the
  Requirement class and when pip's code tries to access
  Requirement.project_name fails, this was fixed in 8.1.2.
  Any user trying to install a package that triggers the
  pkg_resources.VersionConflict exception during will get the error
  "AttributeError: 'Requirement' object has no attribute 'project_name'"
  [Test Case]
  # wget
  # wget
  # pip install requests-2.10.0.tar.gz
  # pip install requests-2.11.1.tar.gz
  Expected result:
  pip installs requests 2.11.1
  Actual result:
  pip fails with the following exception
- root@pip-x:/home/ubuntu# pip install requests-2.11.1.tar.gz 
+ root@pip-x:/home/ubuntu# pip install requests-2.11.1.tar.gz
  Processing ./requests-2.11.1.tar.gz
  Traceback (most recent call last):
-   File "/usr/lib/python2.7/dist-packages/pip/", line 209, in 
-     status =, args)
-   File "/usr/lib/python2.7/dist-packages/pip/commands/", line 328, 
in run
-   File "/usr/lib/python2.7/dist-packages/pip/", line 748, in build
-     self.requirement_set.prepare_files(self.finder)
-   File "/usr/lib/python2.7/dist-packages/pip/req/", line 360, in 
-     ignore_dependencies=self.ignore_dependencies))
-   File "/usr/lib/python2.7/dist-packages/pip/req/", line 600, in 
-     req_to_install.check_if_exists()
-   File "/usr/lib/python2.7/dist-packages/pip/req/", line 1011, 
in check_if_exists
-     self.req.project_name
+   File "/usr/lib/python2.7/dist-packages/pip/", line 209, in 
+     status =, args)
+   File "/usr/lib/python2.7/dist-packages/pip/commands/", line 328, 
in run
+   File "/usr/lib/python2.7/dist-packages/pip/", line 748, in build
+     self.requirement_set.prepare_files(self.finder)
+   File "/usr/lib/python2.7/dist-packages/pip/req/", line 360, in 
+     ignore_dependencies=self.ignore_dependencies))
+   File "/usr/lib/python2.7/dist-packages/pip/req/", line 600, in 
+     req_to_install.check_if_exists()
+   File "/usr/lib/python2.7/dist-packages/pip/req/", line 1011, 
in check_if_exists
+     self.req.project_name
  AttributeError: 'Requirement' object has no attribute 'project_name'
  You are using pip version 8.1.1, however version 8.1.2 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  [Regression Potential]
- * Low. Users consuming pip private API may see a difference in the
- behavior, but this is a private api and upstream already discourages its
- use. And this change is already part of 8.1.2
+ * None, this change is already part of 8.1.2, and most of the change is
+ already part of the ubuntu package, there is just one last place where
+ the code is accessing Requirement.project_name
  [Other info]
  From 8e236dd6a09bd2f70f9d4fc886da8c354d4c58f2 Mon Sep 17 00:00:00 2001
  From: Donald Stufft <>
  Date: Wed, 11 Nov 2015 18:51:46 -0500
  Subject: [PATCH] Update to use the Requirement class from packaging

** Summary changed:

- AttributeError: 'Requirement' object has no attribute 'project_name'
+ [SRU] AttributeError: 'Requirement' object has no attribute 'project_name'

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  [SRU] AttributeError: 'Requirement' object has no attribute

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to