Log from a debug run on Ubuntu 12.04
The version worked for some files and crash with a similar error before I decided to update to the latest core version. Now it does not work at all.
$python pwb.py replace.py -regex '(?s)^(.*)$' "{{యాంత్రిక అనువాదం}}\1" -file:"/home/arjun/RCourse/tewsn/gtp2mk2.txt" -simulate -debug -v -log The base directory is /home/arjun/corenew/core === Pywikibot framework v2.0 -- Logging header === COMMAND: ['replace.py', '-regex', '(?s)^(.*)$', '{{\xe0\xb0\xaf\xe0\xb0\xbe\xe0\xb0\x82\xe0\xb0\xa4\xe0\xb1\x8d\xe0\xb0\xb0\xe0\xb0\xbf\xe0\xb0\x95 \xe0\xb0\x85\xe0\xb0\xa8\xe0\xb1\x81\xe0\xb0\xb5\xe0\xb0\xbe\xe0\xb0\xa6\xe0\xb0\x82}}\\1', '-file:/home/arjun/RCourse/tewsn/gtp2mk2.txt', '-simulate', '-debug', '-v', '-log'] DATE: 2015-05-14 03:56:51.045862 UTC VERSION: [https] r-pywikibot-core.git (41901c7, g5504, 2015/05/11, 20:05:08, n/a) SYSTEM: ('Linux', 'arjun-945GCM-S2L', '3.2.48-ctl471', '#1 SMP Thu Aug 15 09:42:30 IST 2013', 'i686') CONFIG FILE DIR: /home/arjun/corenew/core PACKAGES: Tkinter (/usr/lib/python2.7/lib-tk/Tkinter.pyc) = $Revision: 81008 $ distutils (/usr/lib/python2.7/distutils/) = 2.7.3 email (/usr/lib/python2.7/email/) = 4.0.3 json (/usr/lib/python2.7/json/) = 2.0.9 logging (/usr/lib/python2.7/logging/) = 0.5.1.2 mpl_toolkits (/usr/lib/pymodules/python2.7/mpl_toolkits/) = ?? mwparserfromhell: No module named mwparserfromhell pickle (/usr/lib/python2.7/pickle.pyc) = $Revision: 72223 $ pywikibot ([path unknown]) = ?? re (/usr/lib/python2.7/re.pyc) = 2.2.1 setuptools (/usr/lib/python2.7/dist-packages/setuptools/) = 0.6 urllib (/usr/lib/python2.7/urllib.pyc) = 1.17 urllib2 (/usr/lib/python2.7/urllib2.pyc) = 2.7 MODULES: /home/arjun/corenew/core/pywikibot/textlib.py 462afa2 2015-05-10 17:15:28.994976 /home/arjun/corenew/core/pywikibot/data/api.py c6cbf67 2015-05-10 17:15:28.922976 /home/arjun/corenew/core/pywikibot/userinterfaces/__init__.py 43eceeb 2015-05-10 17:15:28.998976 /home/arjun/corenew/core/pywikibot/i18n.py 77e57c6 2015-05-10 17:15:28.946976 /home/arjun/corenew/core/pywikibot/comms/threadedhttp.py 69cf1f8 2015-05-13 15:21:59.643962 /home/arjun/corenew/core/pywikibot/date.py 262e786 2015-05-10 17:15:28.930976 /home/arjun/corenew/core/pywikibot/data/__init__.py 44183c7 2015-05-10 17:15:28.914976 /home/arjun/corenew/core/pywikibot/fixes.py d84788c 2015-05-10 17:15:28.946976 /home/arjun/corenew/core/pywikibot/exceptions.py 4a30d02 2015-05-13 15:21:59.655962 /home/arjun/corenew/core/pywikibot/site.py eae3500 2015-05-13 15:21:59.699962 /home/arjun/corenew/core/pywikibot/bot.py de68ebd 2015-05-10 17:15:28.902976 /home/arjun/corenew/core/pywikibot/__init__.py d6ea7ec 2015-05-13 15:21:59.639962 /home/arjun/corenew/core/pywikibot/throttle.py 4157254 2015-05-10 17:15:28.994976 /home/arjun/corenew/core/pywikibot/page.py db5a1ef 2015-05-13 15:21:59.675962 /home/arjun/corenew/core/pywikibot/editor.py 7d0aa1b 2015-05-10 17:15:28.934976 /home/arjun/corenew/core/pywikibot/family.py b978cc6 2015-05-13 15:21:59.663963 /home/arjun/corenew/core/pywikibot/plural.py c9edb6b 2015-05-10 17:15:28.970976 /home/arjun/corenew/core/pywikibot/version.py 8de383e 2015-05-10 17:15:29.010976 /home/arjun/corenew/core/pywikibot/userinterfaces/terminal_interface.py 9a5fbf1 2015-05-10 17:15:28.998976 /home/arjun/corenew/core/pywikibot/config2.py 971b19d 2015-05-10 17:15:28.910976 /home/arjun/corenew/core/pywikibot/tools/ip.py 808c0cc 2015-05-10 17:15:28.998976 /home/arjun/corenew/core/pywikibot/comms/http.py b336a0a 2015-05-13 15:21:59.643962 /home/arjun/corenew/core/pywikibot/userinterfaces/terminal_interface_base.py 968a14b 2015-05-10 17:15:29.002976 /home/arjun/corenew/core/pywikibot/pagegenerators.py 12e7523 2015-05-13 15:21:59.679962 /home/arjun/corenew/core/pywikibot/userinterfaces/terminal_interface_unix.py 60d8cb2 2015-05-10 17:15:29.002976 /home/arjun/corenew/core/pywikibot/tools/__init__.py 692fc89 2015-05-13 15:21:59.699962 /home/arjun/corenew/core/pywikibot/diff.py 015dcbd 2015-05-10 17:15:28.934976 /home/arjun/corenew/core/pywikibot/login.py 70f3f31 2015-05-13 15:21:59.663963 /home/arjun/corenew/core/pywikibot/comms/__init__.py 747d0a7 2015-05-10 17:15:28.902976 /home/arjun/corenew/core/pywikibot/userinterfaces/transliteration.py efd4103 2015-05-10 17:15:29.010976 === === === === === === === === === === === === === === Pywikibot rd6ea7ece4f4d7867f211e16c13e62c9366627207 Python 2.7.3 (default, Dec 18 2014, 19:03:52) [GCC 4.6.3] The summary message for the command line replacements will be something like: Bot: Automated text replacement (-(?s)^(.*)$ +{{యాంత్రిక అనువాదం}}\1) Press Enter to use this automatic message, or enter a description of the changes your bot will make: +{{యాంత్రిక అనువాదం}} LOADING SITE wikipedia:te VERSION: 1.26wmf4 Found 1 wikipedia:te processes running, including this one. Retrieving 50 pages from wikipedia:te. ^CTraceback (most recent call last): File "pwb.py", line 239, in <module> if not main(): File "pwb.py", line 233, in main run_python_file(filename, argv, argvu, file_package) File "pwb.py", line 88, in run_python_file main_mod.__dict__) File "./scripts/replace.py", line 947, in <module> main() File "./scripts/replace.py", line 938, in main bot.run() File "./scripts/replace.py", line 589, in run new_text = self.apply_replacements(last_text, applied) File "./scripts/replace.py", line 516, in apply_replacements allowoverlap=self.allowoverlap, site=self.site) File "/home/arjun/corenew/core/pywikibot/textlib.py", line 308, in replaceExcept (match.group(groupID) or '') + KeyboardInterrupt Dropped throttle(s). <type 'exceptions.KeyboardInterrupt'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort All threads finished.