On 20 Jul 2013, at 12:02 AM, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > As Jonathan says the ast module was introduced in Pyhton 2.6, you have 2.5.
I was bitten by this (other features, not ast) just yesterday. My local environment (OS X) has 2.7; my production environment (RHEL6) had 2.6. Turns out that 2.6 does not support collections.Counter (no surprise there, really). More surprising, it doesn't support the flags argument to re.sub(). Huh? Easy to work around, but still... When I set up the servers, I started by installing 2.7.latest, but ran into some conflicts that I don't recall the details of right now, and reverted to the system-supplied 2.6. One of these days I'll have to set up a fresh server and figure out what it takes to run 2.7. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.