Public bug reported:

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)

** Affects: salt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
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)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to