Have a read of:

  http://code.google.com/p/modwsgi/wiki/InstallationIssues

It is likely that you have a conflicting mod_python module installed
or that mod_wsgi is no finding the correct Python installation shared
library at run time.

Graham

On Nov 22, 11:58 pm, Guddu <anurag.choura...@gmail.com> wrote:
> All,
>
> I have a problem in starting my Django App using Apache and Mod_Wsgi
>
> I am using Django 1.2.3 and Python 2.6.6 running on Apache 2.2.17 with
> Mod_Wsgi 3.3
>
> When I try to access the app from Web Browser, I am getting these
> errors.
>
> [Mon Nov 22 09:45:25 2010] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3
> Python/2.6.6 configured -- resuming normal operations
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] mod_wsgi
> (pid=1273874): Target WSGI script '/u01/home/apli/wm/app/gdd/pyserver/
> apache/django.wsgi' cannot be loaded as Python module.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] mod_wsgi
> (pid=1273874): Exception occurred processing WSGI script '/u01/home/
> apli/wm/app/gdd/pyserver/apache/django.wsgi'.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] Traceback
> (most recent call last):
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/u01/
> home/apli/wm/app/gdd/pyserver/apache/django.wsgi", line 19, in
> <module>
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]     import
> django.core.handlers.wsgi
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
> local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line
> 1, in <module>
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]     from
> threading import Lock
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
> local/lib/python2.6/threading.py", line 13, in <module>
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]     from
> functools import wraps
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
> local/lib/python2.6/functools.py", line 10, in <module>
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]     from
> _functools import partial, reduce
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] ImportError:
> rtld: 0712-001 Symbol PyArg_UnpackTuple was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyCallable_Check was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyDict_Copy was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyDict_Merge was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyDict_New was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyErr_Occurred was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
> 0712-001 Symbol PyErr_SetString was referenced
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       from
> module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
> runtime definition
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]       of the
> symbol was not found.
>
> [Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] \t0509-021
> Additional errors occurred but are not reported.
>
> I assume that those missing runtime definitions are supposed to be in
> the Python executable. Doing an nm on the first missing symbol reveals
> that it does exist.
>
> root [zibal]% nm  /usr/local/bin/python | grep -i PyArg_UnpackTuple
> .PyArg_UnpackTuple   T   268683204         524
> PyArg_UnpackTuple    D   537073500
> PyArg_UnpackTuple    d   537073500          12
> PyArg_UnpackTuple:F-1 -         224
>
> Please guide.
>
> Regards,
> Guddu

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to