On Aug 13, 2:03 pm, Christoph Zwerschke <[email protected]> wrote:
> Am 13.08.2010 10:57 schrieb nio:
>
> > I'm new to TG and I'd like to install TG 1.1 on my xubuntu 10.04.
>
> > I've followed the documentation steps, I've installed easy_install,
> > virtualenv, activated my virtual_env, and then :
> > easy_install TurboGears
> > easy_install sqlalchemy
>
> > But when I try tg-amdin info, here's what I get :
>
> >      frompeak.rulesimport abstract, always_overrides, Method,
> > NoApplicableMethods
> > ImportError: cannot import name always_overrides
>
> Hi Nicolas, sorry for your bad first impression.
>
> The problem is not with not using virtualenv or the Python version. TG
> 1.1 should work fine without virtualenv (even though it's recommended)
> and with Python 2.6. You've just chosen a bad day to try it out: The
> problem is caused by an API change in peak_rules made by Philip Eby just
> yesterday in r2660.
>
> It seems this change also broke the prioritized_methods package which is
> used by TurboJson.
>
> So the best fix for the time being is to install an older peak_rules
> version, e.gPEAK-Rules-0.5a1.dev-r2659.tar.gz which you can find 
> here:http://peak.telecommunity.com/snapshots/
>
> I will adapt TG 1.1 and 1.5 today so that it works with the new
> peak_rules packages and try to get prioritized fixed as well.

Sorry about that - I'm trying to cleanly separate the API from the
internals; always_overrides is internal, and should be imported from
peak.rules.core, not from the parent package.

I can stick always_overrides back in if this is going to be a
widespread problem, but at some point it's got to go.

If it helps, I could push ahead on supporting inline priority() in
rules...  ;-)

(See http://dirtsimple.org/2010/08/simplifying-prioritized-methods-in-peak.html
for details.)

>
> -- Christoph

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