PBR

Ubuntu 12.04.5 LTS install error

Bug #1574554 reported by superpanpan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
PBR
Incomplete
Undecided
Unassigned

Bug Description

sudo pip install wal-e
...
Downloading/unpacking debtcollector>=1.2.0 (from python-keystoneclient>=0.4.2->wal-e)
  Running setup.py egg_info for package debtcollector
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "/home/qguan/build/debtcollector/pbr-1.9.1-py2.7.egg/pbr/core.py", line 111, in pbr
        attrs = util.cfg_to_args(path, dist.script_args)
      File "/home/qguan/build/debtcollector/pbr-1.9.1-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
        kwargs = setup_cfg_to_setup_kwargs(config, script_args)
      File "/home/qguan/build/debtcollector/pbr-1.9.1-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
        if pkg_resources.evaluate_marker('(%s)' % env_marker):
    AttributeError: 'module' object has no attribute 'evaluate_marker'
    error in setup command: Error parsing /home/qguan/build/debtcollector/setup.cfg: AttributeError: 'module' object has no attribute 'evaluate_marker'
    Complete output from command python setup.py egg_info:
    ERROR:root:Error parsing

we run pip install debtcollector separately, it reports the same issue, here is our OS version
cat /etc/issue
Ubuntu 12.04.5 LTS \n \l

Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

No sure this is a bug for debtcollector bug , check your pkg_resource has attribute evaluate_marker.

Changed in debtcollector:
status: New → Incomplete
Revision history for this message
Max Cameron (l6unchpad) wrote :

+1

Revision history for this message
Max Cameron (l6unchpad) wrote :

I'm seeing the same thing. Looks like debtcollector to me.

pip install debtcollector
Downloading/unpacking debtcollector
  Running setup.py egg_info for package debtcollector
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
        attrs = util.cfg_to_args(path, dist.script_args)
      File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
        kwargs = setup_cfg_to_setup_kwargs(config, script_args)
      File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
        if pkg_resources.evaluate_marker('(%s)' % env_marker):
    AttributeError: 'module' object has no attribute 'evaluate_marker'
    error in setup command: Error parsing /vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/setup.cfg: AttributeError: 'module' object has no attribute 'evaluate_marker'
    Complete output from command python setup.py egg_info:
    ERROR:root:Error parsing

Traceback (most recent call last):

  File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr

    attrs = util.cfg_to_args(path, dist.script_args)

  File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args

    kwargs = setup_cfg_to_setup_kwargs(config, script_args)

  File "/vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs

    if pkg_resources.evaluate_marker('(%s)' % env_marker):

AttributeError: 'module' object has no attribute 'evaluate_marker'

error in setup command: Error parsing /vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector/setup.cfg: AttributeError: 'module' object has no attribute 'evaluate_marker'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /vagrant/debian/arbiter/usr/share/python/arbiter/build/debtcollector
Storing complete log in /home/vagrant/.pip/pip.log

Revision history for this message
Max Cameron (l6unchpad) wrote :

Possibly more like a PBR issue.

affects: debtcollector → pbr
Revision history for this message
Max Cameron (l6unchpad) wrote :

Solution for me was to upgrade setuptools. See:
http://docs.openstack.org/developer/pbr/compatibility.html#evaluate-marker

"evaluate_markers may run into issues with the ‘>’, ‘>=’, ‘<’, and ‘<=’ operators if the installed version of setuptools is less than 17.1. Projects using these operators with markers should specify a minimum version of 17.1 for setuptools."

I don't see any aforementioned operators in https://github.com/openstack/debtcollector/blob/master/setup.cfg so leaving this as a bug in pbr.

Revision history for this message
Robert Collins (lifeless) wrote :

@max - https://github.com/openstack/debtcollector/blob/master/requirements.txt has those markers. Openstack needs to start issuing a minimum version of setuptools as a setup_requires; this is not a pbr responsibility IMO.

Revision history for this message
Stephen Finucane (stephenfinucane) wrote :

Ubuntu 12.04 is no longer support for general customers [1]. I think this is safe to close now.

[1] https://www.ubuntu.com/info/release-end-of-life

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.