On Sat, Dec 4, 2010 at 9:11 PM, Graham Dumpleton <[email protected]> wrote: >> [Sat Dec 04 15:58:01 2010] [error] [client 127.0.1.1] ImportError: / >> usr/local/lib/python2.6/lib-dynload/_ctypes.so: undefined symbol: >> PyUnicodeUCS2_FromEncoded >> >> I'm running ubuntu 10.0.4 LTS, I installed the stock apache2:
> Not known to be an issue with mod_wsgi. > > Instead, it has always been an issue with mod_wsgi being compiled > against, using different Python library, than the virtual environment > that mod_wsgi is being pointed at by WSGIPythonHome directive. Since you're getting an undefined symbol error, Graham is most certainly right ... you've got two versions of Python mixed up. Do note however, that there *could* be other problems with the ctypes module. I'm not familiar with Ubuntu in particular, but if you're using the SELinux security features of the kernel then you could also get a crash because of security violations (as Python's ctypes.so wants to create and then execute files under /tmp, which most SELinux profiles will not allow web servers to do). So once you get past the undefined symbol error, and if you're still crashing when importing ctypes, go re-read the past discussion from back around the beginning of October.... <http://groups.google.com/group/modwsgi/browse_thread/thread/1766eb9947f971b0/8d77ac480e226af5> If you discover anything different between Ubuntu and the Red Hat based systems, let us all know. -- Deron Meranda http://deron.meranda.us/ -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
