Dear pywiki-colleagues,today this error has happened to me - after I've replaced about 1000 pages - as I was replacing a text by replace.py (as can be seen). I can not understand what is wrong, some info?
================================
Traceback (most recent call last): File "replace.py", line 818, in <module> main() File "replace.py", line 809, in main bot.run() File "replace.py", line 398, in run new_text = self.doReplacements(new_text) File "replace.py", line 341, in doReplacements allowoverlap=self.allowoverlap) File "/home/Marco/pywikipedia/pywikibot/textlib.py", line 176, in replaceExcept match.group(groupID) + \ IndexError: no such group
================================
Thanks, Marco.
Please supply your replacements exactly as you wrote them. The likeliest reason is that you had a group with *?* and it was matched 1000 times and missing in the 1001st.
2011/8/5 Gnumarcoo gnumarcoo@gmail.com
Dear pywiki-colleagues,today this error has happened to me - after I've replaced about 1000 pages - as I was replacing a text by replace.py (as can be seen). I can not understand what is wrong, some info?
================================
Traceback (most recent call last): File "replace.py", line 818, in <module> main() File "replace.py", line 809, in main bot.run() File "replace.py", line 398, in run new_text = self.doReplacements(new_text) File "replace.py", line 341, in doReplacements allowoverlap=self.allowoverlap) File "/home/Marco/pywikipedia/pywikibot/textlib.py", line 176, in replaceExcept match.group(groupID) + \ IndexError: no such group
================================
Thanks, Marco.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org