[Planet] Missing!
Sam Ruby
rubys at intertwingly.net
Sun Jul 1 13:26:16 EST 2007
Juan José Alonso. wrote:
>
> 2) My second problem is into a webhost (dreamhost isp), i have an update
> cgi scripts:
>
> #!/usr/bin/python
> import os
> def main():
> print "Content-type: text/html"
> print
> print "<html><head>"
> print "<title>Updated!</title>"
> print "</head><body>"
> print "Feed updated!"
> print "%s" % os.system("python planetario/planet.py
> examples/fancy/config.ini")
> print "</body></html>"
> if __name__ == "__main__":
> main()
>
> This script run python planetario/planet.py examples/fancy/config.ini
> with the same default config.ini that in my machine (windows xp sp2) but
> no create any html into output dir, i see the error.log of the server
> and see this:
>
> [Sat Jun 30 18:48:35 2007] [error] [client 84.122.200.187
> <http://84.122.200.187>] Configuration missing [Planet] section.
Try adding "print os.getcwd()" to your script. You may need to either
specify the full path to examples/fancy/config.ini or add a call to
os.chdir() to make the above script work.
- Sam Ruby
More information about the devel
mailing list