[Python-Dev] Missing Python Symbols when Starting Python App (Apache/Django/Mod_Wsgi) (original) (raw)
Anurag Chourasia anurag.chourasia at gmail.com
Mon Nov 22 23:46:16 CET 2010
- Previous message: [Python-Dev] Solaris family and 64 bits compiling
- Next message: [Python-Dev] Missing Python Symbols when Starting Python App (Apache/Django/Mod_Wsgi)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
All,
I have a problem in starting my Python(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
[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
[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
[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
[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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20101123/1a1d445f/attachment.html>
- Previous message: [Python-Dev] Solaris family and 64 bits compiling
- Next message: [Python-Dev] Missing Python Symbols when Starting Python App (Apache/Django/Mod_Wsgi)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]