joaquin
unread,Jun 28, 2009, 1:39:39 PM6/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
Hello,
I have started to use WSGI migrating from mod-python, using Python
2.6.1
First example using basic WSGI Hello World! application function,
works well.
But when I have tried to do the same with Django, I have the following
messages in Apache error.log usign Windows Vista :
[Sun Jun 28 19:25:40 2009] [info] [client 192.168.0.4] mod_wsgi
(pid=19668, process='', application='vista2|'): Loading WSGI script
'C:/Usr/www/sisprog/apache/django.wsgi'.
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] mod_wsgi
(pid=19668): Target WSGI script 'C:/Usr/www/sisprog/apache/
django.wsgi' cannot be loaded as Python module.
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] mod_wsgi
(pid=19668): Exception occurred processing WSGI script 'C:/Usr/www/
sisprog/apache/django.wsgi'.
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] Traceback
(most recent call last):
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] File "C:/Usr/
www/sisprog/apache/django.wsgi", line 9, in <module>
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] import
django.core.handlers.wsgi
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] File "C:\
\Desarrollo\\Python26\\lib\\site-packages\\django\\core\\handlers\
\wsgi.py", line 8, in <module>
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] from
django import http
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] File "C:\
\Desarrollo\\Python26\\lib\\site-packages\\django\\http\\__init__.py",
line 5, in <module>
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] from
urllib import urlencode
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] File "C:\
\Desarrollo\\Python26\\lib\\urllib.py", line 26, in <module>
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] import
socket
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] File "C:\
\Desarrollo\\Python26\\lib\\socket.py", line 46, in <module>
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] import
_socket
[Sun Jun 28 19:25:40 2009] [error] [client 192.168.0.4] ImportError:
DLL load failed: No se puede encontrar el m\xf3dulo especificado.
Could you help me, on why import _socket cannot be loaded, please.
Regards
Joaquin