setup.py install fails due to pbr git version error

Bug #1404746 reported by Alessandro Pilotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudbase-init
Fix Released
High
Alessandro Pilotti

Bug Description

python setup.py fails with the following error

    ERROR:root:Error parsing
2014-12-21 22:02:15.587 | Traceback (most recent call last):
2014-12-21 22:02:15.587 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/core.py", line 104, in pbr
2014-12-21 22:02:15.587 | attrs = util.cfg_to_args(path)
2014-12-21 22:02:15.587 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/util.py", line 238, in cfg_to_args
2014-12-21 22:02:15.587 | pbr.hooks.setup_hook(config)
2014-12-21 22:02:15.587 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 27, in setup_hook
2014-12-21 22:02:15.587 | metadata_config.run()
2014-12-21 22:02:15.587 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/hooks/base.py", line 29, in run
2014-12-21 22:02:15.588 | self.hook()
2014-12-21 22:02:15.588 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/hooks/metadata.py", line 28, in hook
2014-12-21 22:02:15.588 | self.config['name'], self.config.get('version', None))
2014-12-21 22:02:15.588 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/packaging.py", line 546, in get_version
2014-12-21 22:02:15.588 | version = _get_version_from_git(pre_version)
2014-12-21 22:02:15.588 | File "/home/jenkins/workspace/gate-cloudbase-init-pep8/.tox/pep8/local/lib/python2.7/site-packages/pbr/packaging.py", line 482, in _get_version_from_git
2014-12-21 22:02:15.588 | _get_revno_and_last_tag(git_dir)[0])
2014-12-21 22:02:15.588 | TypeError: 'int' object has no attribute '__getitem__'
2014-12-21 22:02:15.588 | error in setup command: Error parsing /home/jenkins/workspace/gate-cloudbase-init-pep8/setup.cfg: TypeError: 'int' object has no attribute '__getitem__'
2014-12-21 22:02:15.588 | Complete output from command python setup.py egg_info:
2014-12-21 22:02:15.588 | ERROR:root:Error parsing

http://logs.openstack.org/20/143320/1/check/gate-cloudbase-init-pep8/e7cf7b1/console.html

Changed in cloudbase-init:
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → High
assignee: nobody → Alessandro Pilotti (alexpilotti)
Changed in cloudbase-init:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cloudbase-init (master)

Reviewed: https://review.openstack.org/143324
Committed: https://git.openstack.org/cgit/stackforge/cloudbase-init/commit/?id=2195a972135721a52db087b252a5df15e78df0f2
Submitter: Jenkins
Branch: master

commit 2195a972135721a52db087b252a5df15e78df0f2
Author: Alessandro Pilotti <email address hidden>
Date: Sun Dec 21 23:08:25 2014 +0100

    Updates pbr requirements

    Removes the version from setup.cfg and moves
    Windows platdorm requirements to requirements-windows.txt

    Closes-Bug: #1404746

    Change-Id: Ieadc67e6c320e9712c57d6adf3f3e6df6ae78b75

Changed in cloudbase-init:
status: In Progress → Fix Committed
summary: - setup.py install fails dur to pbr git version error
+ setup.py install fails due to pbr git version error
Changed in cloudbase-init:
status: Fix Committed → Fix Released
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.