Try in mod_wsgi source code: make distclean
./configure --disable-framework --with-python=/some/path/bin/python2.6 make sudo make install The --disable-framework option is the important bit. Post the output of the 'make' command and the output of running in source directory after built: otool -L .libs/mod_wsgi.so Graham 2010/1/18 fhuddles <[email protected]>: > I'm trying to use Django via WSGI on a Mac PPC OS 10.4.11, with Apache > 2.2.9, Django 1.1.1 and Python 2.6.4. I do have some other versions of > Python on this system: 2.4, 2.5, ,and 3.0, but /Library/Frameworks/ > Python.framework/Versions/Current points to 2.6, and that is the > default if you just run "Python" from the command line. > I had some problems with the make of mod_wsgi: seems that > MACOS_DEPLOYMENT_TARGET defaults to 10.1 for PPC machines, and this > was causing a fatal make error, but I managed to set it to 10.4 in the > environment variable, and it made, albeit with some warnings which I > do not remember now. I installed and configured it, and made a > django.wsgi file like so: > mport os > import sys > > os.environ['DJANGO_SETTINGS_MODULE'] = 'djvocab.settings' > > #-- If your project is not on your PYTHONPATH by default you can add: > > sys.path.append('/usr/share/Django-1.1.1') > > import django.core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > My Apache2 is from Fink. When it starts, everything appears normal, > and in the error log I see the line: > Mon Jan 18 01:23:14 2010] [notice] Apache/2.2.9 (Unix) PHP/5.2.6 > mod_wsgi/3.1 Python/2.6.4 configured -- resuming normal operations > > But upon trying to access the URL associated with my Django app, I get > a server error, and this in the error log: > > [Mon Jan 18 01:24:14 2010] [info] [client 127.0.0.1] mod_wsgi > (pid=22850, process='', application='localhost|/djvocab'): Loading > WSGI script '/Users/fhuddles/work/djvocab/apache/django.wsgi'. > Fatal Python error: Interpreter not initialized (version mismatch?) > [Mon Jan 18 01:24:14 2010] [info] [client 127.0.0.1] mod_wsgi > (pid=22851, process='', application='localhost|/djvocab'): Loading > WSGI script '/Users/fhuddles/work/djvocab/apache/django.wsgi'. > Fatal Python error: Interpreter not initialized (version mismatch?) > [Mon Jan 18 01:24:14 2010] [notice] child pid 22851 exit signal Abort > trap (6) > [Mon Jan 18 01:24:14 2010] [notice] child pid 22850 exit signal Abort > trap (6) > [Mon Jan 18 01:24:15 2010] [info] [client 127.0.0.1] mod_wsgi > (pid=22852, process='', application='localhost|/djvocab'): Loading > WSGI script '/Users/fhuddles/work/djvocab/apache/django.wsgi'. > Fatal Python error: Interpreter not initialized (version mismatch?) > .... etc (there are a few more similar lines, and this is from just > one attempt) > > This seems to indicate a mismatch in Python versions, but I can't see > how or where. Can anyone suggest something? > > Thanks in advance, > > Frank Huddleston > > > -- > 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. > > > >
-- 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.
