← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1586381] Re: Pip states report "AttributeError: 'Requirement' object has no attribute 'project_name'" since python-pip (8.1.1-2ubuntu0.1)

 

The fix is part of upstream release 2015.8.9 and 2016.11. Therefore it
is fixed in Ubuntu 17.10 (artful) and later.

** Also affects: python-pip (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: salt (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: salt (Ubuntu Xenial)
       Status: New => Confirmed

** Changed in: salt (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1586381

Title:
  Pip states report "AttributeError: 'Requirement' object has no
  attribute 'project_name'" since python-pip (8.1.1-2ubuntu0.1)

Status in One Hundred Papercuts:
  Confirmed
Status in python-pip package in Ubuntu:
  Confirmed
Status in salt package in Ubuntu:
  Fix Released
Status in python-pip source package in Xenial:
  New
Status in salt source package in Xenial:
  Confirmed

Bug description:
  Pip changed an internal API, which was then cherry-picked into python-
  pip (8.1.1-2ubuntu0.1).  Salt relies on this API for the 'pip' states,
  which now report:

  [ERROR   ] An exception occurred in this state: Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1626, in call
      **cdata['kwargs'])
    File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1492, in wrapper
      return f(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/salt/states/pip_state.py", line 592, in installed
      out = _check_pkg_version_format(pkg)
    File "/usr/lib/python2.7/dist-packages/salt/states/pip_state.py", line 176, in _check_pkg_version_format
      ret['prefix'] = install_req.req.project_name
  AttributeError: 'Requirement' object has no attribute 'project_name'

  This has been reported (and patched) upstream:
  https://github.com/saltstack/salt/pull/33180

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: salt-minion 2015.8.8+ds-1
  ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Fri May 27 13:46:42 2016
  JournalErrors:
   Hint: You are currently not seeing messages from other users and the system.
         Users in groups 'adm', 'systemd-journal' can see all messages.
         Pass -q to turn off this notice.
   -- No entries --
  PackageArchitecture: all
  SourcePackage: salt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1586381/+subscriptions