I have a development server for my Django application running Cent OS 6. I'm serving the application using Apache and mod_wsgi. I read a lot about the default Python that comes with Cent and so I installed an alternate Python 2.7.6 from source and compiled it with --enable-shared. I also installed mod_wsgi from source and pointed it to the new Python installation.
However, every time I try to run the app, I keep getting the following error from lxml:
..lib/python2.7/site-packages/lxml/objectify.so: undefined symbol: PyUnicodeUCS2_Format
Another notable thing in the error is that the Python executable being used is not the desired one:
Python Executable: /usr/bin/python
instead of /home/jenkins/local/bin/python
I've been looking for this for hours to no avail.
How can I solve this?? Thanks in advance.