Python code or modules that require ctypes
can raise the following cryptic exception when run under mod_wsgi
.
mod_wsgi (pid=4203): Exception occurred processing WSGI script 'xxx.wsgi'.
Traceback (most recent call last):
File "xxx.wsgi", line 8, in simple_app
import ctypes
File "/usr/lib64/python2.6/ctypes/__init__.py", line 546, in <module>
CFUNCTYPE(c_int)(lambda: None)
MemoryError