Cheetah error

5 views
Skip to first unread message

John Speno

unread,
Jul 5, 2005, 3:49:19 PM7/5/05
to subway...@googlegroups.com
I'm trying the latest noteboard example and getting this exception:


Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/cherrypy/
_cphttptools.py", line 167, in run
main()
File "/usr/local/lib/python2.4/site-packages/cherrypy/
_cphttptools.py", line 327, in main
body = func(*(virtualPathList + cherrypy.request.paramList),
File "/home/speno/src/noteboard/controller/root.py", line 6, in index
return view.index(notes=model.Note.select())
File "/usr/local/lib/python2.4/site-packages/subway/view.py", line
92, in __call__
content = unicode(self.template_class(searchList=sl))
File "/usr/local/lib/python2.4/site-packages/subway/view.py", line
144, in _get_template_class
return get_cheetah_template(self.filename)
File "/usr/local/lib/python2.4/site-packages/subway/view.py", line
61, in get_cheetah_template
a = imp.load_module(tname, fp, pathname, description)
File "/home/speno/src/noteboard/view/root/index_tmpl.py", line 31,
in ?
from site import site
ImportError: cannot import name site

I start subway using python scripts/start.py and it starts up
normally. Any ideas on what
the error is?

Thanks!

Peter Hunt

unread,
Jul 5, 2005, 7:32:42 PM7/5/05
to subway...@googlegroups.com
I don't know, it works for me. The problem comes from using #extends. Could you post more information? For now, try using revision 146, it doesn't use #extends.

HTH,

Peter Hunt

John Speno

unread,
Jul 6, 2005, 9:47:42 AM7/6/05
to subway...@googlegroups.com

On Jul 5, 2005, at 7:32 PM, Peter Hunt wrote:

> I don't know, it works for me. The problem comes from using
> #extends. Could
> you post more information? For now, try using revision 146, it
> doesn't use
> #extends.

I think I was using rev 146 at the time. Using 149 shows the same error.

And view/root/index.html does contain "#extends view.site"

More information? python 2.4.1 and the latest checkouts for all of
subway's
dependencies on Solaris 2.8.

John Speno

unread,
Jul 6, 2005, 4:08:31 PM7/6/05
to subway...@googlegroups.com
The problem was that the view/root/*.html files have windows style
line endings.

I fixed it by removing them (perl has one use anyway).

Let's get the subversion repository fixed to not send me windows line
endings now.

This might tell us how to do that:
http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.5


deelan

unread,
Jul 8, 2005, 4:01:39 AM7/8/05
to subway...@googlegroups.com

John Speno wrote:

> I fixed it by removing them (perl has one use anyway).
>
> Let's get the subversion repository fixed to not send me windows line
> endings now.
>

ah, maybe this is causing other problems as well. i'm having a strange
syntax error on the textile module that weblog uses. the module seems
to get corrupted occasionaly -- but no one is modifing it.

Peter Hunt

unread,
Jul 8, 2005, 12:08:21 PM7/8/05
to subway...@googlegroups.com
Yes, I've noticed that and I had to replace it...

Could you try putting it up again?

deelan

unread,
Jul 8, 2005, 1:03:53 PM7/8/05
to subway...@googlegroups.com

Peter Hunt wrote:
> Yes, I've noticed that and I had to replace it...
>
> Could you try putting it up again?

not immediately. i'm leaving, i'll back on sunday evening (CET).

deelan

unread,
Jul 10, 2005, 12:10:48 PM7/10/05
to subway...@googlegroups.com
deelan wrote:
> not immediately. i'm leaving, i'll back on sunday evening (CET).

done.

Reply all
Reply to author
Forward
0 new messages