Thanks for the fast response!

>
> On 3 July 2012 08:51, Graham Dumpleton wrote: 
> > Run 'ldd' on the mod_wsgi.so file. 
> > 
> > It may be the case that mod_wsgi isn't compiled against the version of 
> > Python you think it is. 
> > 
>
The output of ldd looks like this:
 [root@enoch modules]# ldd ./mod_wsgi.so 
    linux-gate.so.1 =>  (0xb777e000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0xb75b1000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb7596000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7591000)
    libutil.so.1 => /lib/libutil.so.1 (0xb758d000)
    libm.so.6 => /lib/libm.so.6 (0xb7562000)
    libc.so.6 => /lib/libc.so.6 (0xb73d2000)
    /lib/ld-linux.so.2 (0x4f6be000)

My system did have some libpyglib-2.0-python.so libraries in /usr/lib.  To 
be certain that mod_wsgi was not picking them up I moved them to a 
temporary location and restarted apache.  It appears that I am running with 
the python 2.6 libraries.

> So follow through and check things using steps detailed in: 
> > 
> > 
> http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Shared_Library
>  
> > 
> http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Installation_In_Use
>  
> > 
>
The script provided in Python_Installation_In_Use shows something 
interesting but I am stumped on how to correct.  When running from apache 
the sys.path does not contain the following two packages, as root (command 
line) they are included in the sys.path.  Do you have any idea what may 
cause this?
'/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg'
'/usr/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg'

The sample script you provided in Python_Installation_In_Use provides the 
following information:

sys.version = '2.6.6 (r266:84292, Jun 18 2012, 09:13:53) \n[GCC 4.4.6 20110731 
(Red Hat 4.4.6-3)]'
sys.prefix = '/usr'
sys.path = ...
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg'
'/usr/lib/python2.6/site-packages/Babel-0.9.5-py2.6.egg'
'/usr/lib/python26.zip'
'/usr/lib/python2.6'
'/usr/lib/python2.6/plat-linux2'
'/usr/lib/python2.6/lib-tk'
'/usr/lib/python2.6/lib-old'
'/usr/lib/python2.6/lib-dynload'
'/usr/lib/python2.6/site-packages'
'/usr/lib/python2.6/site-packages/gst-0.10'
'/usr/lib/python2.6/site-packages/gtk-2.0'
'/usr/lib/python2.6/site-packages/webkit-1.0'
site.PREFIXES = ['/usr', '/usr']
site.ENABLE_USER_SITE = True
site.USER_SITE = '/var/www/.local/lib/python2.6/site-packages'

site.USER_BASE = '/var/www/.local'



> As a separate issue, consider using mod_wsgi daemon mode, else you 
> > might find Trace taking up too much memory. See daemon mode examples 
> > in: 
> >  
>
> http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac 
> > 
> http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegation_To_Daemon_Process
>  
> > 
>
This will be my next step.

I must be missing something simple?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/uQyg7ZtUrg4J.
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