Steps to reproduce:
- python3 generate_family_file.py- `rm user-config.py`
- Fill out info using familywiki as name- `python generate_user_files.py`
- python3 pwb.py login- family: commons
- lang: beta
- username: fdsa
- ERROR: Username for wikipedia:en is undefined. If you have an account for that site, please add a line to user-config.py- 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 using the [[ https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation | latest pywikibot]] as of 6/6/2018 on Ubuntu 17.10 and python 3.6
on commit 29f503efc3b009b0318add67e076571f81e88170.