#5 invalid syntax in sitemap_gen.py

closed
nobody
None
5
2005-07-03
2005-06-07
Anonymous
No

When I run the command I see a syntax error as described below.

python sitemap_gen.py --config=/home/public_html/dating/
sitemap_gen-1.0/config.xml --testing
File "sitemap_gen.py", line 474
linenum += 1
^
SyntaxError: invalid syntax

What change should I make to remove this error?

Discussion

  • Wyvern
    Wyvern
    2005-07-03

    • status: open --> closed
     
  • Wyvern
    Wyvern
    2005-07-03

    Logged In: YES
    user_id=1281107

    The trouble is in the version of Python. This issue comes
    up when Python 1.x is used to run the script. You may need
    to find the directory Python 2.x is installed in on your
    server and path directly to it.

    I'm going to nudge you towards the Google Sitemaps Groups
    page though. The community there is larger and you'll
    probably get faster and better responses.

    http://groups-beta.google.com/group/google-sitemaps