Skip to content

Instantly share code, notes, and snippets.

@priyankajayaswal1
Created March 6, 2015 06:31
Show Gist options
  • Save priyankajayaswal1/1fcac8d179251c0612cf to your computer and use it in GitHub Desktop.
Save priyankajayaswal1/1fcac8d179251c0612cf to your computer and use it in GitHub Desktop.
➜ pywikibot-core git:(standardize_interwiki) ✗ python pwb.py scripts/standardize_interwiki.py -lang:test -family:test
Loading !...
No interwiki found.
Loading %...
WARNING: /home/innovator/pywikibot-core/pywikibot/family.py:900: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Traceback (most recent call last):
File "pwb.py", line 213, in <module>
run_python_file(filename, argv, argvu, file_package)
File "pwb.py", line 82, in run_python_file
main_mod.__dict__)
File "./scripts/standardize_interwiki.py", line 98, in <module>
main()
File "./scripts/standardize_interwiki.py", line 76, in main
newtext = textlib.replaceLanguageLinks(oldtext, new, site=site)
File "/home/innovator/pywikibot-core/pywikibot/textlib.py", line 556, in replaceLanguageLinks
s = interwikiFormat(new, insite=site)
File "/home/innovator/pywikibot-core/pywikibot/textlib.py", line 640, in interwikiFormat
insite=insite)
TypeError: 'unicode' object is not callable
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
➜ pywikibot-core git:(standardize_interwiki) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment