Hi All,
Mikkel Høgh asked previously about getting TurboGears to work on
Gentoo Linux, but it was left unresolved.
Running the tg-admin command gives the following output:
===
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 236, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 2097, in load_entry_point
return ep.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 1830, in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/__init__.py",
line 6, in ?
from turbogears.controllers import expose, flash, validate,
redirect, \
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 420, in ?
class RootController(Controller):
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 429, in RootController
msglogfunc = {0: msglog.info, 1: msglog.warning, 2: msglog.error}
AttributeError: Logger instance has no attribute 'warning'
===
Lines 428 to 433 of
/usr/lib/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py
are as follows:
===
msglog = logging.getLogger('cherrypy.msg')
msglogfunc = {0: msglog.info, 1: msglog.warning, 2: msglog.error}
def _cp_log_message(self, msg, context = 'nocontext', severity =
0):
log = self.msglogfunc[severity]
text = ''.join((context, ': ', msg))
log(text)
===
Any ideas?
I made sure I removed the gentoo versions of cherrypy etc and installed
using the instructions on the TurboGears website.
Running Python 2.4.3
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---