#1 errors on output

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

> python sitemap_gen.py --config=./config.xml --testing
sitemap_gen.py:551: SyntaxWarning: local name
'consumer' in 'ProduceURLs' shadows use of 'consumer'
as global in nested scope 'PerFile'
def ProduceURLs(self, consumer):
sitemap_gen.py:551: SyntaxWarning: local name
'root_path' in 'ProduceURLs' shadows use of 'root_path'
as global in nested scope 'PerFile'
def ProduceURLs(self, consumer):
sitemap_gen.py:551: SyntaxWarning: local name
'root_URL' in 'ProduceURLs' shadows use of 'root_URL'
as global in nested scope 'PerFile'
def ProduceURLs(self, consumer):
Traceback (most recent call last):
File "sitemap_gen.py", line 211, in ?
class URL(object):
NameError: name 'object' is not defined

any clue what this means or how to fix it?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    try using python2.2 instead of python
    |-<:)

     
  • Nobody/Anonymous

    Logged In: NO

    or try this instead:
    ./sitemap_gen.py --config=./config.xml --testing
    from the directory where sitemap lives
    or
    /path/to/sitemap/python sitemap_gen.py --config=./config.xml
    --testing
    for cron

     
  • Wyvern

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

    Wyvern - 2005-07-03

    Logged In: YES
    user_id=1281107

    Did this get resolved?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks