Hello everyone. I've been using kid for about two weeks. In this time I've rewritten my small homepage from tclhtml to kid. Two days ago everything was working fine.
But today kid decided to not find the layout file :o. I didn't change anything in the code or in the directory structure or anything. I've made system update but nor python nor kid was updated (maybe some dependency library was or sth, I don't know). The problem is similar to this one: http://www.kid-templating.org/trac/ticket/193 Except that specifying the full (not relative) path doesn't do the job. > File "/home/necui/www/necui2/highLayout.py", line 116, in _pull > File "/usr/lib/python2.5/site-packages/kid/template_util.py", > line 135, in base_class_layout + '\nwhile processing layout=%r' % > layout).lstrip()) kid.template_util.TemplateLayoutError: Could > not open '/home/necui/www/necui2/lowLayout.kid' Template file > "'lowLayout.kid'" not found > while processing layout="'lowLayout.kid'" > Error location in template file > '/home/necui/www/necui2/highLayout.kid' on line 20: > </html> When I do strace, I can see that kid is trying to find a file called 'lowLayout.kid' and not lowLayout.kid: (...) > stat64("/usr/lib/python2.5/site-packages/kid/parser.py", > {st_mode=S_IFREG|0644, st_size=15370, ...}) = 0 > stat64("/usr/lib/python2.5/site-packages/kid/parser.py", > {st_mode=S_IFREG|0644, st_size=15370, ...}) = 0 > stat64("/home/necui/www/necui2/\'lowLayout.kid\'", 0xbfc392b8) = > -1 ENOENT (No such file or directory) > stat64("/home/necui/www/necui2/\'lowLayout.kid\'.kid", > 0xbfc392b8) = -1 ENOENT (No such file or directory) > stat64("/home/necui/www/necui2/\'lowLayout.kid\'", 0xbfc392b8) = > -1 ENOENT (No such file or directory) > stat64("/home/necui/www/necui2/\'lowLayout.kid\'.kid", > 0xbfc392b8) = -1 ENOENT (No such file or directory) > stat64("/usr/lib/python2.5/site-packages/kid/__init__.py", > {st_mode=S_IFREG|0644, st_size=16829, ...}) = 0 (...) Do you have any suggestions? What can be wrong? The line in code looks like this: > <html py:layout="'lowLayout.kid'" > xmlns:py="http://purl.org/kid/ns#"> Regards, Rafal Jedruszek. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss