[Pywikipedia-l] [ pywikipediabot-Bugs-1847781 ] crah of replace.py

SourceForge.net noreply at sourceforge.net
Mon Dec 10 10:53:37 UTC 2007


Bugs item #1847781, was opened at 2007-12-10 11:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1847781&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Crochet (crochet_david)
Assigned to: Nobody/Anonymous (nobody)
Summary: crah of replace.py

Initial Comment:
python verbose :

dcrochet at linux-fxgk:~/pywikipedia> python replace.py -xml:frwikiversity.xml "[[fr:Catégorie:" "[[Catégorie:"
Checked for running processes. 1 processes currently running, including the current process.
Reading XML dump...
Getting 2 pages from wikiversity:fr...
No changes were necessary in [[Modèle:Documentation modèle compliqué]]


>>> Modèle:Traduit de <<<
- [[fr:Catégorie:Modèle de l'espace "Discussion"|Traduit de]]
+ [[Catégorie:Modèle de l'espace "Discussion"|Traduit de]]
- [[fr:Catégorie:Modèle bandeau|Traduit de]]
+ [[Catégorie:Modèle bandeau|Traduit de]]
- [[fr:Catégorie:Traduction]]
+ [[Catégorie:Traduction]]

Do you want to accept these changes? ([y]es, [N]o, [a]ll) y
Waiting for 1 pages to be put. Estimated time remaining: 0:00:10
Getting a page to check if we're logged in on wikiversity:fr
Saving page [[Modèle:Traduit de]] failed:
Traceback (most recent call last):
  File "/home/dcrochet/pywikipedia/wikipedia.py", line 5465, in async_put
    page.put(newtext, comment, watchArticle, minorEdit, force)
  File "/home/dcrochet/pywikipedia/wikipedia.py", line 1160, in put
    newtext = ccToolkit.change(newtext)
  File "/home/dcrochet/pywikipedia/cosmetic_changes.py", line 98, in change
    text = self.translateAndCapitalizeNamespaces(text)
  File "/home/dcrochet/pywikipedia/cosmetic_changes.py", line 149, in translateAndCapitalizeNamespaces
    thisNs = family.namespace(self.site.lang, nsNumber)
  File "/home/dcrochet/pywikipedia/family.py", line 2394, in namespace
    raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 100 in language fr unknown'



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1847781&group_id=93107



More information about the Pywikipedia-l mailing list