XZise created this task.
XZise added subscribers: gerritbot, Ricordisamoa, jayvdb, pywikipedia-bugs, Aklapper, XZise, Wesalius.
XZise added a project: pywikibot-core.
TASK DESCRIPTION
As described in T95671, `pywikibot.config2` does issue a warning that the types have changed. The reason for the warning of `transliteration_target` looks straight forward. It is probably manually set in the user-config as a `str` (aka `bytes`) while the original value in the config2 module is `unicode`.
But I'm not sure why the warning of `console_encoding` appears. It is read from `sys.stdout.encoding` which is `str` (even with `unicode_literals`) which would explain why it was `str` but if it changed type and the warning appears that would mean @Wesalius has set the encoding using `u'…'` which seems unlikely.
Now to fix that we could do something similar like `int`/`float` handling so that if the type was `str` or `unicode` that it also expects the other type.
TASK DETAIL
https://phabricator.wikimedia.org/T95810
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Wesalius, XZise, Aklapper, jayvdb, Ricordisamoa, gerritbot, pywikipedia-bugs
Billinghurst added a comment.
This is more than enWS, and more than a policy at one site.
I believe that there is still a place for the script.
1. The script should be considered more versatile than English Wikisource. If the other WSes (or indeed other external sites) wish to utilise the tool, then go for it
2. If enWS received a perfect djvu book that hadn't relied on OCR then why wouldn't we want to have a bot do all the work.
I cannot speak for the internals of the Proofread application, or pywiki, so you will need to determine that level of complexity
TASK DETAIL
https://phabricator.wikimedia.org/T66853
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Billinghurst
Cc: Nemo_bis, jayvdb, valhallasw, Ricordisamoa, Ladsgroup, Billinghurst, Mpaa, droid, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
There is an open pull request for a py3 problem, but our unit tests must not hit this section of code, or something
https://github.com/invisibleroads/socketIO-client/pull/60
However our unit tests fail on py 2.6
https://travis-ci.org/wikimedia/pywikibot-core/jobs/45687549
```
test_RC_pagegenerator_result (tests.pagegenerators_tests.LiveRCPageGeneratorTestCase) ... /home/travis/build/wikimedia/pywikibot-core/websocket_client-0.23.0-py2.6.egg/websocket/_core.py:223: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
message = getattr(exception, 'message', '')
No handlers could be found for logger "socketIO_client"
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated
```
TASK DETAIL
https://phabricator.wikimedia.org/T85716
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
Wesalius created this task.
Wesalius added a subscriber: Wesalius.
Wesalius added a project: Pywikibot-category.py.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
After running category.py with most recent version (Release version: 2.0b3; httplib2 version: 0.9) move I get:
```
WARNING: Type of 'console_encoding' changed
Was: <type 'str'>
Now: <type 'unicode'>
```
and if I try to move category named "Sabotáže" (notice the "ž"), the script ends with:
```
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal
not in range(128)
<type 'exceptions.UnicodeDecodeError'>
```
TASK DETAIL
https://phabricator.wikimedia.org/T95671
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Wesalius
Cc: pywikipedia-bugs, Wesalius, Aklapper
jayvdb created this task.
jayvdb assigned this task to valhallasw.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, Pywikibot-pagegenerators.
TASK DESCRIPTION
In the event of a problem in socketio_client, the log messages are discarded, with the logging layer emitting one notice to indicate that this has happened:
```
No handlers could be found for logger "socketIO_client"
```
When a logger was added for T85717 , we see that the problem was a critical disconnection, with an informative message:
```
WARNING:socketIO_client:[connection error] connection closed ()
```
I'm not sure that adding a socketIO_client" logger is the right thing to do. Ideally, pywikibot is catching exceptions and these messages are logged using the "pywiki-rcstream" logger. But we need logging soon, if we're to diagnose problems that occur.
As pywikibot is not currently catching this exception (which I believe is coming from websocket), we need to investigate that. Communication of important connection status changes might be happening via other mechanisms, like the generic handlers or by callbacks.
TASK DETAIL
https://phabricator.wikimedia.org/T86506
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw, jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
In Python 2 it's not possible to add the representation of list containing a pages containing non-ASCII characters into a Unicode string:
```
>>> import pywikibot
>>> p = pywikibot.Page(pywikibot.Site(), u'öäöä')
>>> p.title()
u'\xf6\xe4\xf6\xe4'
>>> '%r' % ([p],)
'[Page(\xc3\xb6\xc3\xa4\xc3\xb6\xc3\xa4)]'
>>> u'%r' % ([p],)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
```
This is with 41d4254c which was the commit before merging unicode_literals. With unicode_literals it seems that repr doesn't correctly work at all:
```
>>> u'%r' % ([p],)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-12: ordinal not in range(128)
>>> '%r' % ([p],)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-12: ordinal not in range(128)
>>> repr(p)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-12: ordinal not in range(128)
```
TASK DETAIL
https://phabricator.wikimedia.org/T95809
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: pywikipedia-bugs, Aklapper, XZise, jayvdb