Ask Your Question

Revision history [back]

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())")

with:

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/fixup_stuff.sh 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*/*':

error.

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/fixup_stuff.sh:

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

with:

if [[ -r $dir/prettytable.py ]]; 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 the wrong version...

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())")

with:

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/fixup_stuff.sh 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*/*':

error.

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/fixup_stuff.sh:

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

with:

if [[ -r $dir/prettytable.py ]]; 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 the wrong version...

an older verion being the issue...