Account Options

  1. Sign in
Google Groups Home
« Groups Home
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jws  
View profile  
 More options Jun 3 2005, 2:23 pm
From: jws
Date: Fri, 03 Jun 2005 11:23:29 -0700
Local: Fri, Jun 3 2005 2:23 pm
Subject: Synatx Errors at Runtime
If I run the script as below:

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

I get these errors

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

My server is running Python 2.1.3

Any ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul `Satoshi' Hachmann  
View profile  
 More options Jun 3 2005, 2:32 pm
From: Paul `Satoshi' Hachmann
Date: Fri, 3 Jun 2005 14:32:48 -0400
Local: Fri, Jun 3 2005 2:32 pm
Subject: Re: Synatx Errors at Runtime
2005/6/3, jws <[email address]>:

> If I run the script as below:

> $ python sitemap_gen.py --config=config.xml

> I get these errors

[snip]
>   File "sitemap_gen.py", line 211, in ?
>     class URL(object):
> NameError: name 'object' is not defined

> My server is running Python 2.1.3

> Any ideas?

Looks like you need at least Python 2.2 for this:

http://www.python.org/doc/2.2.3/whatsnew/sect-rellinks.html#SECTION00...

..and you may need higher (seems to work on 2.3, might not work on
some instances of 2.2, if they don't have XML support).

--
Fare thee well,
Paul `Satoshi' Hachmann


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jws  
View profile  
 More options Jun 3 2005, 3:40 pm
From: jws
Date: Fri, 03 Jun 2005 12:40:17 -0700
Local: Fri, Jun 3 2005 3:40 pm
Subject: Re: Synatx Errors at Runtime
Thanks Paul, that was my guess

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »