Hi:
I've read some post about tg-admin quickstart failing in Ubuntu but I
haven't managed to get much out of it.
I have installed following the guide for Ubuntu, although on a system
that had already cheetah among other things.
tg-admin seems to fail in cheetah, even tough I have the required
version.
Is it possible that I have many cheetah laying around and tg-admin is
using the wrong one?
How to check for that?
Or how to continue?
Thanks!
---------------------------------------------------------------------
bash:~/$ cheetah -v
2.0rc7
---------------------------------------------------------------------
TurboGears Complete Version Information
TurboGears requires:
* TurboGears 1.0.3.2
* Cheetah 2.0rc7
* configobj 4.4.0
* DecoratorTools 1.5
* RuleDispatch 0.5a0.dev-r2306
* setuptools 0.6c6
* FormEncode 0.7.1
* PasteScript 1.3.5
* elementtree 1.2.6-20050316
* simplejson 1.7.1
* CherryPy 2.2.1
* TurboKid 1.0.2
* TurboCheetah 0.9.5
* TurboJson 1.1
* PyProtocols 1.0a0dev-r2302
* PasteDeploy 1.3.1
* Paste 1.4
* kid 0.9.6
* Cheetah 2.0rc7
* RuleDispatch 0.5a0.dev-r2306
* DecoratorTools 1.5
Identity Providers
* sqlobject (TurboGears 1.0.3.2)
* sqlalchemy (TurboGears 1.0.3.2)
tg-admin Commands
* info (TurboGears 1.0.3.2)
* shell (TurboGears 1.0.3.2)
* quickstart (TurboGears 1.0.3.2)
* update (TurboGears 1.0.3.2)
* sql (TurboGears 1.0.3.2)
* i18n (TurboGears 1.0.3.2)
* toolbox (TurboGears 1.0.3.2)
Visit Managers
* sqlobject (TurboGears 1.0.3.2)
* sqlalchemy (TurboGears 1.0.3.2)
Template Engines
* genshi-markup (Genshi 0.3.5)
* genshi-text (Genshi 0.3.5)
* genshi (Genshi 0.3.5)
* kid (TurboKid 1.0.2)
* cheetah (TurboCheetah 0.9.5)
* json (TurboJson 1.1)
Widget Packages
Toolbox Plugins
* info (TurboGears 1.0.3.2)
* catwalk (TurboGears 1.0.3.2)
* shell (TurboGears 1.0.3.2)
* designer (TurboGears 1.0.3.2)
* widgets (TurboGears 1.0.3.2)
* admi18n (TurboGears 1.0.3.2)
TurboGears Extensions
* visit (TurboGears 1.0.3.2)
* identity (TurboGears 1.0.3.2)
THE ERROR
---------------------------------------------------------------
/var/lib/python-support/python2.5/Cheetah/Compiler.py:1556:
UserWarning: You supplied an empty string for the source!
warnings.warn("You supplied an empty string for the source!", )
Copying __init__.py_tmpl to ./alexTest/alextest/config/
__init__.py
Copying app.cfg_tmpl to ./alexTest/alextest/config/app.cfg
Copying log.cfg_tmpl to ./alexTest/alextest/config/log.cfg
Copying controllers.py_tmpl to ./alexTest/alextest/controllers.py
Copying json.py_tmpl to ./alexTest/alextest/json.py
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0.3.2', 'console_scripts', 'tg-
admin')()
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.3.2-py2.5.egg/
turbogears/command/base.py", line 389, in main
command.run()
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.3.2-py2.5.egg/
turbogears/command/quickstart.py", line 203, in run
command.run(cmd_args)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/command.py", line 210, in run
result = self.command()
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/create_distro.py", line 125, in command
template, output_dir, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/create_distro.py", line 167, in create_template
template.run(self, output_dir, vars)
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.3.2-py2.5.egg/
turbogears/command/quickstart.py", line 33, in run
super(TGTemplate, self).run(command, output_dirs, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/templates.py", line 57, in run
self.write_files(command, output_dir, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/templates.py", line 126, in write_files
template_renderer=self.template_renderer)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/copydir.py", line 94, in copy_dir
svn_add=svn_add, template_renderer=template_renderer)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/copydir.py", line 103, in copy_dir
template_renderer=template_renderer)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.5-py2.5.egg/
paste/script/copydir.py", line 278, in substitute_content
searchList=[vars])
File "/var/lib/python-support/python2.5/Cheetah/Template.py", line
1199, in __init__
self._compile(source, file, compilerSettings=compilerSettings)
File "/var/lib/python-support/python2.5/Cheetah/Template.py", line
1487, in _compile
keepRefToGeneratedCode=True)
File "/var/lib/python-support/python2.5/Cheetah/Template.py", line
786, in compile
raise parseError
Cheetah.Parser.ParseError:
Error in the Python code which Cheetah generated for this template:
================================================================================
EOL while scanning single-quoted string
(cheetah_DynamicallyCompiledCheetahTemplate_2007072415452677554.py,
line 319)
Line|Python Code
----|-------------------------------------------------------------
317 |
318 | def _set_password(self, password):
319 | ''''
^
320 | algo defined in the configuration
321 | ''''
322 | self._password = identity.encrypt_password(password)
================================================================================
Here is the corresponding Cheetah code.
** I had to guess the line & column numbers, so they are probably
incorrect:
Line 277, column 1
Line|Cheetah Code
----|-------------------------------------------------------------
274 |assign(Permission, permissions_table,
275 | properties=dict(groups=relation(Group,
276 | secondary=group_permission_table,
backref='permissions')))
277 |#else
^
278 |#
279 |# identity model
280 |#
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---