Bugs item #3386958, was opened at 2011-08-05 12:01 Message generated for change (Comment added) made by dabzzz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958...
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: category Group: confirmed Status: Open Resolution: None Priority: 3 Private: No Submitted By: Bzzz (dabzzz) Assigned to: Doug (bewareofdoug) Summary: add_text.py crashes for some uses of -cat
Initial Comment: Crashes without further information; works correct on category without umlaut in it. Happens on my bot account at de.hardware-wiki.org
python add_text.py -cat -text:someveryimportantmessage -up -verbose Config.py - base_dir: /home/bzzz/.pywikipedia - done. Pywikipediabot [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02) Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] Please enter the category name: Festplatten nach Größe Getting [[Kategorie:Festplatten nach Größe]]... <--exists, has subcategories and is categorized ==== API action:query ==== cmprop: title|ids|sortkey|timestamp list: categorymembers cmlimit: 500 cmtitle: Kategorie:Festplatten nach Größe ---------------- Requesting API query from HardwareWiki:de [End]
Same happens if the working category is given via -cat:Festplatten_nach_Größe or within "".
pywikipediabot is at latest svn version (9430, simplejson 242), working on Kubuntu 11.04 Natty with 2.6.38-10-generic kernel; python version.py yields: Pywikipedia [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02) Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Bzzz (dabzzz)
Date: 2011-12-21 15:30
Message: Well, the ß may be part of the problem. Same problem exists on cats like "Kategorie:SSDs nach Größe" (42 sub categories) or "Gehäuse nach Größe" (21 sc).
However, "GPU-Kühler nach Kompatibilität" (155 sc) also fails, but has no eszett in it. "Kühler für AMD Sockel AM3" (97 sc) works...
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug) Date: 2011-12-21 14:52
Message: The problem is not with umlauts per se, I have tested (r9811) on botwiki and de.hardware-wiki.org and can use both:
python add_text.py -cat -text:someevenmoreimportantmessage -up -v with the category: Für_Prüfung
and
python add_text.py -cat:Für_Prüfung -text:someveryimportantmessage -up -v
without difficulty in my bot's userspace
But I can replicate the above termination using the same cat on that wiki.
I note that the category has 40 subcats and several hundred pages. I also note that the above cat also contains an esszet.
Reducing to priority 3 as this is the only reported instance and it would appear to have a relatively minor impact (replace.py should work in lieu of add_text.py)
Assigning to self to investigate further.
It would be useful if the reporter could give more information on examples of cats where this worked (eg. did it work with esszet, did it work on similar sized cats, etc.)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958...