Dvorapa created this task.
Dvorapa added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to reproduce**
1. Clone Pywikibot
2. Run `python pwb.py generate_user_config`
3. Fill in family, lang, username
4. no to another site addition
5. yes to generate bot passwords
6. fill in bot title and password
7. hit enter
**Expected behavior**
It should create user_config.py and user_password.py, both with filled in
content.
**Current behavior**
'/home/pavel/core/user-config.py' written.
Traceback (most recent call last):
File "pwb.py", line 232, in <module>
if not main():
File "pwb.py", line 225, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 94, in run_python_file
main_mod.__dict__)
File "./generate_user_files.py", line 467, in <module>
main()
File "./generate_user_files.py", line 459, in main
force=force)
File "./generate_user_files.py", line 381, in create_user_config
pywikibot.tools.file_mode_checker(_fncpass, mode=0o600,
File "/home/pavel/core/pywikibot/tools/__init__.py", line 1989, in
__getattr__
return getattr(self._module, attr)
AttributeError: module 'pywikibot' has no attribute 'tools'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
The user-confog.py is created and filled in, but user_password.py is only
created blank, nothing inputted is filled into the file.
TASK DETAIL
https://phabricator.wikimedia.org/T219762
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Dvorapa
Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs