| valhallasw renamed this task from "Creating new family creates inappropriate user_config file" to "generate_user_files always sets en.wikipedia as default family/code". valhallasw edited projects, added Pywikibot-core; removed pywikibot-bots-FLOSSbot. valhallasw updated the task description. (Show Details) Herald added a subscriber: pywikibot-bugs-list. |
CHANGES TO TASK DESCRIPTION
Steps to reproduce:
- `rm user-config.py`
- `python generate_user_files.py`
- family: commons
- lang: beta
- username: fdsa
- python3 generate_family_file.py- no other projects
- Fill out info using familywiki as name- no botpassword
- python3 pwb.py login`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:
```
- ERROR: Username for family = 'wikipedia:en is undefined. If you have an account for that'
# The language code of the site, please add a line to user-config.py we're working on.
mylang = 'en'
```
- nano user-config.py
on commit 29f503efc3b009b0318add67e076571f81e88170.
- `rm user-config.py`
- `python generate_user_files.py`
- family: commons
- lang: beta
- username: fdsa
- python3 generate_family_file.py- no other projects
- Fill out info using familywiki as name- no botpassword
- python3 pwb.py login`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:
```
- ERROR: Username for family = 'wikipedia:en is undefined. If you have an account for that'
# The language code of the site, please add a line to user-config.py we're working on.
mylang = 'en'
```
- nano user-config.py
...
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.6on commit 29f503efc3b009b0318add67e076571f81e88170.
TASK DETAIL
EMAIL PREFERENCES
To: valhallasw
Cc: pywikibot-bugs-list, Framawiki, Aklapper, Pywikibugs, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy, dachary, Metamorforme42
Cc: pywikibot-bugs-list, Framawiki, Aklapper, Pywikibugs, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy, dachary, Metamorforme42
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
