[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
XZise added a subscriber: XZise. XZise added a comment. Well 2.0rc3 does not have that error message and thus won't cause that failure. TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: XZise, valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
Lokal_Profil added a comment. Just got confirmed that at least one of the users used git to get the latest version of core. So whilst my problem is solved (point them to 2.0rc3) there is definitely something going on with master on windows (possibly not only 10). TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lokal_Profil Cc: Ladsgroup, XZise, valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
Lokal_Profil added a comment. Thanks. I tried a bit more and after a re-boot the above error disappears (but a lot of others appear instead). I removed the pywikibot directory, downloaded 2.0rc3, unpacked, ran `python setup.py install` and now it works. Since I didn't do the initial two installs I don't know if my routine differed. I'll try to put my hands on a fresh win 10 laptop to see if there is a step which needs to be added to the windows specific routine to make it work. Best case scenario it is simply that you need to do a re-boot at some point. TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lokal_Profil Cc: valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
XZise added a comment. Alternatively could you maybe replace the `{1}` with `{1!r}` and check if that traceback disappears? It'll probably output the error but it would be interesting to see what the actual error message is. TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: Ladsgroup, XZise, valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
valhallasw added a comment. System error code 2 / The system cannot find the file specified. This is localized, so it's 'Het systeem kan het opgegeven bestand niet vinden' in Dutch and e.g. 'Le système ne trouve pas le fichier spécifié.' in French. On Python 2, that's a str encoded in the current locale (win-1252 for French), which of course does not decode as ascii. On Python 3, it's decoded for us. TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: valhallasw Cc: Ladsgroup, XZise, valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T120222: Error installing pywikibot on Windows 10 (No handlers could be found for logger "pywiki")
jayvdb added a subscriber: jayvdb. jayvdb added a comment. In https://phabricator.wikimedia.org/T120222#1862302, @valhallasw wrote: > System error code 2 / The system cannot find the file specified. This is > localized, so it's 'Het systeem kan het opgegeven bestand niet vinden' in > Dutch and e.g. 'Le système ne trouve pas le fichier spécifié.' in French. On > Python 2, that's a str encoded in the current locale (win-1252 for French), > which of course does not decode as ascii. I believe this is caused by Windows locale being quite different. I believe on Windows, some parts of the locale are the user locale on startup, whereas on Unix the locale is `C` until `locale.setlocale(LC_ALL, '')` is invoked. Only `welcome.py` sets the locale to the user locale, but that happens after `config2.py` is loaded. My guess is that `welcome.py` on Linux would also have problems any time it encounters an `OSError`, which uses `strerror`. http://stackoverflow.com/questions/18397572/python-ioerror-strerror-is-not-unicode https://bugs.launchpad.net/bzr/+bug/273978 I havent found a good recipe for fixing this; my first guess is we should have a wrapper `Exception` subclass which does the decoding for `OSError`, and/or add special handling of `OSError` in `pywikibot.logging.exception`. TASK DETAIL https://phabricator.wikimedia.org/T120222 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: jayvdb, Ladsgroup, XZise, valhallasw, Aklapper, WereSpielChequers, StudiesWorld, Lokal_Profil, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs