zhuyifei1999 added a comment.

File "C:\Users\yerpc\Documents\Wiki\Scripts\MakeScoreTable.py", line 877, in CalculateStatisticsForLang
  wiki = pywikibot.Site(lang, 'wikipedia')

$ python pwb.py shell
family and mylang are not set.
Defaulting to family='test' and mylang='test'.
Welcome to the Pywikibot interactive shell!
>>> pywikibot.Site('atj', 'wikipedia')
APISite("atj", "wikipedia")
>>> 

Still can't reproduce.

Considering that your traceback does not indicate it being started by pwb.py, I suspect that, although you have updated the repo, the 'installed' one in C:\Program Files (x86)\Python27\lib\site-packages\pywikibot\ remain outdated. The version that is shown by pwb.py version shows the repo version and does not reflect the installed version in site-packages.


TASK DETAIL
https://phabricator.wikimedia.org/T202117

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, pywikibot-bugs-list, Yerpo, Aklapper, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to