This isn't going to be Django issue, so if you do have any useful information, perhaps post any followups to one of the discussions on mod_wsgi Google Group going on about Python 2.6 and mod_wsgi. This message has also been posted there.
http://groups.google.com/group/modwsgi/browse_frm/thread/6ec28d57a0c184e0?hl=en Graham On Jan 26, 10:39 am, Jonathan Prater <jonathan.pra...@gmail.com> wrote: > Hopefully, someone here can help me with this issue. I've got a > mod_wsgi.so compiled against Python 2.6.1 and Apache 2.2.11 for use on > Windows. It loads perfectly well (no errors during Apache startup), and > I've followed the steps given on the Django website and the mod_wsgi > site for getting a Django app working within mod_wsgi. When I first go > to the Django app's url, I get a 500 Internal Server error, and the > following shows in my Apache error log: > > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] mod_wsgi > (pid=3896): Exception occurred processing WSGI script > 'C:/djangoproj/django.wsgi'. > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] Traceback (most > recent call last): > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] File > "C:/djangoproj/django.wsgi", line 11, in <module> > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] import > django.core.handlers.wsgi > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] File > "c:\\python26\\lib\\site-packages\\django-1.0.2_final-py2.6.egg\\django\\co > re\\handlers\\wsgi.py", > line 8, in <module> > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] from django > import http > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] File > "c:\\python26\\lib\\site-packages\\django-1.0.2_final-py2.6.egg\\django\\ht > tp\\__init__.py", > line 5, in <module> > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] from urllib > import urlencode > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] File > "C:\\Python26\\Lib\\urllib.py", line 26, in <module> > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] import socket > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] File > "C:\\Python26\\Lib\\socket.py", line 46, in <module> > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] import _socket > [Sun Jan 25 18:29:31 2009] [error] [client 127.0.0.1] ImportError: DLL > load failed: The specified module could not be found. > > My Python path is as follows: > > ['C:\\\\Python26\\\\lib\\\\site-packages\\\\setuptools-0.6c9-py2.6.egg', > 'C:\\\\Python26\\\\lib\\\\site-packages\\\\django-1.0.2_final-py2.6.egg', > 'C:\\\\WINDOWS\\\\system32\\\\python26.zip', 'C:\\\\Python26\\\\Lib', > 'C:\\\\Python26\\\\DLLs', 'C:\\\\Python26\\\\Lib\\\\lib-tk', > 'C:\\\\Program Files\\\\Apache Software Foundation\\\\Apache2.2', > 'C:\\\\Program Files\\\\Apache Software Foundation\\\\Apache2.2\\\\bin', > 'C:\\\\Python26', 'C:\\\\Python26\\\\lib\\\\site-packages', > 'C:\\\\Python26\\\\lib\\\\site-packages\\\\mod_python', > 'C:\\\\Python26\\\\lib\\\\site-packages\\\\win32', > 'C:\\\\Python26\\\\lib\\\\site-packages\\\\win32\\\\lib', > 'C:\\\\Python26\\\\lib\\\\site-packages\\\\Pythonwin', 'C:\\\\djangoproj'] > > I can see _socket.pyd in c:\Python26\DLLs, so why won't it load? Help, > please? > > Jon P --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---