2008/11/6 Andreas L. <[EMAIL PROTECTED]>:
>
> Hi,
>
> I am trying to install mod_wsgi on my mac using macports, but I always
> end up with a broken mod_wsgi.so. This is the error I get trying to
> "apachectl start":
>
> httpd: Syntax error on line 115 of /opt/local/apache2/conf/httpd.conf:
> Can't locate API module structure `python_module' in file /opt/local/
> apache2/modules/mod_wsgi.so: dlsym(0x404e10, python_module): symbol
> not found
>
> I tried "otool -L /opt/local/apache2/modules/mod_wsgi.so" and I get
> the following output:
>
> /opt/local/apache2/modules/mod_wsgi.so:
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 111.1.2)
>        /opt/local/Library/Frameworks/Python.framework/Versions/2.4/Python
> (compatibility version 2.4.0, current version 2.4.0)
>        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
>
> I have both python24 and 25, python_select(ed) 2.4. Tried both of
> them, and I also tried mod_wsgi 2.3 and the version shipping via
> macports, but the result is always the same.
>
> Am I doing something wrong?

Yes, in your LoadModule line you are loading mod_wsgi.so but telling
Apache it is actually mod_python.

You need to use something like:

  LoadModule wsgi_module modules/mod_wsgi.so

You appear to have 'python_module' instead of 'wsgi_module'.

Graham

--~--~---------~--~----~------------~-------~--~----~
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