Last modified: 2014-07-24 12:52:24 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 T57179, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55179 - cosmetic_changes.py chokes on big article
cosmetic_changes.py chokes on big article
Status: REOPENED
Product: Pywikibot
Classification: Unclassified
Cosmetic changes (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:38 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-24 12:52 UTC (History)
2 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:38:13 UTC
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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:38:15 UTC
Have you checked this issue with cosmetic changes disabled?
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:38:16 UTC
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.
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:38:18 UTC
Script doesn't stop if cosmetic changes are disabled.

My hosting provider is using Debian, and they have not yet updated Python..
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:38:20 UTC
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.
Comment 5 Amir Ladsgroup 2014-07-24 12:36:40 UTC

*** This bug has been marked as a duplicate of bug 55219 ***
Comment 6 Ricordisamoa 2014-07-24 12:52:24 UTC
This is a cosmetic_changes-specific issue, not a network issue.
It is perhaps a duplicate of bug 61996.

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


Navigation
Links