[Pywikipedia-bugs] [Maniphest] [Commented On] T245374: WMFTimeoutException on non-existent files

2020-02-16 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. The file that got skipped is a red herring, I think. Something about the API query is more expensive than expected. With a gailimit=500, I get a timeout almost every time. Between 100 and 500, I sometimes get a response, sometimes a timeout, and

[Pywikipedia-bugs] [Maniphest] [Updated] T245374: WMFTimeoutException on non-existent files

2020-02-17 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. The code I used: #!/bin/env python3 import pywikibot import logging logging.basicConfig(filename="test.log", level=logging.DEBUG) site = pywikibot.Site("commons", "commons") ai = site.a

[Pywikipedia-bugs] [Maniphest] [Commented On] T249565: Wikidata's wb_items_per_site table has suddenly disappeared, creating DBQueryErrors on page views

2020-04-09 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. It will be done automatically, eventually. To speed up the process on a particular wiki, something like https://en.wikipedia.org/wiki/User:Joe%27s_Null_Bot or pywikibot's touch.py could be used, subject to local bot policies. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T67262: ns parameter of Page object and/or defaultnamespace of Link object should force the namespace

2020-04-14 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Silently ignoring the namespace parameter causes problems. I'm writing a script that pulls results from a database query, passing page_namespace and page_title to the page constructor. This bug caused an issue when it came to a page that had a name

[Pywikipedia-bugs] [Maniphest] [Created] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-20 Thread AntiCompositeNumber
AntiCompositeNumber created this task. AntiCompositeNumber added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Pywikibot's docstrings currently include a lot of type information about the inputs and outputs of functions. Ho

[Pywikipedia-bugs] [Maniphest] [Commented On] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-21 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. That's a benefit of using stub files instead of inline annotations: the runtime python version is irrelevant. The correct syntax for a valid stub file is python 3.6+ inline annotations, and they'll work for python2 and python3 code. Ther

[Pywikipedia-bugs] [Maniphest] [Commented On] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-21 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. | Stub files| Inline annotations

[Pywikipedia-bugs] [Maniphest] [Commented On] T250939: pywikibot login failed

2020-04-23 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Did you type the password correctly then? Are you using the account password or a BotPassword? TASK DETAIL https://phabricator.wikimedia.org/T250939 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To

[Pywikipedia-bugs] [Maniphest] [Updated] T254459: Large PDF upload issue

2020-06-13 Thread AntiCompositeNumber
AntiCompositeNumber edited projects, added SRE-swift-storage, MediaWiki-File-management; removed Pywikibot. AntiCompositeNumber added a comment. This issue, at least the 503s, is reproducible with Special:Upload (not just the API). Request from *** via cp1085 frontend, Varnish XID

[Pywikipedia-bugs] [Maniphest] [Commented On] T254459: Large PDF upload issue

2020-06-27 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Thumbnail generation is independent of the upload process. Thumbnails are generated on demand by Thumbor after a client request, and MediaWiki is largely uninvolved in thumbnail generation on Wikimedia. TASK DETAIL https://phabricator.wikimedia.org

[Pywikipedia-bugs] [Maniphest] [Commented On] T153541: page.botMayEdit should return the correct value even if the bot has not logged in.

2020-07-02 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Because bots using OAUTH are not considered logged-in by Pywikibot, those bots will always ignore bot-specific exclusion templates. However, site.username() will return the username. page.botMayEdit should fail safe, which means that it should return

[Pywikipedia-bugs] [Maniphest] [Commented On] T266117: Frequent chunk-too-small errors

2020-10-24 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Could not reproduce. Please provide at least the following information: - Operating system - Python environment and version (`import sys; print(sys.version)`) - Pywikibot version (`import pywikibot; print(pywikibot.__version__)`) - Relevant code

[Pywikipedia-bugs] [Maniphest] [Created] T272319: Frequent Nonce already used errors from Pywikibot scripts

2021-01-18 Thread AntiCompositeNumber
AntiCompositeNumber created this task. AntiCompositeNumber added projects: Pywikibot, Pywikibot-OAuth, MediaWiki-extensions-OAuth. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Two of my bot tasks, NoLicense <https://github.com/AntiCompositeNum