[Pywikipedia-bugs] [Maniphest] [Claimed] T119226: Very small (or very large) quantity values (represented in scientific notation) result in error in add/update via pywikibot/wikidata API

2020-02-14 Thread DD063520
DD063520 claimed this task. DD063520 added a comment. No, problem there is still time to do it ; ) . of I see what @thiemowmde means. But I'm not sure if I can implement this. The problem is that there can be precision problems if it is done as I propose, right? TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T228839: Site('test', 'test') is not Site('test', 'wikipedia')

2020-02-14 Thread gerritbot
gerritbot added a comment. Change 572250 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [bugfix] let Site('test', 'test) be equal to Site('test', 'wikipedia') https://gerrit.wikimedia.org/r/572250 TASK DETAIL https://phabricator.wikimedia.org/T228839

[Pywikipedia-bugs] [Maniphest] [Changed Status] T85681: Some languages are missing from date.formats

2020-02-14 Thread Xqt
Xqt changed the task status from "Open" to "Stalled". Xqt added a comment. Please provide the missing formats. It is impossible for developers to know them all TASK DETAIL https://phabricator.wikimedia.org/T85681 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T228839: Site('test', 'test') is not Site('test', 'wikipedia')

2020-02-14 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T228839 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: Dvorapa, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Un1tY, Zkhalido, Hook696,

[Pywikipedia-bugs] [Maniphest] [Declined] T60878: Report sensible error when family file cannot be loaded

2020-02-14 Thread Xqt
Xqt closed this task as "Declined". Xqt added a comment. This is very outdated and the exceptions are handled in a different way already TASK DETAIL https://phabricator.wikimedia.org/T60878 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To:

[Pywikipedia-bugs] [Maniphest] [Unblock] T104130: Family packages

2020-02-14 Thread Xqt
Xqt closed subtask T60878: Report sensible error when family file cannot be loaded as Declined. TASK DETAIL https://phabricator.wikimedia.org/T104130 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb, Xqt Cc: gerritbot, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Commented On] T119226: Very small (or very large) quantity values (represented in scientific notation) result in error in add/update via pywikibot/wikidata API

2020-02-14 Thread ArthurPSmith
ArthurPSmith added a comment. Sorry I never got around to looking at this further. @DD063520 do you understand the above comment from @thiemowmde about using the wbparsevalue api rather than python internals? TASK DETAIL https://phabricator.wikimedia.org/T119226 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Edited] T213287: Drop support of python 2.7

2020-02-14 Thread Xqt
Xqt updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T213287 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Urbanecm, Framawiki, Legoktm, Ricordisamoa, Multichill, zhuyifei1999, Dalba, Eatcha, KTC, Lokal_Profil,

[Pywikipedia-bugs] [Maniphest] [Declined] T142676: Python 2 RuntimeWarning when running a script in a dir without __init__

2020-02-14 Thread Xqt
Xqt closed this task as "Declined". Xqt added a comment. `user_script_paths` may be used to solve that and in addition Python 2 support will be dropped. Closed it after this long time. TASK DETAIL https://phabricator.wikimedia.org/T142676 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Unblock] T243770: Pywikibot Python 2 compatibility (tracking)

2020-02-14 Thread Xqt
Xqt closed subtask T142676: Python 2 RuntimeWarning when running a script in a dir without __init__ as Declined. TASK DETAIL https://phabricator.wikimedia.org/T243770 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt,

[Pywikipedia-bugs] [Maniphest] [Updated] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-14 Thread Framawiki
Framawiki added a comment. I've created T245318: Errors on Python2 starting February 12 regarding Python 2 errors. But whatever the outcome of this other task, I think the current is still interesting to solve (create symlink on toolforge FS).

[Pywikipedia-bugs] [Maniphest] [Edited] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Framawiki
Framawiki updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Framawiki Cc: Xqt, Aklapper, Framawiki, pywikibot-bugs-list, Dvorapa, Zkhalido, Viztor, Wenyi, Tbscho,

[Pywikipedia-bugs] [Maniphest] [Created] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Framawiki
Framawiki created this task. Framawiki added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION On T245209: Create symlink to PWB py2 version in /shared/pywikibot I said that several py2

[Pywikipedia-bugs] [Maniphest] [Commented On] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-14 Thread Dvorapa
Dvorapa added a comment. Sure it is! But `core_old_python2` seems too long to me TASK DETAIL https://phabricator.wikimedia.org/T245209 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Aklapper, zhuyifei1999,

[Pywikipedia-bugs] [Maniphest] [Updated] T245318: Errors on Python2 starting February 12

2020-02-14 Thread JJMC89
JJMC89 added a comment. For `APIError: badinteger: Invalid value "3|0" for integer parameter "maxlag".`, it looks like rPWBCa131de634c9d: [IMPR] use setdefault in api._add_defaults and

[Pywikipedia-bugs] [Maniphest] [Retitled] T245318: APIErrors for maxlag parameter higher than 9 starting February 12

2020-02-14 Thread Xqt
Xqt renamed this task from "Errors on Python2 starting February 12" to "APIErrors for maxlag parameter higher than 9 starting February 12". TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-14 Thread zhuyifei1999
zhuyifei1999 added a comment. I think too long is fine because it will soon be unsupported. Annoyance is sometimes a good thing :) In any case, you have write access to that directory right? TASK DETAIL https://phabricator.wikimedia.org/T245209 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Unassigned] T245318: APIErrors for maxlag parameter higher than 9 starting February 12

2020-02-14 Thread Xqt
Xqt removed Xqt as the assignee of this task. TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Xqt, Aklapper, Framawiki, pywikibot-bugs-list, Dvorapa, Zkhalido, Viztor, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Edited] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Framawiki
Framawiki updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Framawiki Cc: JJMC89, Xqt, Aklapper, Framawiki, pywikibot-bugs-list, Dvorapa, Zkhalido, Viztor, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Commented On] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Dvorapa
Dvorapa added a comment. In T245318#5886540 , @JJMC89 wrote: > For `APIError: badinteger: Invalid value "3|0" for integer parameter "maxlag".`, it looks like rPWBCa131de634c9d: [IMPR] use setdefault in api._add_defaults

[Pywikipedia-bugs] [Maniphest] [Commented On] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Dvorapa
Dvorapa added a comment. Hmmm, `API write action attempted as IP u'Z\xe9roBot'` seems weird. Another newly occurring login/logout issue lately. @Framawiki Could you find also last time both these were working correctly without issues? Was it the previous day or a month ago (as last

[Pywikipedia-bugs] [Maniphest] [Commented On] T245318: Errors on Python2 starting February 12

2020-02-14 Thread gerritbot
gerritbot added a comment. Change 572369 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Fix typo in a131de634c https://gerrit.wikimedia.org/r/572369 TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Reopened] T245318: APIErrors for maxlag parameter higher than 9 starting February 12

2020-02-14 Thread Xqt
Xqt reopened this task as "Open". Xqt added a comment. Remaining issue: API write action attempted as IP u'Z\xe9roBot' TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Xqt,

[Pywikipedia-bugs] [Maniphest] [Updated] T245318: Errors on Python2 starting February 12

2020-02-14 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: JJMC89, Xqt, Aklapper, Framawiki, pywikibot-bugs-list, Dvorapa, Un1tY, Zkhalido,

[Pywikipedia-bugs] [Maniphest] [Closed] T245318: APIErrors for maxlag parameter higher than 9 starting February 12

2020-02-14 Thread Xqt
Xqt closed this task as "Resolved". Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Xqt, Aklapper, Framawiki, pywikibot-bugs-list, Dvorapa, Zkhalido,

[Pywikipedia-bugs] [Maniphest] [Updated] T245318: APIErrors for maxlag parameter higher than 9 starting February 12

2020-02-14 Thread Xqt
Xqt added a comment. > APIError: badinteger: Invalid value "3|0" for integer parameter "maxlag". and we are broken by T242081 :-D TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T245318: Errors on Python2 starting February 12

2020-02-14 Thread Dvorapa
Dvorapa removed a project: Patch-For-Review. Dvorapa added a comment. One issue down! :D TASK DETAIL https://phabricator.wikimedia.org/T245318 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: JJMC89, Xqt, Aklapper, Framawiki,

[Pywikipedia-bugs] [Maniphest] [Claimed] T228839: Site('test', 'test') is not Site('test', 'wikipedia')

2020-02-14 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T228839 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Commented On] T119226: Very small (or very large) quantity values (represented in scientific notation) result in error in add/update via pywikibot/wikidata API

2020-02-14 Thread DD063520
DD063520 added a comment. Ok, I think I found a patch. We can changes this https://github.com/wikimedia/pywikibot/blob/2dfe67426c22c3c11cf9be0eabcf538f8848bd48/pywikibot/__init__.py#L847: def toWikibase(self): """ Convert the data to a JSON object for the

[Pywikipedia-bugs] [Maniphest] [Updated] T204331: Wikibase does not accept "+g"-formatted strings as quantities

2020-02-14 Thread DD063520
DD063520 added a comment. Hi, I'm encountering the same problem. I also have seen that this is related to this: https://phabricator.wikimedia.org/T119226 D063520 TASK DETAIL https://phabricator.wikimedia.org/T204331 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T119226: Very small (or very large) quantity values (represented in scientific notation) result in error in add/update via pywikibot/wikidata API

2020-02-14 Thread DD063520
DD063520 added a comment. Restricted Application added a subscriber: Liuxinyu970226. Hello, I'm also encountering this. I also saw that it is related to this: https://phabricator.wikimedia.org/T204331 Can we make a pywikibot patch? I tried to make one, but not there yet

[Pywikipedia-bugs] [Maniphest] [Commented On] T60546: Captcha support broken

2020-02-14 Thread gerritbot
gerritbot added a comment. Change 572204 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [bugfix] Add captcha support for "simple" type https://gerrit.wikimedia.org/r/572204 TASK DETAIL https://phabricator.wikimedia.org/T60546 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T60546: Captcha support broken

2020-02-14 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T60546 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: Mpaa, JanusTroelsen, binbot, Aklapper, jayvdb, valhallasw, Ricordisamoa,