Following tutorial at https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Using_the_shared_Pywikibot_files_(recommended_setup)
$ become bd808-test2 $ export PYTHONPATH=/data/project/shared/pywikibot/stable:/data/project/shared/pywikibot/stable/scripts $ mkdir $HOME/.pywikibot $ python3 /data/project/shared/pywikibot/stable/generate_user_files.py Traceback (most recent call last): File "/data/project/shared/pywikibot/stable/generate_user_files.py", line 473, in <module> main() File "/data/project/shared/pywikibot/stable/generate_user_files.py", line 443, in main local_args = pywikibot.handle_args(args) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/bot.py", line 878, in handle_args pywikibot.Site() File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/tools/__init__.py", line 1434, in wrapper return obj(*__args, **__kw) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/__init__.py", line 1249, in Site _sites[key] = interface(code=code, fam=fam, user=user) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/tools/__init__.py", line 1517, in wrapper return obj(*new_args, **new_kwargs) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/__init__.py", line 1705, in __init__ BaseSite.__init__(self, code, fam, user) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/tools/__init__.py", line 1517, in wrapper return obj(*new_args, **new_kwargs) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/__init__.py", line 720, in __init__ if code.lower() != code: AttributeError: 'NoneType' object has no attribute 'lower' CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>