Sorry for this.
I named my test file mako.py. So when the program tried to import mako, it
got confused.


--
Tomás A. Schertel
----------------------------------------------
Linux Registered User #304838
Arch Linux User
http://www.archlinux-br.org/
----------------------------------------------


On Fri, Oct 7, 2011 at 11:15, Tomás Acauan Schertel <[email protected]>wrote:

> I'm trying the Mako example from webpy mako's example page [1], but I keep
> getting this:
>
> [tomas@archbook mako]$ python2 mako.py
> Traceback (most recent call last):
>   File "mako.py", line 20, in <module>
>     output_encoding='utf-8',
>   File "/usr/lib/python2.7/site-packages/web/contrib/template.py", line
> 107, in __init__
>     from mako.lookup import TemplateLookup
>   File "/home/tomas/Projetos/testes/webpy/mako/mako.py", line 20, in
> <module>
>     output_encoding='utf-8',
>   File "/usr/lib/python2.7/site-packages/web/contrib/template.py", line
> 107, in __init__
>     from mako.lookup import TemplateLookup
> ImportError: No module named lookup
>
> I have mako installed and if I try this import in a bpython session, import
> works fine.
>
> [1] - http://webpy.org/cookbook/template_mako
>
>
> --
> Tomás A. Schertel
> ----------------------------------------------
> Linux Registered User #304838
> Arch Linux User
> http://www.archlinux-br.org/
> ----------------------------------------------
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to