Hi,

I downloaded and tgsetup.py from the Turbogears page.

I ran it...

*****************************************

[EMAIL PROTECTED] tginstall]# python tgsetup.py
TurboGears Installer
Beginning setuptools/EasyInstall installation and TurboGears download

Downloading 
http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c6-py2.4.egg
Processing setuptools-0.6c6-py2.4.egg
creating /usr/local/lib/python2.4/site-packages/setuptools-0.6c6-
py2.4.egg
Extracting setuptools-0.6c6-py2.4.egg to /usr/local/lib/python2.4/site-
packages
Removing setuptools 0.6c5 from easy-install.pth file
Adding setuptools 0.6c6 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.4 script to /usr/local/bin

Installed /usr/local/lib/python2.4/site-packages/setuptools-0.6c6-
py2.4.egg
Processing dependencies for setuptools==0.6c6
Searching for TurboGears[standard]>=1.0.3.2
Reading http://www.turbogears.org/download/
Reading http://cheeseshop.python.org/pypi/TurboGears/
Reading http://www.turbogears.org
Reading http://www.turbogears.org/download/filelist.html
Reading http://cheeseshop.python.org/pypi/TurboGears/1.0.3.2
Reading http://cheeseshop.python.org/pypi/TurboGears/&quot;<a
Best match: TurboGears 1.0.3.2
Downloading http://files.turbogears.org/eggs/TurboGears-1.0.3.2-py2.4.egg
Processing TurboGears-1.0.3.2-py2.4.egg
removing '/usr/local/lib/python2.4/site-packages/TurboGears-1.0.3.2-
py2.4.egg' (and everything under it)
creating /usr/local/lib/python2.4/site-packages/TurboGears-1.0.3.2-
py2.4.egg
Extracting TurboGears-1.0.3.2-py2.4.egg to /usr/local/lib/python2.4/
site-packages
TurboGears 1.0.3.2 is already the active version in easy-install.pth
Installing tg-admin script to /usr/local/bin

Installed /usr/local/lib/python2.4/site-packages/TurboGears-1.0.3.2-
py2.4.egg
Reading http://files.turbogears.org/eggs/
Processing dependencies for TurboGears[standard]>=1.0.3.2

**********************************

then I ran tg-admin info. It did not install Cheetah 2.

**********************************

[EMAIL PROTECTED] tginstall]# tg-admin info
TurboGears Complete Version Information

TurboGears requires:

* TurboGears 1.0.3.2
* cElementTree 1.0.5-20051216
* configobj 4.3.2
* DecoratorTools 1.4
* RuleDispatch 0.5a0.dev-r2306
* setuptools 0.6c6
* FormEncode 0.7.1
* PasteScript 0.9.8
* elementtree 1.2.6
* simplejson 1.3
* CherryPy 2.2.1
* TurboKid 1.0.2
* TurboCheetah 0.9.5
* TurboJson 0.9.9
* PyProtocols 1.0a0
* Cheetah 1.0
* PasteDeploy 0.5
* Paste 0.5
* kid 0.9.6
* Cheetah 1.0

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

* cheetah (TurboCheetah 0.9.5)
* json (TurboJson 0.9.9)
* kid (TurboKid 1.0.2)

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)

************************************

I also tried to install Cheetah but it installed version 1.


************************************

[EMAIL PROTECTED] tginstall]# easy_install -U cheetah
Searching for cheetah
Reading http://cheeseshop.python.org/pypi/cheetah/
Couldn't retrieve index page for 'cheetah'
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/Cheetah/2.0rc8
Reading http://www.CheetahTemplate.org/
Reading http://cheeseshop.python.org/pypi/Cheetah/1.0
Best match: Cheetah 1.0
Processing Cheetah-1.0-py2.4-linux-x86_64.egg
Cheetah 1.0 is already the active version in easy-install.pth
Installing cheetah script to /usr/local/bin
Installing cheetah-compile script to /usr/local/bin

Using /usr/local/lib/python2.4/site-packages/Cheetah-1.0-py2.4-linux-
x86_64.egg
Processing dependencies for cheetah
Finished processing dependencies for cheetah
[EMAIL PROTECTED] tginstall]#


*****************************************

I got the same error when trying to quickstart a project. The problem
seems to be caused by triple single quoted strings in the file

turbogears/qstemplates/quickstart/+package+/model.py_tmpl

in docstrings for the functions _set_password and _get_password

240-
241-    def _set_password(self, password):
242:        '''
243-        encrypts password on the fly using the encryption
244-        algo defined in the configuration
245:        '''
246-        self._password = identity.encrypt_password(password)
247-
248-    def _get_password(self):
249:        '''
250-        returns password
251:        '''
252-        return self._password
253-
254-    password = property(_get_password, _set_password)


Changing these single quoted strings to doubly quoted strings using
three double quotes """ fixes the problem.

I am able to quickstart projects without any issues.

I see that Cheetah 2 is a release candidate project. TG seems to work
fine without it....

Regards

Tom



On Jul 24, 12:04 pm, Christopher Arndt <[EMAIL PROTECTED]> wrote:
> Thomas Crawley schrieb:
>
> > This error occurs on Quickstart with SQLObject based identity also.
>
> > It would appear Quickstart is broken
> >   File "/usr/local/lib/python2.4/site-packages/Cheetah-1.0-py2.4-linux-
> > x86_64.egg/Cheetah/Template.py", line 355, in _bindCompiledMethod
> >     exec genCode                    # in this namespace!!
> >   File "<string>", line 258
> >     ''''
> >        ^
> > SyntaxError: EOL while scanning single-quoted string
>
> You seem to have an old version (1.0) of Cheetah. TurboGears currently
> needs Cheetah>=2.0rc7.
>
> The cause for this is probably that you upgraded TurboGears with
> "easy_install -U TurboGears". Unfortunately this does not seem to pick
> up all needed requirements correctly, if some of them are already installed.
>
> Be sure to use the "tgsetup.py" installation method. Sorry, the
> announcement erroneously recommended to use "easy_install" for
> upgrading. This was not a good idea.
>
> Chris


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