For some reason, pbr doesn't work properly

Bug #1239669 reported by Boris Pavlovic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Won't Fix
Undecided
Unassigned

Bug Description

----------------------
SOLVED
----------------------
bug is in pbr.

What you should make is install pbr firstly using pip:
pip install pbr
python setuyp.py install

----------------------
BUG DESCRIPTION
----------------------
How to repeat:

>> git clone https://github.com/stackforge/rally.git
>> cd rally
>> python setup.py install

>> openstack-rally-manage db recreate

Got next exception:
Traceback (most recent call last):
  File "/Users/boris/Documents/openstack/openstack/with_rally/bin/openstack-rally-manage", line 6, in <module>
    from rally.cmd.manage import main
  File "/Users/boris/Documents/openstack/openstack/rally/rally/cmd/manage.py", line 22, in <module>
    from rally.cmd import cliutils
  File "/Users/boris/Documents/openstack/openstack/rally/rally/cmd/cliutils.py", line 26, in <module>
    from rally import version
  File "/Users/boris/Documents/openstack/openstack/rally/rally/version.py", line 16, in <module>
    from pbr import version as pbr_version
ImportError: No module named pbr

Changed in rally:
importance: Undecided → High
description: updated
Changed in rally:
status: New → Invalid
importance: High → Medium
importance: Medium → Undecided
Revision history for this message
Satya Sanjibani Routray (satroutr) wrote :

Getting the same issue

(.venv)root@ubuntu:/home/satroutr/rally# openstack-rally-manage db create
Traceback (most recent call last):
  File "/home/satroutr/.venv/bin/openstack-rally-manage", line 6, in <module>
    from rally.cmd.manage import main
  File "/home/satroutr/.venv/local/lib/python2.7/site-packages/rally/cmd/manage.py", line 22, in <module>
    from rally.cmd import cliutils
  File "/home/satroutr/.venv/local/lib/python2.7/site-packages/rally/cmd/cliutils.py", line 27, in <module>
    from rally import version
  File "/home/satroutr/.venv/local/lib/python2.7/site-packages/rally/version.py", line 16, in <module>
    from pbr import version as pbr_version
ImportError: No module named pbr

Changed in rally:
status: Invalid → New
Revision history for this message
Boris Pavlovic (boris-42) wrote :

Satya,

to quick fix this you should run one more time

pip install pbr

Revision history for this message
Satya Sanjibani Routray (satroutr) wrote :

Thanks Boris,

After pip install it worked

Why dont we fix it in code... :)

Thanks
Satya

Revision history for this message
Boris Pavlovic (boris-42) wrote :

I don't know how to fix it in code =)

If you take a look requirments there is already pbr specified..

Revision history for this message
Satya Sanjibani Routray (satroutr) wrote :

is it possible to ensure package is installed

like

try:
import foo
except ImportError:
log(module not found)
print "FAIL!!!"
sys.exit(1)

Changed in rally:
status: New → Incomplete
importance: Undecided → High
description: updated
description: updated
Changed in rally:
status: Incomplete → Won't Fix
importance: High → Undecided
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.