Installation of devstack on RHEL
Hi.
I am trying to install devstack on RHEL 6. When I run stack.sh, it prints some line and ends after giving error. I think I have resolved all required dependancies. Here is the error log.
...
...
+ sudo rm -rf /tmp/pip-build.a4yNk
++ python -c 'import site; import os; print os.linesep.join(site.getsitepackages())'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getsitepackages'
+ SITE_DIRS=
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace
-bash-4.1$
Please help.
Thanks,
Ninad.
I think it's because RHEL6 uses Python version 2.6. The getsitepackages method is only available from Python version 2.7 and higher. The script that calls the method is devstack/tools/fixup_stuff.sh has some hacks for RHEL6, but this isn't one of them.
I came to know about it. I installed Python 2.7. But Still my red hat uses python 2.6. Even I copied & replaced site.py, site.pyc & site.pyo files from Python 2.7 to Python 2.6 files (& I didn't take backup of Python 2.6 files...). But it didn't work.