No module pbr.version after installing fuelclient with recent setuptools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Won't Fix
|
High
|
Roman Prykhodchenko |
Bug Description
Steps to reproduce:
- clone fuelclient from github
- go to python-fuelclient dir
- install fuelclient in clean virtual environemnt created with some recent "virtualenv" (12.0.7) and having one of the newer setuptools (<12.0)
- after installation try to run any command, like "fuel --help"
Error:
Traceback (most recent call last):
File "/home/
from fuelclient.
File "/home/
from fuelclient.
File "/home/
from fuelclient.
File "/home/
from fuelclient.
File "/home/
from fuelclient.cli import error
File "/home/
from keystoneclient.
File "/home/
import pbr.version
ImportError: No module named pbr.version
This problem exists because during installation pbr is present (it's in "setup_requires" of python-fuelclient) and keystoneclient requires pbr as a runtime dependency (install_
Workarounds:
- install fuelcient with "pip install ."
- use older version of setuptools (3.6 confimed working)
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg) |
Changed in fuel: | |
status: | New → Confirmed |
After a quick chat with the maintainer of pbr I lerned that installing packages using python setup.py install is not supported.
This problem indeed does not occur, if pip is used. The question now is whether it's reasonable to use pip or refuse to use pbr and all sweet features it brings.