Indlæg
af sandr »
Hi Anders.
One step forward :-)
Now I got the RRD-database.
And the pellmoncli.py program is not less than genius !!
But I still have some trouble with the web-part.
I'm getting this error in my browser-window:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "./pellmonwebb.py", line 206, in index
tmpl = lookup.get_template("index.html")
File "/usr/lib/python2.7/dist-packages/mako/lookup.py", line 239, in get_template
"Cant locate template for uri %r" % uri)
TopLevelLookupException: Cant locate template for uri 'index.html'
And I get this error on my RPI:
ACCEPT: text/html, application/xhtml+xml, */*
USER-AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
ACCEPT-LANGUAGE: da-DK
ACCEPT-ENCODING: gzip, deflate
[25/Feb/2013:18:26:15] HTTP Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in re spond
response.body = self.handler()
File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in __ call__
return self.callable(*self.args, **self.kwargs)
File "./pellmonwebb.py", line 206, in index
tmpl = lookup.get_template("index.html")
File "/usr/lib/python2.7/dist-packages/mako/lookup.py", line 239, in get_templa te
"Cant locate template for uri %r" % uri)
TopLevelLookupException: Cant locate template for uri 'index.html'
192.168.0.197 - - [25/Feb/2013:18:26:15] "GET / HTTP/1.1" 500 1528 "" "Mozilla/5. 0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
BR
Steen