using WSGI, module _socket cannot be loaded

13 views
Skip to first unread message

joaquin

unread,
Jun 28, 2009, 1:39:39 PM6/28/09
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

Karen Tracey

unread,
Jun 28, 2009, 2:11:28 PM6/28/09
to django-d...@googlegroups.com
This list is for discussing the development of Django itself.  Please ask questions about using Django on django-users.

Karen
Reply all
Reply to author
Forward
0 new messages