On Sun, Jul 5, 2009 at 10:51 PM, apocalypznow<[email protected]> wrote:
>
> I am running python 2.5.2 on a debian based box (mint 5) and I used
> the package manager to download pylons 0.9.6.1-1.
>
> In python shell, when I type:
> from pylons import tmpl_context
> I get:
> ImportError: cannot import name tmpl_context

'tmpl_context' is new in Pylons 0.9.7.  It was called 'c' in earlier
versions (and still is).

> Also, what is wrong with python 2.6 and pylons?  Deprecation warnings
> and errors occur on the same import.  I hesitate to show all the
> errors here as I read somewhere that 2.6 is not supported in linux.
> Is this true?

The Pylons package in Ubuntu 9.04 (and I guess the Debian equivalent)
is useless.  The distros upgraded the default Python version but
forgot to check Pylons' compatibility with it.  Pylons 0.9.7 is
compatible with Python 2.6, but it it was released too late to get
into the distros.  This will be rectified in the next distro releases.

All virtualenvs have an 'activate_this.py' script, which I believe is
for cases like mod_wsgi that have problems with regular virtualenvs.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to