I built the mod_wsgi.so on Windows XP/SP3.

>From 
>http://social.msdn.microsoft.com/Forums/en-US/clr/thread/801ebca2-71e6-4563-aba5-e098a4e40229/
:

"I did a little more checking and found that the DLLs that are calling
into DWMAPI are all (so far) XPSP2 DLLs so clearly this entry point
was defined as SP2 or as a result of a patch to SP2."

Peter

On Jan 26, 7:18 pm, Jon Prater <[email protected]> wrote:
> DependencyWalkter found something rather interesting.  Initially, it
> couldn't locate any of the Apache DLLs (libapr-1, libaprutil-1).  It
> also couldn't pick up something call dwmapi.dll.  I resolved the
> apache dlls by adding their directory (<apachepath>\bin) to my PATH.
> According to the report, it's a dependency of IEFrame.dll, and it
> doesn't exist anywhere on my computer.  A Google search indicates that
> dwmapi.dll is a Vista library.  Did you perchance build this on a
> Vista machine?
>
> On Jan 26, 8:17 am, Peter <[email protected]> wrote:
>
> > Jon,
>
> > Here's something else you can try.  Install depends.exe 
> > fromhttp://www.dependencywalker.com/andFile/Open _socket.pyd from your
> > python26/DLLs directory.  If you get "MSVCR90.DLL Error opening file.
> > The system cannot find the file specified (2).", try installing the VC+
> > + 2008 run time libraries per my previous post.
>
> > Peter
>
> > On Jan 25, 6:26 pm, Jon Prater <[email protected]> wrote:
>
> > > Thank you for this, Peter, it loads perfectly! :D
> > > For background, I'm running Apache 2.2.11 on Windows XP SP3.
> > > I'm trying to load a Django site through mod_wsgi, and when I go to
> > > the url I've set for it, I get 500 Internal Server Error, and this is
> > > put in my Apache error log:
>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1] mod_wsgi
> > > (pid=3216): Target WSGI script 'C:/djangoproj/apache/django.wsgi'
> > > cannot be loaded as Python module.
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1] mod_wsgi
> > > (pid=3216): Exception occurred processing WSGI script 'C:/djangoproj/
> > > apache/django.wsgi'.
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1] Traceback (most
> > > recent call last):
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]   File "C:/
> > > djangoproj/apache/django.wsgi", line 11, in <module>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]     import
> > > django.core.handlers.wsgi
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]   File "c:\
> > > \python26\\lib\\site-packages\\django-1.0.2_final-py2.6.egg\\django\
> > > \core\\handlers\\wsgi.py", line 8, in <module>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]     from django
> > > import http
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]   File "c:\
> > > \python26\\lib\\site-packages\\django-1.0.2_final-py2.6.egg\\django\
> > > \http\\__init__.py", line 5, in <module>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]     from urllib
> > > import urlencode
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]   File "C:\
> > > \Python26\\Lib\\urllib.py", line 26, in <module>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]     import
> > > socket
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]   File "C:\
> > > \Python26\\Lib\\socket.py", line 46, in <module>
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1]     import
> > > _socket
> > > [Sun Jan 25 18:17:03 2009] [error] [client 127.0.0.1] ImportError: DLL
> > > load failed: The specified module could not be found.
>
> > > At the time of load, my python path looks like this:
>
> > > ['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', 'C:\\\
> > > \djangoproj']
>
> > > My python install path is c:\python26, my Django source is installed
> > > in its default site-packages location, and my Django project is a
> > > subfolder of c:\djangoproj.  I've followed all the steps on the
> > > IntegrationWithDjango page, as well 
> > > ashttp://code.djangoproject.com/wiki/django_apache_and_mod_wsgi.
> > > Any help you can give would be welcome.
>
> > > On Jan 25, 12:10 pm, Peter <[email protected]> wrote:
>
> > > > Attached is my first cut at a windows build script for mod_wsgi 2.x,
> > > > python 2.6.1, and apache 2.2.11.  The script consists of one bat and two
> > > > rsp files.  I've also included the mod_wsgi.so and build output.txt in
> > > > the attached zip.  I've only tested mod_wsgi.so with a couple of small
> > > > wsgi scripts.  Please read the comments in build.bat before using.
>
> > > > Feedback is welcomed.
>
> > > > Peter Santoro
>
> > > >  win32wsgi.zip
> > > > 40KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to