This is fantastic news. Thanks for doing the work to try all of this out. And I think compiled binary eggs for Rule Dispatch for windows are a great contribution.
If you could throw create a ticket for a 2.5 version, you can attach the eggs there, and Lee or one of the other folks can work out where to host these on the site. --Mark Ramm On 2/2/07, Florent Aide <[EMAIL PROTECTED]> wrote: > > > Hello fellow list posters/readers, > > I have been playing a bit with TG dev on windows and was naturally > tempted to try and install TG on python 2.5. > > To tell you the truth I am trying to make it work in Portable Python > (which uses 2.5). I have created my own portable python on 2.4 to test > and everything works like a charm. > > Now on 2.5 I have succeeded in installing every required component (at > least is seems so). > I had to download pyprotocols and ruledispatch from svn but got them > compiled using visual studio .net 2003. > > When I launched tg-admin quickstart I got this error: > > --------------- > File "x:\ppython\lib\site-packages\cheetah- > 1.0-py2.5.egg\Cheetah\Parser.py", l > ine 32, in <module> > from Cheetah import ErrorCatchers > File "x:\ppython\lib\site-packages\cheetah- > 1.0-py2.5.egg\Cheetah\ErrorCatchers > .py", line 16, in <module> > from Cheetah.NameMapper import NotFound > File "x:\ppython\lib\site-packages\cheetah- > 1.0-py2.5.egg\Cheetah\NameMapper.py > ", line 146 > from __future__ import generators > SyntaxError: from __future__ imports must occur at the beginning of the > file > --------------- > > Just moved the import line a the top of the file in NameMapper.py to > make it work... > > then > --------------- > File "x:\ppython\lib\site-packages\turbogears- > 1.0.1-py2.5.egg\turbogears\widge > ts\meta.py", line 194, in load_kid_template > return (kid.load_template(t, name=modname).Template, t) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\__init__.py", > line > 158, in load_template > store=cache, ns=ns, exec_module=exec_module) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\importer.py", > line > 144, in _create_module > raise_template_error(module=name, filename=filename) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\codewriter.py", > lin > e 94, in raise_template_error > encoding = mod.encoding > AttributeError: 'module' object has no attribute 'encoding' > --------------- > > Module in question is : turbogears.widgets.base.CSSLink.Template > > commented lines 91 to 97 in codewriter.py to bypass the obvious problems > > then I got: > > --------------- > from turbogears.widgets.base import * > File "x:\ppython\lib\site-packages\turbogears- > 1.0.1-py2.5.egg\turbogears\widge > ts\base.py", line 507, in <module> > class CSSLink(Link): > File "x:\ppython\lib\site-packages\turbogears- > 1.0.1-py2.5.egg\turbogears\widge > ts\meta.py", line 76, in __init__ > cls.template) = load_kid_template(cls.template, modname) > File "x:\ppython\lib\site-packages\turbogears- > 1.0.1-py2.5.egg\turbogears\widge > ts\meta.py", line 194, in load_kid_template > return (kid.load_template(t, name=modname).Template, t) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\__init__.py", > line > 158, in load_template > store=cache, ns=ns, exec_module=exec_module) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\importer.py", > line > 144, in _create_module > raise_template_error(module=name, filename=filename) > File "x:\ppython\lib\site-packages\kid-0.9.5-py2.5.egg\kid\importer.py", > line > 141, in _create_module > exec code in mod.__dict__ > File "<string>", line 5, in <module> > SystemError: Parent module 'turbogears.widgets.base.CSSLink' not loaded > --------------- > > At this point I decided it was time to checkout the svn head again :) > > I then started to use the trunk version of TG to do my tests and here > are my results: > > I had to do 2 things: > > 1 - install sqlobject 0.8x because on 2.5 sqlite module is renamed > sqlite3 but this is a > minor issue (I had to remove the dependencies in the requirements) > > 2 - amend was the master.kid file to read: > py:if="hasattr(self, 'tg_flash')" instead of just > py:if="tg_flash" on line 36. > > Apart from that I had a running tg site on 2.5 on windows (tested with > SO and SA but just the quickstart site) > > When I had this quickstart sites running I tested the application I am > working on at the moment and it worked like a charm. So for me the > 1.1-head branch "seems" python 2.5 ready! > > Regards, > > Florent Aide > > ps: > Since I have VS2003 at my disposition I can provide ruledispatch and > pyprotocols eggs (or other tg related eggs) for win32 on python 2.5 if > someone is interested. > > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
