Hi,
I have the following in httpd.conf:

LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias /wsgi "C:/temp/wsgi_test.py"

<Directory "C:/temp">
AllowOverride None
Options None
Order deny,allow
Allow from all
</Directory>

Which with a wsgi_test.py like:

def application(environ, start_response):

    status = '200 OK'
    output = 'Hello World!'

    response_headers = [('Content-type', 'text/plain'), ('Content-
Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]

works fine and returns Hello World, so i suppose that the basic things
work ok.

Now, if i add to the wsgi_test.py, a:

from Crypto.Cipher import AES

or

import pywintypes

i get loading errors, with Crypto for example:

[Sat Apr 30 14:32:27 2011] [info] mod_wsgi (pid=3756): Create
interpreter 'nb-alejandro.quipugmbh.com|/wsgi'.
[Sat Apr 30 14:32:27 2011] [info] [client 127.0.0.1] mod_wsgi
(pid=3756, process='', application='nb-alejandro.quipugmbh.com|/
wsgi'): Loading WSGI script 'C:/temp/wsgi_test.py'.
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1] mod_wsgi
(pid=3756): Target WSGI script 'C:/temp/wsgi_test.py' cannot be loaded
as Python module.
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1] mod_wsgi
(pid=3756): Exception occurred processing WSGI script 'C:/temp/
wsgi_test.py'.
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1]   File "C:/temp/
wsgi_test.py", line 3, in <module>
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1]     from
Crypto.Cipher import AES
[Sat Apr 30 14:32:27 2011] [error] [client 127.0.0.1] ImportError: DLL
load failed: The specified module could not be found.

if i run running wsgi_test.py from command line it works fine, no
complaints.

I have googled quite a lot and there seem to be different
explanations, the closest one to my problem apparently related to
manifests and being stripped in latest python versions (http://
bugs.python.org/issue4120) and apache not having any, but i am really
confused if i am looking in the right direction.

Any idea how to advance with this?

thanks, af

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to