Steps to reproduce:
- rm user-config.py
- python generate_user_files.py
- family: commons
- lang: beta
- username: fdsa
- no other projects
- no botpassword
- python pwb.py login now results in:
pywikibot.exceptions.NoUsername: ERROR: Username for wikipedia:en is undefined. If you have an account for that site, please add a line to user-config.py: usernames['wikipedia']['en'] = 'myUsername'
The reason for this is that user-config.py contains:
family = 'wikipedia' # The language code of the site we're working on. mylang = 'en'
- nano user-config.py
- change family='wikipedia' to family='familywiki'
- python3 pwb.py login
- Now able to login
This is on commit 29f503efc3b009b0318add67e076571f81e88170.