Ось - OpenSUSE
Питон - 2.5
Версия сабжа - 1.0.2.2
Так как в репозитариях под этот линух нет TurboGears, я ставил его по кусочкам с сайта сабжа.
В придачу к самому сабжу пришлось докачать кучу пакетов. Все ставил из исходников. Все вроде бы стало нормально - без ошибок, но когда я непосредственно начинаю работать с TurboGears, вываливается вот это:
admin:/home # tg-admin
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg-admin')()
File "build/bdist.linux-i686/egg/pkg_resources.py", line 277, in load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 2179, in load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1912, in load
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/__init__.py", line 6, in <module>
from turbogears.controllers import expose, flash, validate, redirect, \
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/controllers.py", line 12, in <module>
from turbogears import view, database, errorhandling, config
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/view/__init__.py", line 1, in <module>
from turbogears.view.base import *
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/view/base.py", line 355, in <module>
load_engines()
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/view/base.py", line 336, in load_engines
"mako.directories" : config.get("mako.directories", []),
File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/config.py", line 212, in get
value = config.get(key, default_value, return_section, path)
TypeError: get expected at most 2 arguments, got 4