On 3 July 2012 23:34, Williams <[email protected]> wrote:
> 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'

What is the output from running:

  ls -las /usr/lib/python2.6/site-packages/

  ls -las /usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg
  ls -las /usr/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg

  grep Genshi /usr/lib/python2.6/site-packages/*.pth
  grep Trac /usr/lib/python2.6/site-packages/*.pth

Possibilities are incorrect directory/file permissions such that
Apache cannot read .pth files or egg directories.

Corrupted .pth file such that Trac and Genshi not listed.

The eggs are zipped eggs and not expanded eggs and Python cannot
unpack the eggs at runtime because Python egg cache directory is not
writable, or already contains a corrupted version of the packages.

Read:

  
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User

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