Forum Moderators: phranque

Message Too Old, No Replies

'can't open file' error - what could be causes of this?

         

Trisha

4:21 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Not sure which forum to ask this in. I'm trying to set up the google site maps thing and when I try to run the python script:

python sitemap_gen.py --config=config.xml --testing

and I get a message that says:

can't open file 'sitemap_gen.py'

I tried changing permissions for the file but that didn't help. That's the only thing I could think of for why a file may not be able to be opened.

I don't think it is a problem with the script, so I didn't see a reason to ask in the Google forum. It seems to be related to something on the side of the server though. I emailed my host, but haven't heard back, and I don't know when I will.

Any ideas at all?

jdMorgan

9:23 pm on Aug 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Make sure the script is located in a directory where script execution is allowed, for example, by Options ExecCGI. Since the script is written in Python, youl mioght also want to check some Python forums.

Jim

Trisha

9:37 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Make sure the script is located in a directory where script execution is allowed

Maybe that is part of it. I was under the impression you needed to put everything in a place accessible by the web, but maybe not. I'll try that. Thanks!