Lokal_Profil created this task.
Lokal_Profil added subscribers: Lokal_Profil, WereSpielChequers.
Lokal_Profil added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION
Last weekend we tried installing pywikibot on a few windows laptops and we
ran into problems with the ones running Windows 10. (Same procedure worked for
the Windows 8 laptop).
After downloading and unpacking the zipped file, installing `requests`, and
running `python setup.py` we tried running `python pwb.py version` to trigger
generating the user_config and got the following error:
```
NOTE: 'user-config.py' was not found!
Please follow the prompts to create it:
No handlers could be found for logger "pywiki"
Traceback (most recent call last):
File "pwb.py", line 194, in <module>
[])
File "pwb.py", line 120, in run_python_file
main_mod.__dict__)
File "generate_user_files.py", line 25, in <module>
import pywikibot
File "pywikibot\__init__.py", line 37, in <module>
from pywikibot import config2 as config
File "pywikibot\config2.py", line 1059, in <module>
editor = _detect_win32_editor()
File "pywikibot\config2.py", line 903, in _detect_win32_editor
editor = _win32_extension_command(ext)
File "pywikibot\config2.py", line 890, in _win32_extension_command
extension, e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15:
ordinal not in range(128)
```
The critical line seems to be `No handlers could be found for logger
"pywiki"` as this triggers when trying to run scripts through `pwb.py` or
running `generate_user_files.py` directly.
It's unclear to me what exactly is causing this and also whether it would
always fail or if more instructions must simply be added to the documentation
for a Windows 10 install (e.g. you cannot change the character encoding of the
command prompt anymore).
Details:
`python --version: python 2.7.10`
pywikibot version: whichever was in the package/pywikibot/core_stable.zip on
2015-11-29
TASK DETAIL
https://phabricator.wikimedia.org/T120222
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Lokal_Profil
Cc: Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil,
pywikibot-bugs-list, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs