User talk:Xqt

From Wikisource
Latest comment: 3 years ago by Xqt in topic imagetransfer.py from Commons to enWS
Jump to navigation Jump to search

imagetransfer.py from Commons to enWS[edit]

Hi Xqt,

I just tried to pwb.py imagetransfer 'File:The principle of relativity (1920).djvu' -tolang:en -tofamily:wikisource (on PAWS), imagining that that would transfer that file from Commons to locally here on enWS (it's a copyvio on Commons but permitted on enWS due to policy differences). But the result was a raise(): pywikibot.exceptions.UnknownFamily: Family en does not exist (from family.py:574).

Am I just being dumb, or did this break it? --Xover (talk) 15:08, 1 April 2021 (UTC)Reply

This is task phab:T279232 and solved already with gerrit:676729. It will be shipped with stable release 6.1.0 shortly. As a work arround you may use -tosite:wikisource:en instead of -tolang -tofamily pairs (or always use -tosite. Best Xqt (talk) 12:22, 13 April 2021 (UTC)Reply
Thanks. I've verified that -tosite will not fail with the stack trace above. But it does fail by saying the file already exists on Commons. I'm having trouble reading the status of that issue from phab:T267535. Is transferring files from Commons to another WMF wiki currently supposed to work? Is it one of the fixes coming in 6.1.0? Or is it still blocked on needing rewrites of big chunks of UploadRobot? --Xover (talk) 18:13, 13 April 2021 (UTC)Reply
I've to investigate into this matter first. There are a lot of issues with the UploadRobot but also restrictions at MediaWiki side and it is not trivial to solve all of them. I am sorry I need some more time for them. Xqt (talk) 10:27, 15 April 2021 (UTC)Reply
Thanks. I very much understand the complexity and that it takes time. I was just asking because I had trouble understanding the comments in the above mentioned Phabricator tasks, and the current status of the issue was all I was looking for. --Xover (talk) 12:48, 15 April 2021 (UTC)Reply
phab:T279232 is already solved. I hope the patch will merged this weekend until other CI tests passes. phab:T267535 is very hard to solve and I guess the code must be rewritten a lot but also some traps has to be included for the tests to understand the behaviour of that interface. I'ts not a code part that I use commonly. Xqt (talk) 06:57, 16 April 2021 (UTC)Reply