Last modified: 2013-12-31 14:45:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55240 - add_text.py crashes for some uses of -cat
add_text.py crashes for some uses of -cat
Status: NEW
Product: Pywikibot
Classification: Unclassified
category.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:49 UTC by Kunal Mehta (Legoktm)
Modified: 2013-12-31 14:45 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:49:19 UTC
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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:49:21 UTC
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.\)
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:49:23 UTC
- **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
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:49:24 UTC
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...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links