https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Web browser: --- Bug ID: 55179 Summary: cosmetics_changes.py chokes on big article Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1495/ Reported by: harriv Created on: 2012-07-22 17:20:35 Subject: cosmetics_changes.py chokes on big article Original description: I tried to create list of 55000+ page category with category.py and cosmetic_changes enabled. Script seems to hang for a very long time. If cosmetic changes are disable, this doesn't occur.
Here's stack trace when CTRL-C is pressed:
^CTraceback (most recent call last): File "category.py", line 1005, in <module> main() File "category.py", line 998, in main bot.run() File "category.py", line 536, in run self.list.put(listString, comment=self.editSummary) File "/home/users/harriv/wikibot/tmp/pywikipedia/wikipedia.py", line 2005, in put newtext = ccToolkit.change(newtext) File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 166, in change text = self.cleanUpLinks(text) File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 517, in cleanUpLinks 'startspace']) File "/home/users/harriv/wikibot/tmp/pywikipedia/pywikibot/textlib.py", line 135, in replaceExcept excMatch = dontTouchR.search(text, index) KeyboardInterrupt
Version info: Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39) Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] config-settings: use_api = True use_api_login = True unicode test: triggers problem #3081100
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Have you checked this issue with cosmetic changes disabled?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Oh and btw you should update your python to release 2.7.2/3 when you are working on several language sites due to unicode bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Script doesn't stop if cosmetic changes are disabled.
My hosting provider is using Debian, and they have not yet updated Python..
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Doesn't stop means it also hangs or runs into infinite loop?
btw. You should not use python < 2.7.2 on mediawiki sites. Do not use it with cosmetic changes and on several sites where the unicode bug is affected. In general you shouldn't use interwiki.py or featured.py which are dealing with multiple language sites.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1495
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@live.it Component|General |Cosmetic changes Summary|cosmetics_changes.py chokes |cosmetic_changes.py chokes |on big article |on big article
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ladsgroup@gmail.com Resolution|--- |DUPLICATE
--- Comment #5 from Amir Ladsgroup ladsgroup@gmail.com ---
*** This bug has been marked as a duplicate of bug 55219 ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |---
--- Comment #6 from Ricordisamoa ricordisamoa@openmailbox.org --- This is a cosmetic_changes-specific issue, not a network issue. It is perhaps a duplicate of bug 61996.
pywikipedia-bugs@lists.wikimedia.org