Page MenuHomePhabricator

Mpaa (Mpaa)
User

Projects

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Oct 24 2014, 11:18 PM (531 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Mpaa [ Global Accounts ]

Recent Activity

Jan 6 2024

Mpaa added a comment to T354474: API requests when processing pages with XMLDumpPageGenerator.

It seems OK to me how it is checked today, it is checked via template checking and I did not see reference to current text.

Jan 6 2024, 10:05 PM · Pywikibot
Mpaa created T354474: API requests when processing pages with XMLDumpPageGenerator.
Jan 6 2024, 11:52 AM · Pywikibot

Dec 29 2023

Mpaa updated the task description for T354095: xmlreader might fail.
Dec 29 2023, 10:47 AM · Pywikibot
Mpaa created T354095: xmlreader might fail.
Dec 29 2023, 10:33 AM · Pywikibot

Dec 16 2023

Mpaa added a comment to T228335: multiple matches order of _code_fam_from_url depends on Python version.

@Xqt, since now pywikibot supports only >= 3.7 this can be closed., right?

Dec 16 2023, 6:12 PM · Pywikibot
Mpaa closed T258036: Pywikibot CategorizedPageGenerator yields more files than present in category as Resolved.
Dec 16 2023, 5:40 PM · Pywikibot
Mpaa added a comment to T258036: Pywikibot CategorizedPageGenerator yields more files than present in category.

After adding lazy load of metadata in T253591
I get the same number in petscan, category in commons and script.
I'll close it for now, to be reopened in case.

Dec 16 2023, 5:39 PM · Pywikibot

Dec 15 2023

Mpaa added a comment to T353387: Suggest installing requests_oauthlib instead of throwing NoUsernameError .

There is an error, but it almost invisible due to the long traceback:
ERROR: OAuth authentication not supported: No module named 'requests_oauthlib'

Dec 15 2023, 9:29 PM · Pywikibot, good first task, Pywikibot-login.py

Dec 3 2023

Mpaa added a comment to T281633: [dev] pre-commit for linting and code formatting.

@JJMC89 do you have updates about this? e.g. a new .pre-commit-config.yaml?

Dec 3 2023, 11:36 PM · Pywikibot

Dec 2 2023

Mpaa added a comment to T352606: Cannot run tests vs sites where oauth is configured in user-config.py.

I think that here we could use apipath, as the goal should be only to check that the site is online.

Dec 2 2023, 7:53 PM · Pywikibot-tests, Pywikibot
Mpaa created T352606: Cannot run tests vs sites where oauth is configured in user-config.py.
Dec 2 2023, 7:51 PM · Pywikibot-tests, Pywikibot
Mpaa added a comment to T352482: APIError: Petscan: No result for source categories.

One reason this now fails is because on my request to delete "Category:Pywikibot Protect Test" in T352560, the category has now been removed from:
User:Sn1per/ProtectTest1
User:Sn1per/ProtectTest2

Dec 2 2023, 10:09 AM · Upstream, Pywikibot-tests, Pywikibot-pagegenerators.py, Pywikibot

Dec 1 2023

Mpaa triaged T352560: doctests failing for Category.articles and Category.members as Unbreak Now! priority.
Dec 1 2023, 11:24 PM · Pywikibot-tests, Pywikibot
Mpaa added a comment to T352560: doctests failing for Category.articles and Category.members.

This is my fault.
There was an issue with a PetScan test and I thought it was due to this category not being present:

Dec 1 2023, 11:21 PM · Pywikibot-tests, Pywikibot

Oct 14 2023

Mpaa created T348910: Replace deprecated inprop=preload with preloadcontent.
Oct 14 2023, 6:01 PM · Pywikibot

May 4 2023

Mpaa added a comment to T335720: Site() can request info unnecessarily.

The problem is that the pop default is evaluated even if it is not needed:

x = {'foo': 'bar'}
def baz(): print('quez')

x.pop('foo', baz())
quez
'bar'

Here some other samples:
https://codesearch.wmcloud.org/pywikibot/?q=%28get%7Cpop%29%5C%28%5B%5E+%2C%5C%29%5D%2B%2C+%5B%5E%5C%28%5C%29%5D%2B%5C%28&files=&excludeFiles=&repos=

dict should have been implemented like that instead:

class lazy_dict(dict):
    sentinel = object()
    def pop(value, default=sentinel):
        try:
            r = super.pop(value)
        except KeyError:
            if default is sentinel:
                raise
            r = default
        return r

but it is a C function

May 4 2023, 9:31 AM · Pywikibot

Nov 27 2022

Mpaa added a comment to T323851: Timestamp.fromtimestampformat() class method is failing.

Weird.
Could you give an example where MW outputs a timestamp on 12 digits?

Nov 27 2022, 10:02 PM · Patch-Needs-Improvement, Pywikibot

Nov 7 2022

Mpaa updated subscribers of T322576: Extend API to get also hocr output.
Nov 7 2022, 10:22 PM · Wikimedia OCR
Mpaa created T322576: Extend API to get also hocr output.
Nov 7 2022, 7:20 PM · Wikimedia OCR

Oct 1 2022

Mpaa added a comment to T319132: Match.group and Match.__getitem__(g) do not raise the same Exception.

A lot of files have been changed by https://gerrit.wikimedia.org/r/c/pywikibot/core/+/836138.
This might occur somewhere else.

Oct 1 2022, 5:26 PM · Pywikibot
Mpaa created T319132: Match.group and Match.__getitem__(g) do not raise the same Exception.
Oct 1 2022, 5:21 PM · Pywikibot

Sep 3 2022

Mpaa closed T316976: Wrong paraminfo for query+proofreadpagesinindex as Invalid.
Sep 3 2022, 11:09 AM · ProofreadPage, Pywikibot
Mpaa added a comment to T316976: Wrong paraminfo for query+proofreadpagesinindex.

@Mpaa prppiilimit was recently removed as a result of T314022, I'm guessing pywikibot hasn't been updated ?

Sep 3 2022, 11:09 AM · ProofreadPage, Pywikibot
Mpaa added a comment to T316976: Wrong paraminfo for query+proofreadpagesinindex.

I cleared pywikibot cache and now they are aligned.

Sep 3 2022, 11:08 AM · ProofreadPage, Pywikibot
Mpaa added a comment to T316976: Wrong paraminfo for query+proofreadpagesinindex.

API query:

URI: '/w/api.php'
Body: 'prppiititle=Index%3AConfederate+Military+History+-+1899+-+Volume+4.djvu&list=proofreadpagesinindex&action=query&indexpageids=&continue=&prppiilimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
Sep 3 2022, 10:56 AM · ProofreadPage, Pywikibot
Mpaa updated subscribers of T316976: Wrong paraminfo for query+proofreadpagesinindex.

Pinging @Inductiveload, which might help on API side.

Sep 3 2022, 10:52 AM · ProofreadPage, Pywikibot
Mpaa created T316976: Wrong paraminfo for query+proofreadpagesinindex.
Sep 3 2022, 10:51 AM · ProofreadPage, Pywikibot

Aug 18 2022

Mpaa added a comment to T205155: unconnected_pages generator doesn't seem to return all pages.

I do not know what sets the limit of 10000 in the API.

Aug 18 2022, 5:32 PM · Pywikibot, Pywikibot-Wikidata

Aug 13 2022

Mpaa awarded T281633: [dev] pre-commit for linting and code formatting a Like token.
Aug 13 2022, 6:45 PM · Pywikibot

Aug 10 2022

Mpaa closed T302496: archivebot.py didn't archive thread whose sign warp in a element as Resolved.
Aug 10 2022, 7:19 AM · Pywikibot, Pywikibot-archivebot.py

Aug 9 2022

Mpaa added a comment to T302496: archivebot.py didn't archive thread whose sign warp in a element.
style="vertical-align:middle; padding-left:20px;"<div style="font-size:x-large; padding-bottom:5px;">'''新年快樂!'''</div>感謝您過去一年來對中文維基百科的貢獻!祝閣下[[新年]]快樂,萬事如意!—— '''[[使用者:Ericliu1912|Eric Liu]]'''<sub> 創造は生命('''[[使用者討論:Ericliu1912|留言]].[[使用者:Ericliu1912#訪客芳名錄|留名]].[[維基百科:維基學生會|學生會]]''')</sub> 2022年1月31日 (一) 18:48 (UTC)<div style="font-size:x-small; text-align:right; padding-top:5px;">{{colorgrey(模板使用方法參見[[使用者:Ericliu1912/維基友愛模板|此處]])}
Aug 9 2022, 10:09 PM · Pywikibot, Pywikibot-archivebot.py
Mpaa closed T313736: Content parameter in page.template() has no effect if page templates are cached as Resolved.
Aug 9 2022, 9:11 PM · Pywikibot

Jul 28 2022

Mpaa added a comment to T241689: Preloading the categories of a set of pages.

See T67163

Jul 28 2022, 2:07 PM · Patch-Needs-Improvement, Pywikibot

Jul 25 2022

Mpaa renamed T313736: Content parameter in page.template() has no effect if page templates are cached from Content parameter has no effect if page templates are cached to Content parameter in page.template() has no effect if page templates are cached.
Jul 25 2022, 3:02 PM · Pywikibot
Mpaa updated the task description for T313736: Content parameter in page.template() has no effect if page templates are cached.
Jul 25 2022, 3:01 PM · Pywikibot
Mpaa created T313736: Content parameter in page.template() has no effect if page templates are cached.
Jul 25 2022, 2:54 PM · Pywikibot

May 14 2022

Mpaa added a comment to T308016: Ql filter attempts to process 'non-standard' titles for pages with Proofread-page content model... .

However, it does make me wonder if there is a need for the filter to be more robust about how it processes titles that aren't in the standard format for the Proofread-page content model.

May 14 2022, 8:32 AM · Pywikibot

May 13 2022

Mpaa renamed T308266: Use random.sample() instead of random.shuffle() in site_tests.py from Use random.choises() instead of random.shuffle() in site_tests.py to Use random.choices() instead of random.shuffle() in site_tests.py.
May 13 2022, 6:24 AM · good first task, Pywikibot

May 12 2022

Mpaa added a comment to T308266: Use random.sample() instead of random.shuffle() in site_tests.py.

random.choices() creates a list with replacements, so you might have duplicates.
random.sample() maybe?

May 12 2022, 10:06 PM · good first task, Pywikibot

May 10 2022

Mpaa added a comment to T308016: Ql filter attempts to process 'non-standard' titles for pages with Proofread-page content model... .

This is not a standard way of working with Proofread pages, and to handle it it would create several inconveniences (e.g. how many pages will have the related index? etc.)
Before acting on pywikibot, there should be an agreement in the wikisource world on such subpages.

May 10 2022, 9:35 PM · Pywikibot

May 7 2022

Mpaa added a comment to T307830: tools.ThreadList.stop_all() leads to AttributeError.

@Mpaa: I am unsure how to proceed. We could

  • keep the current implementation and add a warning to our documentation that the Thread object hast to be sublassed and provide a stop method if stop_all() is to be used (like ThreadedGenerator does)
  • remove the stop_all method and stopping must be implemented outside the ThreadList class
  • ignore AttributeError in stop_all() method and just write a debug message (and add a warning to our documentation)

What do you suggest here?

May 7 2022, 10:37 AM · Pywikibot-weblinkchecker.py, Pywikibot

Apr 30 2022

Mpaa added a comment to T307280: API:Links sometimes miss pages in Page namespace (104).

Change 787876 had a related patch set uploaded (by Mpaa; author: Mpaa):

[pywikibot/core@master] [IMPR]: make IndexPage more robust when getting links in Page ns

https://gerrit.wikimedia.org/r/787876

Apr 30 2022, 9:45 PM · MediaWiki-Action-API, ProofreadPage, Pywikibot
Mpaa added a project to T307280: API:Links sometimes miss pages in Page namespace (104): MediaWiki-Action-API.
Apr 30 2022, 9:45 PM · MediaWiki-Action-API, ProofreadPage, Pywikibot
Mpaa renamed T307280: API:Links sometimes miss pages in Page namespace (104) from Improve robustnesss when getting pages linked to IndexPage to API:Links sometimes miss pages in Page namespace (104).
Apr 30 2022, 9:43 PM · MediaWiki-Action-API, ProofreadPage, Pywikibot
Mpaa created T307280: API:Links sometimes miss pages in Page namespace (104).
Apr 30 2022, 9:29 PM · MediaWiki-Action-API, ProofreadPage, Pywikibot

Apr 24 2022

Mpaa added a comment to T301800: FilePage.get_file_history() returns a dict with timestamp as key but all scripts expect a sequence.

The return type is specified clearly.
Scripts that use this function know what to expect and should act accordingly.

Apr 24 2022, 8:56 PM · Pywikibot

Apr 14 2022

Mpaa added a comment to T306134: XMLDumpPageGenerator is still not working.

@Xqt, I think this might be the cause.
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/769728

Apr 14 2022, 6:09 PM · Regression, Pywikibot-pagegenerators.py, Pywikibot-replace.py, Pywikibot

Apr 10 2022

Mpaa added a comment to T281633: [dev] pre-commit for linting and code formatting.

A well documented task.
I tried it and it looks nice to me.
BTW, I never found a case where the code is changed yet. Will continue using it and see if I encounter one of those cases.

Apr 10 2022, 10:04 PM · Pywikibot

Jan 22 2022

Mpaa created T299824: Index Page is sorted differently in category, depending on how Category is added.
Jan 22 2022, 10:14 AM · ProofreadPage

Jan 21 2022

Mpaa added a comment to T299806: IndexPage cannot be save if page has categories.

page.text is:

Jan 21 2022, 9:47 PM · Pywikibot
Mpaa created T299806: IndexPage cannot be save if page has categories.
Jan 21 2022, 9:45 PM · Pywikibot

Jan 14 2022

Mpaa closed T298848: Unrecognized parameter for query continue for proofreadpagesinindex (gprppiifrom vs gprppiicontinue) as Resolved.
Jan 14 2022, 11:42 PM · MW-1.38-notes (1.38.0-wmf.17; 2022-01-10), ProofreadPage
Mpaa added a comment to T298848: Unrecognized parameter for query continue for proofreadpagesinindex (gprppiifrom vs gprppiicontinue).

@Inductiveload , yes I agree.

Jan 14 2022, 11:42 PM · MW-1.38-notes (1.38.0-wmf.17; 2022-01-10), ProofreadPage
Mpaa added projects to T299264: replace.py: exceptions in user-fixex.py are not compiled according to 'regex' key in fix: Pywikibot, Pywikibot-replace.py.
Jan 14 2022, 11:30 PM · Pywikibot-replace.py, Pywikibot
Mpaa created T299264: replace.py: exceptions in user-fixex.py are not compiled according to 'regex' key in fix.
Jan 14 2022, 11:29 PM · Pywikibot-replace.py, Pywikibot

Jan 9 2022

Mpaa updated the task description for T298848: Unrecognized parameter for query continue for proofreadpagesinindex (gprppiifrom vs gprppiicontinue).
Jan 9 2022, 4:28 PM · MW-1.38-notes (1.38.0-wmf.17; 2022-01-10), ProofreadPage
Mpaa created T298848: Unrecognized parameter for query continue for proofreadpagesinindex (gprppiifrom vs gprppiicontinue).
Jan 9 2022, 4:28 PM · MW-1.38-notes (1.38.0-wmf.17; 2022-01-10), ProofreadPage
Mpaa added a comment to T167200: API: image thumb-url for ProofreadPages.

@Mpaa what's the use case here? There are two ways (non-exclusive) to go about this:

  • Embed the useful data in the pages JS
  • Provide an API to get the info from the server asynchronously

Maybe we should do both?

Jan 9 2022, 4:18 PM · Patch-Needs-Improvement, MW-1.38-notes (1.38.0-wmf.12; 2021-12-06), MediaWiki-Action-API, ProofreadPage

Oct 5 2021

Mpaa added a comment to T292539: djvutext.py failure => got multiple values for keyword argument 'site'.

@Billinghurst, see T292367

Oct 5 2021, 8:20 PM · Pywikibot

Oct 3 2021

Mpaa added a comment to T292367: djvutxt.py raising TypeError.

Probably a regression from https://gerrit.wikimedia.org/r/c/pywikibot/core/+/680754

Oct 3 2021, 1:52 PM · Pywikibot-Scripts, Pywikibot
Mpaa created T292367: djvutxt.py raising TypeError.
Oct 3 2021, 1:51 PM · Pywikibot-Scripts, Pywikibot

Sep 7 2021

Mpaa closed T290400: pagefromfile.py: skip page if content has not changed as Invalid.
Sep 7 2021, 8:55 PM · Pywikibot

Sep 6 2021

Mpaa triaged T290400: pagefromfile.py: skip page if content has not changed as Low priority.
Sep 6 2021, 7:53 PM · Pywikibot

Sep 5 2021

Mpaa updated the task description for T290400: pagefromfile.py: skip page if content has not changed.
Sep 5 2021, 9:07 PM · Pywikibot
Mpaa created T290400: pagefromfile.py: skip page if content has not changed.
Sep 5 2021, 8:58 PM · Pywikibot

Dec 26 2020

Mpaa claimed T57072: pagegenerators should accept pageids.
Dec 26 2020, 10:44 PM · Pywikibot, Pywikibot-pagegenerators.py

Dec 13 2020

Mpaa updated the task description for T270051: Unify Http Exceptions across pywikibot?.
Dec 13 2020, 6:14 PM · Pywikibot
Mpaa triaged T270051: Unify Http Exceptions across pywikibot? as Low priority.
Dec 13 2020, 6:05 PM · Pywikibot
Mpaa created T270051: Unify Http Exceptions across pywikibot?.
Dec 13 2020, 6:05 PM · Pywikibot

Dec 12 2020

Mpaa added a comment to T269503: login.py doesn't work (critical error "due to uncaught exception").

Really strange: The current wikipedia:it release is '1.36.0-wmf.18' and the response should have 'messagecode' key.

Dec 12 2020, 6:32 PM · MediaWiki-Action-API, Pywikibot, Pywikibot-login.py

Nov 24 2020

Mpaa added a comment to T268645: Pywikibot crashing on ratelimit after the ratelimit removal from bot group in 2020.

According to this test, there are several actions that might emit 'wikibase-api-failed-save' as message.
https://github.com/wikimedia/Wikibase/blob/e388e5b69ee0487566d7a8a77196ac0056f49747/repo/tests/phpunit/includes/Api/ApiUserBlockedTest.php

Nov 24 2020, 9:00 PM · Wikidata, Pywikibot

Nov 22 2020

Mpaa renamed T268398: OptionHandler.set_options fails if available_options is overridden in initializer instead as a class attribute from OptionHandler.set_options fails id available_options is overridden in initializer instead as a class attribute to OptionHandler.set_options fails if available_options is overridden in initializer instead as a class attribute.
Nov 22 2020, 9:02 PM · Pywikibot

Nov 13 2020

Mpaa added a comment to T228594: [phetools] Wikisource OCR deletes old contents of a page, but does not generate new text..

@Xover, I think it is a misunderstanding
data.text.substring(0,5) != "<?xml" -> XML is accepted, if it is not XML, then is considered error.

Nov 13 2020, 6:22 PM · Upstream, All-and-every-Wikisource, Tools

Nov 11 2020

Mpaa added a comment to T267762: cannot import name 'httplib' from 'urllib3.response during "pywikibot-core-tox-fasttest-py37-docker".

OK, it might be this:
https://github.com/urllib3/urllib3/commit/d71c784053dbf53b7cf2511f81232102a6a2ec76#diff-008f01f06c84456177464927734cc849c073b1f3d13bfab947ff812a5b4ac965L27

Nov 11 2020, 10:43 PM · Pywikibot
Mpaa added a comment to T267762: cannot import name 'httplib' from 'urllib3.response during "pywikibot-core-tox-fasttest-py37-docker".

Definitely. I tried to install from scratch:

Nov 11 2020, 10:22 PM · Pywikibot
Mpaa added a comment to T267762: cannot import name 'httplib' from 'urllib3.response during "pywikibot-core-tox-fasttest-py37-docker".

New versions of requests and urllib3 were released today.

Nov 11 2020, 10:15 PM · Pywikibot
Mpaa created T267762: cannot import name 'httplib' from 'urllib3.response during "pywikibot-core-tox-fasttest-py37-docker".
Nov 11 2020, 9:46 PM · Pywikibot
Mpaa added a comment to T267717: clean_sandbox.py: uncaught exception: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'.

@Xqt shouldn't self.available_options['delay_td'] be accessible also via self.opt.delay_td also after setting a new value?

Nov 11 2020, 4:10 PM · Pywikibot-Scripts, Pywikibot

Nov 3 2020

Mpaa added a comment to T261549: -redirectonly pagegenerators option wasn't ported from compat.

@Xqt, I think this should be implemented as a filter.

Nov 3 2020, 7:05 PM · Pywikibot-compat-to-core, Pywikibot

Oct 27 2020

Mpaa placed T57072: pagegenerators should accept pageids up for grabs.
Oct 27 2020, 6:06 PM · Pywikibot, Pywikibot-pagegenerators.py
Mpaa placed T73646: replace.py: async output messages jumbled with user interaction on main thread up for grabs.
Oct 27 2020, 6:05 PM · Patch-For-Review, Pywikibot-General, Pywikibot-compat-to-core, Pywikibot
Mpaa placed T198452: Always enable namespace filtering in QueryGenerator up for grabs.
Oct 27 2020, 6:04 PM · Pywikibot

Oct 26 2020

Mpaa updated subscribers of T132676: Impossible to upload a file that ends with the '\r' byte using Pywikibot.

@Anomie is base64 encode supported by api action=upload?

Not in itself, but you can use MIME's Content-Transfer-Encoding to encode the data as base64 rather than binary.

Since I no longer work for the WMF, I'm not inclined to do much to do their work for them at this time.

Oct 26 2020, 5:52 PM · Pywikibot

Oct 25 2020

Mpaa merged task T266117: Frequent chunk-too-small errors into T132676: Impossible to upload a file that ends with the '\r' byte using Pywikibot.
Oct 25 2020, 8:24 PM · Commons, Pywikibot
Mpaa merged T266117: Frequent chunk-too-small errors into T132676: Impossible to upload a file that ends with the '\r' byte using Pywikibot.
Oct 25 2020, 8:24 PM · Pywikibot
Mpaa added a comment to T266117: Frequent chunk-too-small errors.

As my 'personal' work-around, just for UK legislation PDFs that the API flags with chunk-too-small and fails on a second upload, the pdf is trimmed of the final byte and re-attempted. In my view this is a terrible hack rather than a fix.

However, this initially appears to be working with the files both uploading and displaying successfully, though it may later cause unpredictable errors as it's hardly an intelligent fix. Ref to this category for examples.

Code snippet:

rec = uptry(local, fn, dd, comment, False)
if rec in ['chunk-too-small']:
	print "Chunk-too-small, so trying trimming off 1 byte"
	with open(local, 'rb+') as filehandle:
		filehandle.seek(-1, os.SEEK_END)
		filehandle.truncate()
	rec = uptry(local, fn, dd + "\n[[Category:Work around of byte trimmed for chunk-too-small API error]]", comment, False)
Oct 25 2020, 2:25 PM · Commons, Pywikibot
Mpaa added a comment to T132676: Impossible to upload a file that ends with the '\r' byte using Pywikibot.

@Fae, strange, it worked for me, I tried this file and the byte was added.
https://commons.wikimedia.org/w/index.php?title=File%3ABritish_Transport_Commission_Act_1949_%28UKLA_1949-29%29.pdf&type=revision&diff=500900036&oldid=500838588

Oct 25 2020, 2:19 PM · Pywikibot
Mpaa added a comment to T266117: Frequent chunk-too-small errors.

@Fae, I proposed a fix/hack at T132676.
As you have several cases, I would appreciate if you could use it and provide feedback.

Oct 25 2020, 12:18 PM · Commons, Pywikibot

Oct 23 2020

Mpaa updated subscribers of T132676: Impossible to upload a file that ends with the '\r' byte using Pywikibot.

@Anomie is base64 encode supported by api action=upload?

Oct 23 2020, 6:03 PM · Pywikibot

Oct 22 2020

Mpaa added a comment to T266117: Frequent chunk-too-small errors.

I think it is related to T132676, I checked the first file and it ends in '\r'.

Oct 22 2020, 6:02 PM · Commons, Pywikibot

Oct 21 2020

Mpaa added a comment to T265946: scripts fail with -v option in python3.8.

btw, I am using Anaconda distribution.

Oct 21 2020, 5:10 PM · Pywikibot
Mpaa added a comment to T266084: Incorrect server time from pywitibot.

The problem is that with expiry=True in self.siteinfo.get('time', expiry=True)
a CachedRequest is called and there True is converted to 1 day

Oct 21 2020, 9:35 AM · Pywikibot

Oct 20 2020

Mpaa closed T266000: http.py - error_handling_callback as Resolved.
Oct 20 2020, 7:04 PM · Pywikibot-Scripts, Pywikibot
Mpaa reopened T266000: http.py - error_handling_callback as "Open".
Oct 20 2020, 5:22 PM · Pywikibot-Scripts, Pywikibot
Mpaa added a comment to T266000: http.py - error_handling_callback.

Seems working, strange.
Anyhow I have added Server414Error to the managed exceptions, so the bot won't crash.

Oct 20 2020, 2:06 PM · Pywikibot-Scripts, Pywikibot
Mpaa closed T265257: Pywikibot ImageTransfer script has features deprecated for 5 years as Resolved.

OK, I will mark this as Resolved, shall be reopened if needed.

Oct 20 2020, 1:10 PM · Pywikibot
Mpaa added a comment to T266000: http.py - error_handling_callback.

Or better, add another exception handling after line 620

Oct 20 2020, 1:07 PM · Pywikibot-Scripts, Pywikibot
Mpaa added a comment to T266000: http.py - error_handling_callback.

Print the url, if possible.
Add

pywikibot.output(ref.url)
f = comms.http.fetch(ref.url, use_fake_user_agent=self._use_fake_user_agent)

I hope you can reproduce the error without going through 100000 links :-)

Oct 20 2020, 12:54 PM · Pywikibot-Scripts, Pywikibot
Mpaa added a comment to T265257: Pywikibot ImageTransfer script has features deprecated for 5 years.

@Vicarage, is this solved after the patch?

Oct 20 2020, 12:51 PM · Pywikibot
Mpaa added a comment to T266000: http.py - error_handling_callback.

Not sure this is a pywikibot error.
Could you find out which is the ref.url it is trying to fetch in:

f = comms.http.fetch(ref.url, use_fake_user_agent=self._use_fake_user_agent)

and post it here?

Oct 20 2020, 12:46 PM · Pywikibot-Scripts, Pywikibot
  NODES
Note 6
Project 3