On 13 April 2010 22:17, MMRUser <[email protected]> wrote: > I'm getting this error on my server log.... I have two versions of > Python 2.4 and 2.5 Django is installed in to 2.6 and it's the default > python on my system, also it can be imported through command line.. > > I tried then it raised no module name os > WSGIPythonHome /usr/local > > [Tue Apr 13 12:04:44 2010] [error] Exception exceptions.ImportError: > 'No module named ate$ > 'import site' failed; use -v for traceback
There is no Python installation under /usr/local of the version that mod_wsgi has been compiled against. Run: ldd mod_wsgi.so on the .so file that was generated by built process to work out which Python it was compiled against. It possibly isn't the version you want to use. > Fatal Python error: unexpected exception during garbage collection > [Tue Apr 13 12:04:44 2010] [notice] caught SIGTERM, shutting down > [Tue Apr 13 12:04:44 2010] [notice] suEXEC mechanism enabled > (wrapper: /usr/sbin/suexec) > [Tue Apr 13 12:04:44 2010] [warn] module wsgi_module is already > loaded, skipping You have duplicate LoadModule lines for mod_wsgi. Either you have listed it twice by accident, or your snippet configuration file is being included more than once for some reason. Graham > [Tue Apr 13 12:04:44 2010] [notice] Digest: generating secret for > digest authentication .$ > [Tue Apr 13 12:04:44 2010] [notice] Digest: done > [Tue Apr 13 12:04:44 2010] [notice] Apache/2.2.3 (Red Hat) configured > -- resuming normal $ > [Tue Apr 13 12:09:03 2010] [error] [client 127.0.0.1] Directory index > forbidden by Option$ > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] mod_wsgi > (pid=24108): Target WSGI s$ > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] mod_wsgi > (pid=24108): Exception occ$ > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] Traceback (most > recent call last): > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] File "/var/www/ > html/testproject/a$ > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] import > django.core.handlers.wsgi > [Tue Apr 13 12:09:14 2010] [error] [client 127.0.0.1] ImportError: No > module named django$ > > -- > 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.
