[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread 8ohit.dua
8ohit.dua added a comment.

jayvdb: I am available on IRC mostly after 8pm IST(UTC+5:30).
I'll be there at # pywikibot channel.


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, 8ohit.dua
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T104522: Wikibase API warning of unknown format

2016-01-15 Thread Multichill
Multichill added a comment.

This is just annoying for some time, not actually breaking anything so "Unbreak 
Now!" might be a bit too much.


TASK DETAIL
  https://phabricator.wikimedia.org/T104522

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Multichill
Cc: Multichill, Ricordisamoa, Aklapper, jayvdb, pywikibot-bugs-list, 
Wikidata-bugs, aude, Mbch331



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb added a comment.

@MtDu, how are you testing your code?  Could you describe your test sequence 
here please.  Then reviewers can

1. comment on whether the test sequence is good
2. use the test sequence to confirm your solution is fixing the problem.


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T56897: log files created even with -nolog argument

2016-01-15 Thread AndyTechGuy
AndyTechGuy added a comment.

Regarding the task description change, I don't know what this means for the 
current patch.
Should continue updating this patch even though this specific instance of the 
error no longer occurs? Or should I simply abandon the change?


TASK DETAIL
  https://phabricator.wikimedia.org/T56897

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: AndyTechGuy
Cc: gerritbot, AndyTechGuy, 8ohit.dua, Aklapper, pywikibot-bugs-list, 
Ladsgroup, Mpaa, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T104522: Wikibase API warning of unknown format

2016-01-15 Thread jayvdb
jayvdb lowered the priority of this task from "Unbreak Now!" to "Normal".
jayvdb added a comment.

I was basing the increased priority on this part of 
https://phabricator.wikimedia.org/T104522#1932994, which sounds like the 
revision id isnt being managed correctly inside Pywikibot:

> Huh? 25369? That's the old revision id! Where did you get that from?

I needed to add `import pywikibot` to the top of @multichill's 
https://phabricator.wikimedia.org/T104522#1933026 sample code ,

Using master, I do not see a problem with the revision id.  However it does 
very clearly show the warning described in this bug.

  $ python pwb.py multichill_wd_T104522.py
  No handlers could be found for logger "pywiki"
  {'labels': {'en': {'value': u'Tester de test for T104522', 'language': 
u'en'}}}
  Creating new itemu
  Logging in to wikidata:test as JVbot-test
  The current revision id is 25418
  The current revision id is 25418 at the start of 0
  Adding P508->Q207 to [[wikidata:test:Q2145]]
  Sleeping for 7.3 seconds, 2016-01-16 07:37:49
  The current revision id is 25419 after adding a claim
  The current revision id is 25419 at the start of 1
  Adding P508->Q207 to [[wikidata:test:Q2145]]
  Sleeping for 7.5 seconds, 2016-01-16 07:37:59
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25420 after adding a claim
  The current revision id is 25420 at the start of 2
  Adding P508->Q207 to [[wikidata:test:Q2145]]
  Sleeping for 8.6 seconds, 2016-01-16 07:38:08
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25421 after adding a claim
  The current revision id is 25421 at the start of 3
  Adding P508->Q207 to [[wikidata:test:Q2145]]
  Sleeping for 8.9 seconds, 2016-01-16 07:38:18
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25422 after adding a claim
  {'labels': {'en': {'value': u'Tester de test for T104522', 'language': 
u'en'}}}
  Creating new itemu
  Sleeping for 9.2 seconds, 2016-01-16 07:38:28
  Sleeping for 5.0 seconds, 2016-01-16 07:38:37
  Sleeping for 4.7 seconds, 2016-01-16 07:38:42
  The current revision id is 25423
  The current revision id is 25423 at the start of 0
  Adding P508->Q207 to [[wikidata:test:Q2146]]
  Sleeping for 8.1 seconds, 2016-01-16 07:38:49
  The current revision id is 25424 after adding a claim
  The current revision id is 25424 at the start of 1
  Adding P508->Q207 to [[wikidata:test:Q2146]]
  Sleeping for 9.2 seconds, 2016-01-16 07:38:58
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25425 after adding a claim
  The current revision id is 25425 at the start of 2
  Adding P508->Q207 to [[wikidata:test:Q2146]]
  Sleeping for 9.1 seconds, 2016-01-16 07:39:08
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25426 after adding a claim
  The current revision id is 25426 at the start of 3
  Sleeping for 5.0 seconds, 2016-01-16 07:39:20
  Adding P508->Q207 to [[wikidata:test:Q2146]]
  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}
  The current revision id is 25427 after adding a claim

I also ran it on the 2.0 branch, with the same results.


TASK DETAIL
  https://phabricator.wikimedia.org/T104522

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Multichill, Ricordisamoa, Aklapper, jayvdb, pywikibot-bugs-list, 
Wikidata-bugs, aude, Mbch331



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread MtDu
MtDu added a comment.

@jayvdb,
Could you guide me on how to test it? 
Thanks,
MtDu


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T120024: [clonable] Add doctests to Pywikibot library documentation

2016-01-15 Thread jayvdb
jayvdb added a comment.

https://codein.withgoogle.com/dashboard/tasks/6510629728813056/


TASK DETAIL
  https://phabricator.wikimedia.org/T120024

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Nemo_bis, Aklapper, jayvdb, pywikibot-bugs-list, Jay8g, Spage



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T120024: [clonable] Add doctests to Pywikibot library documentation

2016-01-15 Thread jayvdb
jayvdb moved this task to Imported into GCI site on the Google-Code-In-2015 
workboard.

TASK DETAIL
  https://phabricator.wikimedia.org/T120024

WORKBOARD
  https://phabricator.wikimedia.org/project/board/1587/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Nemo_bis, Aklapper, jayvdb, pywikibot-bugs-list, Jay8g, Spage



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T123789: reflinks.py does not work on test wiki

2016-01-15 Thread jayvdb
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, Pywikibot-Other-scripts.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Testing `reflinks.py` on https://test.wikipedia.org/ fails:
  
  ```
  $ python pwb.py reflinks -family:test -lang:test 
-page:User:John_Vandenberg/reflinks_useragent_test
  No handlers could be found for logger "pywiki"
  Traceback (most recent call last):
File "pwb.py", line 248, in 
  if not main():
File "pwb.py", line 242, in main
  run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 120, in run_python_file
  main_mod.__dict__)
File "./scripts/reflinks.py", line 824, in 
  main()
File "./scripts/reflinks.py", line 819, in main
  bot = ReferencesRobot(generator, **options)
File "./scripts/reflinks.py", line 411, in __init__
  i18n.translate(self.site, stopPage))
File ".../pywikibot/tools/__init__.py", line 1327, in wrapper
  return obj(*__args, **__kw)
File ".../pywikibot/tools/__init__.py", line 1327, in wrapper
  return obj(*__args, **__kw)
File ".../pywikibot/page.py", line 2058, in __init__
  raise ValueError(u'Title must be specified and not empty '
  ValueError: Title must be specified and not empty if source is a Site.
  
  CRITICAL: Closing network session.
  ```

TASK DETAIL
  https://phabricator.wikimedia.org/T123789

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Aklapper, pywikibot-bugs-list, jayvdb



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Edited] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb edited the task description.

TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb added a comment.

In https://phabricator.wikimedia.org/T113596#1937895, @MtDu wrote:

> @jayvdb,
>  Could you guide me on how to test it? 
>  Thanks,
> MtDu


I've added a way to test it in this task's description.


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb added a comment.

Note that `fake-useragent` is unusable at the moment on Python 2.7; see 
https://github.com/hellysmile/fake-useragent/issues/14


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread MtDu
MtDu added a comment.

@jayvdb, 
So... Is switching to requests a good idea? Now, when I'm testing I'm getting 
errors like this. https://dpaste.de/Tdio#L552,555,557,648 
On line 552, it says str does no have decode attr. 
When I delete that, it says
On line 648, 
does not have attr close,
When I delete that line,
On line 557, 
does not have attr info. 
Please guide me. 
Thanks,
MtDu


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb added a comment.

@MtDu, As it seems you are investigating using `requests`, please discuss that 
problem on T111300: Convert reflinks to requests 
.  It is a separate task.  It is not 
a mandatory part of the solution to this user-agent bug.


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Edited] T111300: Convert reflinks to requests

2016-01-15 Thread jayvdb
jayvdb edited the task description.

TASK DETAIL
  https://phabricator.wikimedia.org/T111300

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Rubin16, Tokencolour, Beta16, pywikibot-bugs-list, jayvdb, Aklapper



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T111300: Convert reflinks to requests

2016-01-15 Thread jayvdb
jayvdb added a comment.

I havent looked closely, but I expect that the `requests` auto-decoding will 
not have all the same features as the existing `reflinks.py` decoding.  more 
analysis needed.


TASK DETAIL
  https://phabricator.wikimedia.org/T111300

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Rubin16, Tokencolour, Beta16, pywikibot-bugs-list, jayvdb, Aklapper



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T113596: reflinks.py work with old user agent

2016-01-15 Thread jayvdb
jayvdb added a comment.

Python 2 should be used for this bug, because Python 3 has a bug: 
https://phabricator.wikimedia.org/T118674


TASK DETAIL
  https://phabricator.wikimedia.org/T113596

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MtDu, jayvdb
Cc: gerritbot, MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, 
pywikibot-bugs-list, Rubin16, Jay8g



___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs