On Sep 9, 8:59 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> 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?
2.3,2.4,2.5 in /usr/lib
>
> 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?
>
/usr/lib/python2.5

> 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?

cleared out ~/.python-eggs and /var/www/.python-eggs
>
> At the start of the WSGI script file, add:
>
>   import sys
>   print >> sys.stderr, sys.path
>

[Wed Sep 10 06:48:23 2008] [info] [client 192.168.1.122] mod_wsgi
(pid=9692, process='', application='localhost|/stum'): Loading WSGI
script '/usr/local/turbogears/stum/apache/stum.wsgi'.
[Wed Sep 10 06:48:23 2008] [error] ['/usr/lib/python2.5/site-packages/
setuptools-0.6c8-py2.5.egg', '/usr/lib/python2.5/site-packages/
Extremes-1.1-py2.5.egg', '/usr/lib/python2.5/site-packages', '/usr/lib/
pyt
hon2.5/site-packages/TurboKid-1.0.4-py2.5.egg', '/usr/lib/python2.5/
site-packages/TurboJson-1.1.4-py2.5.egg', '/usr/lib/python2.5/site-
packages/TurboCheetah-1.0-py2.5.egg', '/usr/lib/python2.5/site-
packages/
PasteScript-1.6.3-py2.5.egg', '/usr/lib/python2.5/site-packages/
FormEncode-1.0.1-py2.5.egg', '/usr/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg', '/usr/lib/python2.5/site-packages/
Cheetah-2.0.1-py2.5
-linux-i686.egg', '/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-
py2.5.egg', '/usr/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg',
'/usr/lib/python2.5/site-packages/SQLObject-0.10.2-py2.5.egg', '/us
r/lib/python2.5/site-packages/TurboFancyFlash-0.1a-py2.5.egg', '/usr/
lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg', '/usr/lib/
python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/
local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-
packages', '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-
support/p
ython2.5', '/usr/local/turbogears/stum']
[Wed Sep 10 06:48:23 2008] [warn] mod_wsgi (pid=9692): Callback
registration for signal 15 ignored.
[Wed Sep 10 06:48:23 2008] [warn]   File "/usr/local/turbogears/stum/
apache/stum.wsgi", line 9, in <module>
[Wed Sep 10 06:48:23 2008] [warn]     import cherrypy
[Wed Sep 10 06:48:23 2008] [warn]   File "/usr/lib/python2.5/site-
packages/CherryPy-2.3.0-py2.5.egg/cherrypy/__init__.py", line 20, in
<module>
[Wed Sep 10 06:48:23 2008] [warn]     import _cpserver
[Wed Sep 10 06:48:23 2008] [warn]   File "/usr/lib/python2.5/site-
packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpserver.py", line 10, in
<module>
[Wed Sep 10 06:48:23 2008] [warn]     from cherrypy._cpengine import
Engine, STOPPED, STARTING, STARTED
[Wed Sep 10 06:48:23 2008] [warn]   File "/usr/lib/python2.5/site-
packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpengine.py", line 25, in
<module>
[Wed Sep 10 06:48:23 2008] [warn]     signal.signal(signal.SIGTERM,
SIGTERM)
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122] mod_wsgi
(pid=9692): Target WSGI script '/usr/local/turbogears/stum/apache/
stum.wsgi' cannot be loaded as Python module.
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122] mod_wsgi
(pid=9692): Exception occurred processing WSGI script '/usr/local/
turbogears/stum/apache/stum.wsgi'.
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122] Traceback
(most recent call last):
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]   File "/usr/
local/turbogears/stum/apache/stum.wsgi", line 11, in <module>
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]     import
turbogears
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]   File "/usr/
lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/turbogears/
__init__.py", line 5, in <module>
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]     from
turbogears import config
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]   File "/usr/
lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/turbogears/
config.py", line 4, in <module>
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122]     from
configobj import ConfigObj
[Wed Sep 10 06:48:23 2008] [error] [client 192.168.1.122] ImportError:
No module named configobj
[Wed Sep 10 06:48:24 2008] [error] [client 192.168.1.122] File does
not exist: /var/www/favicon.ico
[Wed Sep 10 06:48:24 2008] [error] [client 192.168.1.122] File does
not exist: /var/www/favicon.ico

> How are you restarting Apache, are you use 'sudo' or 'su' commands, if
> so what is the full command line you are using?
>
sudo /etc/init.d/apache2 force-reload

> Are you also loading mod_python into Apache at the same time?
>
Yes and these are all the ones I'm loading:
Your choices are: alias auth_basic authn_file authz_default
authz_groupfile authz_host authz_user autoindex cache cgi dir env
headers mime mod_python mod_wsgi negotiation perl php5 proxy_balancer
proxy_connect proxy_html proxy_http proxy rewrite setenvif ssl status
userdir

> 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

Mel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to