Pywikibot 3.1.dev0 (Python 3.8.2) on Linux fails to login on new Fandom (Wikia) technology platform called UCP (MediaWiki 1.33.3) with error:
[rail@rail-pc pwb]$ python pwb.py login Traceback (most recent call last): File "pwb.py", line 389, in <module> if not main(): File "pwb.py", line 381, in main run_python_file(filename, File "pwb.py", line 100, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "./scripts/login.py", line 188, in <module> main() File "./scripts/login.py", line 158, in main site = pywikibot.Site() File "/home/rail/pwb/pywikibot/tools/__init__.py", line 1790, in wrapper return obj(*__args, **__kw) File "/home/rail/pwb/pywikibot/__init__.py", line 1242, in Site fam = Family.load(fam) File "/home/rail/pwb/pywikibot/tools/__init__.py", line 1790, in wrapper return obj(*__args, **__kw) File "/home/rail/pwb/pywikibot/family.py", line 1000, in load assert all(x in NAME_CHARACTERS for x in fam), \ AssertionError: Name of family ucp-sandbox must be ASCII characters and digits CRITICAL: Exiting due to uncaught exception <class 'AssertionError'>
New Fandom platform probably causes more issues.
Tested wikis
Family files generated automatically with generate_family_file.py
- https://wreckit-woodhouse.fandom.com/ (ucp-woodhouse)
- https://rail-ucp.fandom.com/pl/ (ucp-sandbox)
user-config.py
# -*- coding: utf-8 -*- family = # family mylang = # lang usernames['ucp-sandbox']['pl'] = # my bot account usernames['ucp-woodhouse']['en'] = # my bot account password_file = 'user-password.py' console_encoding = 'utf-8'