On Sep 10, 1:41 pm, AZMel <[EMAIL PROTECTED]> wrote:
> On Sep 9, 8:36 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Sep 10, 1:32 pm, AZMel <[EMAIL PROTECTED]> wrote:
>
> > > I've been trying that but now I'm getting these errors no matter what
> > > I do:
>
> > > [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] mod_wsgi
> > > (pid=5666): Target WSGI script '/usr/local/turbogears/stum/
> > > apache/stum.wsgi' cannot be loaded as Python module.
> > > [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] mod_wsgi
> > > (pid=5666): Exception occurred processing WSGI script '/usr
> > > /local/turbogears/stum/apache/stum.wsgi'.
>
> > > As you can see it is a fresh TG app with nothing added but wsgi won't
> > > load the config file.
>
> > But what was the exception traceback which should have followed that
> > in the Apache error log file?
>
> > Can't debug it if can't see what the actual error was. :-)
>
> > Graham
>
> hehe, the same thing that was posted at 6:09 pm.
>
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] mod_wsgi
> (pid=5666): Target WSGI script '/usr/local/turbogears/stum/
> apache/stum.wsgi' cannot be loaded as Python module.
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] mod_wsgi
> (pid=5666): Exception occurred processing WSGI script '/usr
> /local/turbogears/stum/apache/stum.wsgi'.
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] Traceback
> (most recent call last):
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] File "/usr/
> local/turbogears/stum/apache/stum.wsgi", line 11, in <m
> odule>
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] import
> turbogears
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] File "/usr/
> lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/
> turbogears/__init__.py", line 5, in <module>
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] from
> turbogears import config
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] File "/usr/
> lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/
> turbogears/config.py", line 4, in <module>
> [Tue Sep 09 20:26:23 2008] [error] [client 192.168.1.121] from
> configobj import ConfigObj
Which suggests you might have some sort of Python path conflicts or
permissions issues going on, or Python installation otherwise broken
in some way.
How many Python installations do you have on your system? What
versions and where?
Which installed version of Python was mod_wsgi compiled against? Which
'python' executable is in your PATH, ie., what does 'which python'
yield?
Where do you normally install Python packages/modules, ie., which site-
packages directory, or into account somehow?
How may versions of TurboGears are installed there? Are the files in
those installations all readable to others, or do they have
restrictive permissions on them such that not everyone could read
them? Apache runs as a distinct user and must be able to read them
somehow.
What is PYTHONPATH set to in your personal environment?
Do you have any Python eggs installed which are in compressed form and
would thus need to be unpacked via Python egg cache directory? Can you
clear out any Python egg cache directories you know about?
At the start of the WSGI script file, add:
import sys
print >> sys.stderr, sys.path
How are you restarting Apache, are you use 'sudo' or 'su' commands, if
so what is the full command line you are using?
Are you also loading mod_python into Apache at the same time?
There are various things which can cause sys.path weirdness including
having multiple versions of Python installed, local PYTHONPATH
settings and ensuring Apache doesn't inherit your personal user
environment when being started in some way.
You at least thinking about the answers to above questions and
answering them where appropriate might help to understand how you
environment is setup.
Otherwise I just don't know at this point. People do not generally
have the problems you are having, so there is something strange about
your particular environment.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---