On Sep 10, 8:51 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> > Ok, I completed removed Turbogears from /usr/lib/python2.5/site-
> > packages and easy_install.pth. Then I reinstalled it with a fresh
> > tgsetup.py script.
> > Purged Apache2, config files, and modules. Then I reinstalled it.
> > I went through Lucas's wiki on installing wsgi to a brand new TG app
> > that works perfectly when manually started.
>
> > Apache2 has these moduels loaded:
>
> > alias auth_basic authn_file authz_default authz_groupfile authz_host
> > authz_user autoindex cgid dir env mime mod_wsgi negotiation setenvif
> > status
>
> > And the problem still exists:
>
> > [Wed Sep 10 08:08:01 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/
> > TurboGears-1.0.
> > 6-py2.5.egg', '/usr/lib/python2.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/l
> > ib/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-p
> > ackages/kid-0.9.6-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', '/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/PIL',
> > '/var/lib/python-support/python2.5', '/usr/local/turbogears/stum', '/
> > usr/local/turbogears/stum']
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] mod_wsgi
> > (pid=15076): Target WSGI script '/usr/local/turbogears/stum/apache/
> > stum.wsgi' cannot be loaded as Python module.
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] mod_wsgi
> > (pid=15076): Exception occurred processing WSGI script '/usr/local/
> > turbogears/stum/apache/stum.wsgi'.
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] Traceback
> > (most recent call last):
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] File "/usr/
> > local/turbogears/stum/apache/stum.wsgi", line 11, in <module>
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] import
> > turbogears
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] File "/usr/
> > lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/turbogears/
> > __init__.py", line 5, in <module>
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] from
> > turbogears import config
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] File "/usr/
> > lib/python2.5/site-packages/TurboGears-1.0.6-py2.5.egg/turbogears/
> > config.py", line 4, in <module>
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] from
> > configobj import ConfigObj
> > [Wed Sep 10 08:08:01 2008] [error] [client 192.168.1.124] ImportError:
> > No module named configobj
> > [Wed Sep 10 08:08:02 2008] [error] [client 192.168.1.124] File does
> > not exist: /var/www/favicon.ico
> > [Wed Sep 10 08:08:02 2008] [error] [client 192.168.1.124] File does
> > not exist: /var/www/favicon.ico
>
> Can you uncomment this line in your wsgi file and change the name to your app:
>
> import os
> os.environ['PYTHON_EGG_CACHE'] = '/usr/local/turbogears/myfirstapp'
>
> make sure its own by root user +group need to be able to write
> make sure /usr/local/turbogears/stum is owner by www-data user + group
> need to be able to write
>
> Then if that fails open python
> and start typing exact same lines as wsgi file has.
>
> import .....
>
> then try what your error log is doing.
> from turbogears import config
> then
> from configobj import ConfigObj
> ..etc...
>
> Lucas
Thanks, that made me wake up a bit. I had to do an easy_install on
configobj, and eventually kid, formencode, sqlobject, and
turbofancyflash. Now it back to where the links don't work. Apache
shows:
[Wed Sep 10 09:54:57 2008] [error] [client 192.168.1.124] File does
not exist: /var/www/reports, referer: http://192.168.1.9/myclient
How do I get /var/www/reports to become http://192.168.1.9/myclient/reports?
Then we might have a winner.
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
-~----------~----~----~----~------~----~------~--~---