Install fail during rally-manage

Asked by Anthony SIMONET

When I try to install Rally on Debian Wheezy (as root), I get an error near the end, when rally-manage runs.
Here is the interesting bit from my output:

#bash install_rally.sh -s

Successfully installed Babel-2.1.1 Mako-1.0.2 PrettyTable-0.7.2 Pygments-2.0.2 SQLAlchemy-1.0.9 Tempita-0.5.2 alembic-0.8.3 anyjson-0.3.3 appdirs-1.4.0 boto-2.38.0 cliff-1.15.0 cmd2-0.6.8 debtcollector-0.10.0 decorator-4.0.4 docutils-0.12 dogpile.cache-0.5.7 dogpile.core-0.4.1 ecdsa-0.13 extras-0.0.3 fixtures-1.4.0 functools32-3.2.3-2 futures-3.0.3 httplib2-0.9.2 iso8601-0.1.10 jsonpatch-1.11 jsonpointer-1.9 jsonschema-2.5.1 keystoneauth1-1.2.0 linecache2-1.0.0 lxml-3.4.4 monotonic-0.4 msgpack-python-0.4.6 netaddr-0.7.18 netifaces-0.10.4 ordereddict-1.1 os-client-config-1.9.0 oslo.config-2.6.0 oslo.context-0.8.0 oslo.db-3.1.0 oslo.i18n-2.7.0 oslo.log-1.13.0 oslo.serialization-1.11.0 oslo.utils-2.7.0 paramiko-1.15.3 pyinotify-0.9.6 pyparsing-2.0.3 python-ceilometerclient-1.5.0 python-cinderclient-1.4.0 python-designateclient-1.5.0 python-editor-0.4 python-glanceclient-1.1.0 python-heatclient-0.8.0 python-ironicclient-0.9.0 python-keystoneclient-1.8.1 python-manilaclient-1.5.0 python-mimeparse-0.1.4 python-neutronclient-3.1.0 python-novaclient-2.32.0 python-openstackclient-1.8.0 python-saharaclient-0.11.1 python-subunit-1.1.0 python-swiftclient-2.6.0 python-troveclient-1.3.0 python-zaqarclient-0.2.0 rally-0.1.2.dev80 requests-2.8.1 simplejson-3.8.0 six-1.10.0 sphinx-1.2.3 sqlalchemy-migrate-0.10.0 sqlparse-0.1.16 stevedore-1.9.0 testtools-1.8.0 traceback2-1.4.0 unicodecsv-0.14.1 unittest2-1.1.0 warlock-1.2.0 wrapt-1.10.5
Traceback (most recent call last):
  File "/usr/local/bin/rally-manage", line 6, in <module>
    from rally.cli.manage import main
  File "/usr/local/lib/python2.7/dist-packages/rally/cli/manage.py", line 22, in <module>
    from rally.cli import cliutils
  File "/usr/local/lib/python2.7/dist-packages/rally/cli/cliutils.py", line 33, in <module>
    from rally.common import log as logging
  File "/usr/local/lib/python2.7/dist-packages/rally/common/log.py", line 19, in <module>
    from oslo_log import handlers
  File "/usr/local/lib/python2.7/dist-packages/oslo_log/handlers.py", line 23, in <module>
    from debtcollector import removals
  File "/usr/local/lib/python2.7/dist-packages/debtcollector/__init__.py", line 20, in <module>
    'debtcollector').version_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 457, in version_string
    return self.semantic_version().brief_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 452, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/usr/local/lib/python2.7/dist-packages/pbr/packaging.py", line 668, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

It might not be directly related to Rally but I haven't found any relevant information regarding this problem.
Any idea how to fix this?

Question information

Language:
English Edit question
Status:
Answered
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Oleh Anufriiev (oanufriev) said :
#1

Hi, Anthony.

I've installed fresh Debian 7.9 on KVM VM to reproduce this issue.

Rally was successfully installed.

Additional info:

# cat /etc/debian_version
7.9

# uname -a
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u5 x86_64 GNU/Linux

# date
Thu Oct 22 15:47:45 EDT 2015

# uptime
 15:39:19 up 4:02, 2 users, load average: 0.00, 0.04, 0.12

# python --version
Python 2.7.3

# git branch
* master

# ./install_rally.sh -s

==============================
Installation of Rally is done!
==============================

Rally is now installed in your system. Information about your Rally
installation:

  * Method: system
  * Database at: /var/lib/rally/database
  * Configuration file at: /etc/rally
  * Samples at: /usr/share/rally/samples

# pip freeze
alembic==0.8.3
anyjson==0.3.3
appdirs==1.4.0
Babel==2.1.1
boto==2.38.0
chardet==2.0.1
cliff==1.15.0
cmd2==0.6.8
debtcollector==0.10.0
decorator==4.0.4
docutils==0.12
dogpile.cache==0.5.7
dogpile.core==0.4.1
ecdsa==0.13
extras==0.0.3
fixtures==1.4.0
fpconst==0.7.2
functools32==3.2.3.post2
futures==3.0.3
httplib2==0.9.2
iso8601==0.1.10
Jinja2==2.8
jsonpatch==1.11
jsonpointer==1.9
jsonschema==2.5.1
keystoneauth1==1.2.0
linecache2==1.0.0
lxml==3.4.4
Mako==1.0.2
MarkupSafe==0.23
monotonic==0.4
msgpack-python==0.4.6
netaddr==0.7.18
netifaces==0.10.4
ordereddict==1.1
os-client-config==1.9.0
oslo.config==2.6.0
oslo.context==0.8.0
oslo.db==3.1.0
oslo.i18n==2.7.0
oslo.log==1.13.0
oslo.serialization==1.11.0
oslo.utils==2.7.0
paramiko==1.15.3
pbr==1.8.1
prettytable==0.7.2
py==1.4.30
pycrypto==2.6.1
Pygments==2.0.2
pyinotify==0.9.6
pyparsing==2.0.3
python-apt==0.8.8.2
python-ceilometerclient==1.5.0
python-cinderclient==1.4.0
python-debian==0.1.21
python-debianbts==1.11
python-designateclient==1.5.0
python-editor==0.4
python-glanceclient==1.1.0
python-heatclient==0.8.0
python-ironicclient==0.9.0
python-keystoneclient==1.8.1
python-manilaclient==1.5.0
python-mimeparse==0.1.4
python-neutronclient==3.1.0
python-novaclient==2.32.0
python-openstackclient==1.8.0
python-saharaclient==0.11.1
python-subunit==1.1.0
python-swiftclient==2.6.0
python-troveclient==1.3.0
python-zaqarclient==0.2.0
pytz==2015.6
PyYAML==3.11
rally==0.1.2.dev90
reportbug==6.4.4
requests==2.8.1
simplejson==3.8.0
six==1.10.0
SOAPpy==0.12.0
Sphinx==1.2.3
SQLAlchemy==1.0.9
sqlalchemy-migrate==0.10.0
sqlparse==0.1.16
stevedore==1.9.0
Tempita==0.5.2
testtools==1.8.0
tox==1.6.1
traceback2==1.4.0
unicodecsv==0.14.1
unittest2==1.1.0
virtualenv==13.1.2
warlock==1.2.0
wrapt==1.10.5

About "Any idea how to fix this?".. May be updating python and pbr will help you. I haven't find any cause with info you provided.

    apt-get install --upgrade python
    pip install -U pbr

Can you help with this problem?

Provide an answer of your own, or ask Anthony SIMONET for more information if necessary.

To post a message you must log in.