4 Aug 2011 21:47
'index.html.tmpl' : (2) No such file or directory
Chris Kepley <kepleycl <at> gmail.com>
2011-08-04 19:47:42 GMT
2011-08-04 19:47:42 GMT
Planet is not discovering index.html.tmpl
INFO:planet.runner:Processing template etc/planet-2.0/eatstowest/index.html.tmpl
Traceback (most recent call last):
File "./planet.py", line 167, in <module>
main()
File "./planet.py", line 163, in main
planet_link, planet_feed, owner_name, owner_email)
File "/etc/planet-2.0/planet/__init__.py", line 263, in generate_all_files
template = manager.prepare(os.path.basename(template_file))
File "/etc/planet-2.0/planet/htmltmpl.py", line 222, in prepare
compiled = self.compile(file)
File "/etc/planet-2.0/planet/htmltmpl.py", line 296, in compile
self._debug).compile(file)
File "/etc/planet-2.0/planet/htmltmpl.py", line 987, in compile
tokens = self.parse(self.read(file))
File "/etc/planet-2.0/planet/htmltmpl.py", line 1038, in read
"(%d) %s" % (filename, errno, errstr)
planet.htmltmpl.TemplateError: Htmltmpl error: IO error while reading template 'index.html.tmpl': (2) No such file or directory
Traceback (most recent call last):
File "./planet.py", line 167, in <module>
main()
File "./planet.py", line 163, in main
planet_link, planet_feed, owner_name, owner_email)
File "/etc/planet-2.0/planet/__init__.py", line 263, in generate_all_files
template = manager.prepare(os.path.basename(template_file))
File "/etc/planet-2.0/planet/htmltmpl.py", line 222, in prepare
compiled = self.compile(file)
File "/etc/planet-2.0/planet/htmltmpl.py", line 296, in compile
self._debug).compile(file)
File "/etc/planet-2.0/planet/htmltmpl.py", line 987, in compile
tokens = self.parse(self.read(file))
File "/etc/planet-2.0/planet/htmltmpl.py", line 1038, in read
"(%d) %s" % (filename, errno, errstr)
planet.htmltmpl.TemplateError: Htmltmpl error: IO error while reading template 'index.html.tmpl': (2) No such file or directory
Why is planet not reading the index template? I stored the file and had the configuration file look for the index template in both the 'basic' subdirectory and in the eatstowest directory for the site with the rest of the configuration files:
# template_files: Space-separated list of output template files
template_files = etc/planet-2.0/eatstowest/index.html.tmpl etc/planet-2.0/eatstowest/atom.xml.tmpl etc/planet-2.0/eatstowest/rss20.xml.tmpl etc/planet-2.0/eatstowest/rss10.xml.tmpl etc/planet-2.0/eatstowest/opml.xml.tmpl etc/planet-2.0/eatstowest/basic/index.html.tmpl
template_files = etc/planet-2.0/eatstowest/index.html.tmpl etc/planet-2.0/eatstowest/atom.xml.tmpl etc/planet-2.0/eatstowest/rss20.xml.tmpl etc/planet-2.0/eatstowest/rss10.xml.tmpl etc/planet-2.0/eatstowest/opml.xml.tmpl etc/planet-2.0/eatstowest/basic/index.html.tmpl
# The following provide defaults for each template:
# output_dir: Directory to place output files
# items_per_page: How many items to put on each page
# days_per_page: How many complete days of posts to put on each page
# This is the absolute, hard limit (over the item limit)
# date_format: strftime format for the default 'date' template variable
# new_date_format: strftime format for the 'new_date' template variable
# encoding: output encoding for the file, Python 2.3+ users can use the
# special "xml" value to output ASCII with XML character references
# locale: locale to use for (e.g.) strings in dates, default is taken from your
# system. You can specify more locales separated by ':', planet will
# use the first available one
output_dir = /var/www/index.html
items_per_page = 60
days_per_page = 0
date_format = %B %d, %Y %I:%M %p
new_date_format = %B %d, %Y
encoding = utf-8
# locale = C
# output_dir: Directory to place output files
# items_per_page: How many items to put on each page
# days_per_page: How many complete days of posts to put on each page
# This is the absolute, hard limit (over the item limit)
# date_format: strftime format for the default 'date' template variable
# new_date_format: strftime format for the 'new_date' template variable
# encoding: output encoding for the file, Python 2.3+ users can use the
# special "xml" value to output ASCII with XML character references
# locale: locale to use for (e.g.) strings in dates, default is taken from your
# system. You can specify more locales separated by ':', planet will
# use the first available one
output_dir = /var/www/index.html
items_per_page = 60
days_per_page = 0
date_format = %B %d, %Y %I:%M %p
new_date_format = %B %d, %Y
encoding = utf-8
# locale = C
A question similar to this was asked and not replied in November 2010. Thanks for any help.
-- -- devel mailing list devel <at> lists.planetplanet.org http://lists.planetplanet.org/mailman/listinfo/devel
RSS Feed