Fwd: [Planet] Missing!
Juan José Alonso.
kernel.no.found at gmail.com
Wed Jul 4 12:07:46 EST 2007
mmm my dir tree is this
$HOME
|
|--- www.dotpy.net (public apache dir)
| |
| |---- planetario (output dir)
|
|--- planet (planet main software dir)
|
| --planet (a dir with planet code)
|--- examples
|
|---- fancy
|
|--- config.ini
i try launch planet.py from $home dir using:
python planet/planet.py planet/examples/fancy/config.ini
but get this error:
Traceback (most recent call last):
File "planet/planet.py", line 167, in ?
main()
File "planet/planet.py", line 163, in main
planet_link, planet_feed, owner_name, owner_email)
File "/usr/lib/python2.3/site-packages/PIL/__init__.py", line 263, in
generate_all_files
File "/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py",
line 222, in prepare
File "/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py",
line 296, in compile
File "/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py",
line 987, in compile
File "/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py",
line 1037, in read
planet.htmltmpl.TemplateError: Htmltmpl error: IO error while reading
template ' atom.xml.tmpl': (2) No such file or directory
my config.ini is this:
http://rafb.net/p/TOTKJQ65.html
im trying setting the path to atom template that are in /examples dir.
Also this is rare
"/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py"
The path of htmlhtml.py is:
/home/.beezneez/dotpy/planet/planet/htmltmpl.py
not:
"/home/.beezneez/dotpy/www.dotpy.net/planetario/planet/htmltmpl.py"
planetario dir only is setted as outut dir, and only contain a index.html,
the planet.css and images.
what is the problem then? on examples i have all feeds templates formats.
Thank alls.
2007/7/1, Sam Ruby <rubys at intertwingly.net>:
>
> Juan Jos=E9 Alonso. wrote:
> > yes, i use it fot test, and the error is printed by planet.py, the
> > script planet.py is executed right.
> > dont know why dont run fine :-/
>
> Try adding "print os.getcwd ()" to your script. Something like this:
>
> def main():
> print "Content-type: text/html"
> print
> print "<html><head>"
> print "<title>Updated!</title>"
> print "</head><body>"
> print "Feed updated!"
> print "Current working directory:"
> print os.getcwd()
> print "%s" % os.system("python planetario/planet.py
> examples/fancy/config.ini")
> print "</body></html>"
>
> You may need to specify the full path to examples/fancy/config.ini.
> Something like this:
>
> print "%s" % os.system("python planetario/planet.py
> planetario/examples/fancy/config.ini")
>
> or
>
> print "%s" % os.system("python planetario/planet.py
> c:\\planetario\\examples\\fancy\\config.ini")
>
> or you may need to add a call to "os.chdir()" to your script
>
> os.chdir(r"c:\planetario")
> print "%s" % os.system("python planetario/planet.py
> examples/fancy/config.ini")
>
> - Sam Ruby
>
-- =
Juan Jos=E9 Alonso. KarlsBerg.
eMail: kernel.no.found at gmail.com
MSN: kernel.no.found at gmail.com
-- =
Juan Jos=E9 Alonso. KarlsBerg.
eMail: kernel.no.found at gmail.com
MSN: kernel.no.found at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/devel/attachments/20070704/5c5e452b/attachment.htm
More information about the devel
mailing list