https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
Web browser: --- Bug ID: 55240 Summary: add_text.py crashes for some uses of -cat Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: category.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1329/ Reported by: dabzzz Created on: 2011-08-05 19:01:42 Subject: add_text.py crashes for some uses of -cat Assigned to: bewareofdoug Original description: 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- 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.)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **labels**: 745454 --> category - **milestone**: --> confirmed - **priority**: 5 --> 3 - **assigned_to**: nobody --> bewareofdoug - **summary**: add_text.py crashes on usage with umlaut --> add_text.py crashes for some uses of -cat
https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- 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...
https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1329
https://bugzilla.wikimedia.org/show_bug.cgi?id=55240
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |info@gno.de
pywikipedia-bugs@lists.wikimedia.org