Ask Your Question

Louis Brooks's profile - activity

2013-10-18 01:00:29 -0500 received badge  Teacher (source)
2013-10-16 14:30:14 -0500 received badge  Editor (source)
2013-10-16 14:27:43 -0500 answered a question Installation of devstack on RHEL

Hi Ninad, Not sure if you have solved this yet or not but I had the same problem.

I replaced:

SITE_DIRS=$(python -c "import site; import os; print os.linesep.join(site.getsitepackages())")


SITE_DIRS=$(python -c "import sys; import site; import os; print (hasattr(site, 'getsitepackages') and os.linesep.join(site.getsitepackages()) or os.linesep.join(sys.path))")

in tools/ and got the:

 + sudo chmod +r '/usr/lib/python2.6/site-packages/prettytable-0.7.2*/*' chmod: cannot access `/usr/lib/python2.6/site-packages/prettytable-0.7.2*/*':


All I done to resolve this error was to go to /usr/lib/python2.6/site-packages and find the directory of the prettytable package my python implementation was using (in my case prettytable-0.6.1) and replace the following code in tools/

if [[ -r $dir/ ]]; then
        sudo chmod +r $dir/prettytable-0.7.2*/*


if [[ -r $dir/ ]]; then
    sudo chmod +r $dir/prettytable-0.6.1*/*

Obviously this isn't a fix but it was all I needed to do to get a running OpenStack implementation. I would say you are probably right with regards to Python being at an older verion being the issue...