[Pywikipedia-bugs] [Maniphest] [Commented On] T134676: template_bot_tests fails for unknown reason
gerritbot added a comment. Change 291577 had a related patch set uploaded (by John Vandenberg): Adjust recent added tests for case-sensitive site https://gerrit.wikimedia.org/r/291577 TASK DETAIL https://phabricator.wikimedia.org/T134676 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: gerritbot, jayvdb, Aklapper, Zppix, Xqt, pywikibot-bugs-list, Lewizho99, Mdupont, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T135984: diff view with background colors lack contrast
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T135984 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, jayvdb, Aklapper, Xqt, Zppix, valhallasw, pywikibot-bugs-list, Lewizho99, Mdupont, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T135984: diff view with background colors lack contrast
gerritbot added a comment. Change 291571 had a related patch set uploaded (by Mpaa): Add background colors and utility script to show color combinations https://gerrit.wikimedia.org/r/291571 TASK DETAIL https://phabricator.wikimedia.org/T135984 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, jayvdb, Aklapper, Xqt, Zppix, valhallasw, pywikibot-bugs-list, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
Re: [pywikibot] Not sure if I'm running weblinkchecker correctly
Ok. I had added some dead links to the user page and was testing to see what it would do. Thank you! On Sat, May 28, 2016 at 4:02 PM, mastiwrote: > Hi, > all the examples are in the script help. > You have to run it on a list of pages not just Your user page > the bot will create a database of the links it thinks are dead. > the bot will only report links as dead if they are found dead at least > twice several days apart. Default is 7 days. > So once You run it through the whole namespace You will have to wait some > days to rerun it. > You can set the rquired period with -day parameter > but less than a week does not make sense as it will report dead link for a > temporary problems with site > > masti > > > > On 05/28/2016 07:18 PM, . wrote: > > Hi all, > > I'my trying to run weblinkchecker from my own computer. I've logged in to > the bot account, but when I try to run weblink checker, like this: > > >python weblinkchecker.py UserPage:usernamegoeshere > > I just get a very long bunch of help text on the screen "This bot is used > for checking external links found at the wiki" etc. I don't know if I'm > successfully running the script or not, and whether it's actually checking > any links. > > What am I doing wrong? > > Thanks! > > > > ___ > pywikibot mailing > listpywikibot@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/pywikibot > > > > ___ > pywikibot mailing list > pywikibot@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/pywikibot > > ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
[Pywikipedia-bugs] [Maniphest] [Closed] T136487: AttributeError in setup.py breaks bot tests in Python 2
jayvdb closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T136487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Aklapper, pywikibot-bugs-list, Ricordisamoa, gerritbot, jayvdb, Zppix, Lewizho99, Mdupont, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Unblock] T101592: Add PyPy 2 support
jayvdb closed blocking task T136487: AttributeError in setup.py breaks bot tests in Python 2 as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T101592 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: gerritbot, Ricordisamoa, pywikibot-bugs-list, jayvdb, Aklapper, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
Re: [pywikibot] Not sure if I'm running weblinkchecker correctly
Hi, all the examples are in the script help. You have to run it on a list of pages not just Your user page the bot will create a database of the links it thinks are dead. the bot will only report links as dead if they are found dead at least twice several days apart. Default is 7 days. So once You run it through the whole namespace You will have to wait some days to rerun it. You can set the rquired period with -day parameter but less than a week does not make sense as it will report dead link for a temporary problems with site masti On 05/28/2016 07:18 PM, . wrote: Hi all, I'my trying to run weblinkchecker from my own computer. I've logged in to the bot account, but when I try to run weblink checker, like this: >python weblinkchecker.py UserPage:usernamegoeshere I just get a very long bunch of help text on the screen "This bot is used for checking external links found at the wiki" etc. I don't know if I'm successfully running the script or not, and whether it's actually checking any links. What am I doing wrong? Thanks! ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
[Pywikipedia-bugs] [Maniphest] [Commented On] T132557: noesetest fails for test_translateMagicWords
gerritbot added a comment. Change 290927 merged by jenkins-bot: [bugfix] Fix test_translateMagicWords test https://gerrit.wikimedia.org/r/290927 TASK DETAIL https://phabricator.wikimedia.org/T132557 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: gerritbot, Aklapper, pywikibot-bugs-list, siebrand, eranroz, Xqt, Lewizho99, Mdupont, Maathavan, jayvdb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikibot-commits] [Gerrit] Add asteroids that are being used as locations - change (pywikibot/core)
jenkins-bot has submitted this change and it was merged. Change subject: Add asteroids that are being used as locations .. Add asteroids that are being used as locations Used as globes for other items on Wikidata. Source: SELECT (count(?item) as ?c) ?globe ?globeLabel WHERE { ?item wdt:P376 ?globe . ?item wdt:P625 ?location . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } } GROUP BY ?globe ?globeLabel ORDER BY DESC(?c) Change-Id: I049866d40d8ad4903f2445b6bf1fdf8a164202a3 (cherry picked from commit 9192099fb51570251e440e0be39959b0c8c7c465) --- M pywikibot/families/wikidata_family.py 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py index 4340f3a..13f5546 100644 --- a/pywikibot/families/wikidata_family.py +++ b/pywikibot/families/wikidata_family.py @@ -56,12 +56,15 @@ 'dione': 'http://www.wikidata.org/entity/Q15040', 'earth': 'http://www.wikidata.org/entity/Q2', 'enceladus': 'http://www.wikidata.org/entity/Q3303', +'eros': 'http://www.wikidata.org/entity/Q16711', 'europa': 'http://www.wikidata.org/entity/Q3143', 'ganymede': 'http://www.wikidata.org/entity/Q3169', +'gaspra': 'http://www.wikidata.org/entity/Q158244', 'hyperion': 'http://www.wikidata.org/entity/Q15037', 'iapetus': 'http://www.wikidata.org/entity/Q17958', 'io': 'http://www.wikidata.org/entity/Q3123', 'jupiter': 'http://www.wikidata.org/entity/Q319', +'lutetia': 'http://www.wikidata.org/entity/Q107556', 'mars': 'http://www.wikidata.org/entity/Q111', 'mercury': 'http://www.wikidata.org/entity/Q308', 'mimas': 'http://www.wikidata.org/entity/Q15034', -- To view, visit https://gerrit.wikimedia.org/r/291199 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I049866d40d8ad4903f2445b6bf1fdf8a164202a3 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: 2.0 Gerrit-Owner: John VandenbergGerrit-Reviewer: Smalyshev Gerrit-Reviewer: Xqt Gerrit-Reviewer: jenkins-bot <> ___ Pywikibot-commits mailing list Pywikibot-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits
[Pywikibot-commits] [Gerrit] Clear exceptions in BaseBot.run before processing - change (pywikibot/core)
jenkins-bot has submitted this change and it was merged. Change subject: Clear exceptions in BaseBot.run before processing .. Clear exceptions in BaseBot.run before processing Bot classes use sys.exc_info, which can be a stale exception under Python 2. Bug: T136487 Change-Id: I01311cf9071ab45cb38bc5463153e887a76c5138 --- M pywikibot/bot.py 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 7dbb8ef..378f2b2 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -1414,6 +1414,10 @@ if PY2: maxint = sys.maxint +# Python 2 does not clear previous exceptions and method `exit` +# relies on sys.exc_info returning exceptions occurring in `run`. +sys.exc_clear() + try: for page in self.generator: try: -- To view, visit https://gerrit.wikimedia.org/r/291523 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I01311cf9071ab45cb38bc5463153e887a76c5138 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John VandenbergGerrit-Reviewer: Xqt Gerrit-Reviewer: jenkins-bot <> ___ Pywikibot-commits mailing list Pywikibot-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits
[Pywikipedia-bugs] [Maniphest] [Commented On] T136487: AttributeError in setup.py breaks bot tests in Python 2
gerritbot added a comment. Change 291523 merged by jenkins-bot: Clear exceptions in BaseBot.run before processing https://gerrit.wikimedia.org/r/291523 TASK DETAIL https://phabricator.wikimedia.org/T136487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb, gerritbot Cc: Aklapper, pywikibot-bugs-list, Ricordisamoa, gerritbot, jayvdb, Zppix, Lewizho99, Mdupont, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Retitled] T129742: test_search_where fails on *.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled
jayvdb changed the title from "test_search_where fails on en.wikisource.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled" to "test_search_where fails on *.beta.wmflabs.org: gsrsearch-title-disabled: title search is disabled". TASK DETAIL https://phabricator.wikimedia.org/T129742 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Xqt, Aklapper, jayvdb, pywikibot-bugs-list, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T136487: AttributeError in setup.py breaks bot tests in Python 2
gerritbot added a comment. Change 291523 had a related patch set uploaded (by John Vandenberg): Clear exceptions in BaseBot.run before processing https://gerrit.wikimedia.org/r/291523 TASK DETAIL https://phabricator.wikimedia.org/T136487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb, gerritbot Cc: Aklapper, pywikibot-bugs-list, Ricordisamoa, gerritbot, jayvdb, Zppix, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T136487: AttributeError in setup.py breaks bot tests in Python 2
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T136487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb, gerritbot Cc: Aklapper, pywikibot-bugs-list, Ricordisamoa, gerritbot, jayvdb, Zppix, Lewizho99, Mdupont, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Block] T101592: Add PyPy 2 support
jayvdb created blocking task T136487: AttributeError in setup.py breaks bot tests in Python 2. TASK DETAIL https://phabricator.wikimedia.org/T101592 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: gerritbot, Ricordisamoa, pywikibot-bugs-list, jayvdb, Aklapper, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T136487: AttributeError in setup.py breaks bot tests in Python 2
jayvdb created this task. Herald added a subscriber: Zppix. TASK DESCRIPTION While testing for PyPy in setup.py, using the following, bot tests starts failing on Python 2.x builds. try: sys.pypy_version_info PYPY = True except AttributeError: PYPY = False It fails because `bot_tests.py` includes a guard like `exc = sys.exc_info()[0]; self.assertIsNone(exc)` Worth noting that while there are other `try: except:` blocks in setup.py, they are successful imports of `multiprocessing`, `unittest2`, `bz2` in the Travis environment. This has exposed the problem that `BaseBot.exit()` uses `sys.exc_info()`, which could be a very old stale exception on Python 2. BaseBot has some logic to avoid exceptions during the bot run from remaining in sys.exc_info(), but it doesnt clear the exceptions from before the bot run. This isnt actually a likely bug in `BaseBot` or existing subclasses in `bot.py`, because it only looks for whether the old exception is `KeyboardInterrupt`, and it very unusual to have one of those caught and remaining in sys.exc_info (i.e. something permanently discarded `KeyboardInterrupt`, which would be bizarre) before the bot was run. However it is very likely that new subclasses, or future improvements in BaseBot, will use `sys.exc_info()` for other types of exceptions, and not be expecting old exceptions from before the bot was run. To make it more reliable, `BaseBot.run()` should clear the old exception before it commences process. TASK DETAIL https://phabricator.wikimedia.org/T136487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Aklapper, pywikibot-bugs-list, Ricordisamoa, gerritbot, jayvdb, Zppix, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
Re: [pywikibot] Not sure if I'm running weblinkchecker correctly
(Forgot to mention this is for a third party wiki.) On Sat, May 28, 2016 at 1:18 PM, .wrote: > Hi all, > > I'my trying to run weblinkchecker from my own computer. I've logged in to > the bot account, but when I try to run weblink checker, like this: > > >python weblinkchecker.py UserPage:usernamegoeshere > > I just get a very long bunch of help text on the screen "This bot is used > for checking external links found at the wiki" etc. I don't know if I'm > successfully running the script or not, and whether it's actually checking > any links. > > What am I doing wrong? > > Thanks! > > ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
[pywikibot] Not sure if I'm running weblinkchecker correctly
Hi all, I'my trying to run weblinkchecker from my own computer. I've logged in to the bot account, but when I try to run weblink checker, like this: >python weblinkchecker.py UserPage:usernamegoeshere I just get a very long bunch of help text on the screen "This bot is used for checking external links found at the wiki" etc. I don't know if I'm successfully running the script or not, and whether it's actually checking any links. What am I doing wrong? Thanks! ___ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
[Pywikipedia-bugs] [Maniphest] [Updated] T94826: Data returned for another page
whym added a comment. It seems that Arabic normalization is controlled by $wgFixArabicUnicode in MediaWiki. https://phabricator.wikimedia.org/T11413 and https://phabricator.wikimedia.org/rSVN60599 provide have more details. There is also $wgFixMalayalamUnicode for Malayalam. The actual normalization data are found in `serialized/normalize-ar.ser`. Is the data exposed in the MediaWiki API? TASK DETAIL https://phabricator.wikimedia.org/T94826 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: whym Cc: whym, Dalba, Ladsgroup, jayvdb, Xqt, StudiesWorld, pywikibot-bugs-list, Aklapper, XZise, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T101592: Add PyPy 2 support
jayvdb added a project: Pywikibot-Announce. TASK DETAIL https://phabricator.wikimedia.org/T101592 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: gerritbot, Ricordisamoa, pywikibot-bugs-list, jayvdb, Aklapper, Mdupont ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs