You need to find the Apache modules directory for your Linux version. I don't 
know where RedHat keeps it.

In that directory look for the mod_wsgi .so file. I am not sure if it will be 
called mod_wsgi.so or whether the distro changes the name such it has the 
Python version as part of the name so that mod_wsgi packages for different 
Python versions don't clash.

Whatever you find, run:

  ldd mod_wsgi.so

on it. Changing the name of the file you run the command on to match if the 
name is different.

Then find in the Apache configuration files the LoadModule directive for 
mod_wsgi and see what it refers to.

Post the details of what mod_wsgi .so files exist in the Apache modules 
directory, what the output of ldd is and what the LoadModule line in Apache 
says.

Graham

On 08/11/2014, at 12:32 AM, robert brook <[email protected]> wrote:

> These are the components we have on the machine.
> Can you comment as to whether there may be a mismatch on the versions?
> And if there is a mismatch, what the next steps should be.
> Is it an issue theat the version of wsgi appears to be 3.4 and python on the 
> machine is 3.3?
> 
> Thanks in advance.
> 
> [root@itd-dv-wt-lap1 jlee]# rpm -qa | grep  mod_wsgi
> 
> mod_wsgi-3.4-1.pulp.el6sat.x86_64
> 
> python33-mod_wsgi-3.4-14.el6.x86_64
> 
>  *************
> 
> Python 3.3.2 (default, Mar 20 2014, 20:25:51)
> 
> [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux
> 
> 
> On Thursday, November 6, 2014 4:26:57 PM UTC-5, robert brook wrote:
> I have started apache on a Linux Red Hat 6 server, running python3.3 and 
> django1.7
> 
> There is also python 2.6.6 on the machine.  Red hat places that version their 
> for administrative purposes and cannot be removed.
> 
> I am getting the following error log.
> 
> Can anyone give me insight into this error.
> 
> Is the error referring to an issue with 2.6.6 (reference the 2nd line in the 
> log).
> Or could the mod_wsgi be wrong?
> 
> Thanks in advance
> *****************************
> 
> [Thu Nov 06 15:51:59 2014] [notice] Digest: done
> 
> [Thu Nov 06 15:51:59 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.4 
> Python/2.6.6 configured -- resuming normal operations
> 
> [Thu Nov 06 15:53:30 2014] [error] housing.settings
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117] mod_wsgi 
> (pid=23433): Target WSGI script '/tmp/housing_x/housing/wsgi.py' cannot be 
> loaded as Python module.
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117] mod_wsgi 
> (pid=23433): Exception occurred processing WSGI script 
> '/tmp/housing_x/housing/wsgi.py'.
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117] Traceback (most 
> recent call last):
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/tmp/housing_x/housing/wsgi.py", line 13, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     from 
> django.core.wsgi import get_wsgi_application
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django/core/wsgi.py",
>  line 2, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     from 
> django.core.handlers.wsgi import WSGIHandler
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django/core/handlers/wsgi.py",
>  line 11, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     from django 
> import http
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django/http/__init__.py",
>  line 2, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     from 
> django.http.request import (HttpRequest, QueryDict,
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django/http/request.py",
>  line 11, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     from 
> django.conf import settings
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]   File 
> "/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django/conf/__init__.py",
>  line 9, in <module>
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117]     import 
> importlib
> 
> [Thu Nov 06 15:53:30 2014] [error] [client 192.168.111.117] ImportError: No 
> module named importlib
> 
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to