← 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)

 

Ubuntu 16.04 (xenial) reached end-of-life on April 29, 2021.

Further to comment #16 this issue was fixed but probably not in all
releases. Closing.

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

** Changed in: hundredpapercuts
       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:
  Fix Released
Status in salt package in Ubuntu:
  Fix Released
Status in salt source package in Xenial:
  Invalid

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