pywikibot core_stable.zip August 19 2020
pwb.py imagetransfer -v File:happy.jpeg -tofamily:newwiki
Python 2.7.17 (default, Jul 20 2020, 15:37:01)
[GCC 7.5.0]
------------------------------------------------------------
0. Found image: [[File:happy.jpeg]]
Found 1 oldwiki:en-gb processes running, including this one.
Found 1 newwiki:en-gb processes running, including this one.
============================================================
WARNING: /home/john/bin/pywikibot/core/scripts/imagetransfer.py:143: DeprecationWarning: pywikibot.page.FilePage.fileUrl is deprecated for 4 years and 4 months; use get_file_url instead.
url = sourceImagePage.fileUrl().encode('utf-8')
URL should be: http://oldwiki/images/9/96/happy.jpeg
WARNING: /data/priory1/home/john/bin/pywikibot/core1/pywikibot/page.py:2605: DeprecationWarning: pywikibot.page.FilePage.getFileVersionHistory is deprecated for 5 years and 11 months; use FilePage.get_file_history() instead.
for info in self.getFileVersionHistory():
WARNING: url as string is deprecated. Use an iterable instead.
Logging in to newwiki as John@johnbot
Should be logged in now
ERROR: Upload error: Local file uploads are disabled on newwiki:en-gb.
(File uploads are not disabled on newwiki, $wgEnableUploads = true; and uploads from the webpage work, so there is a real bug, but that's not the focus of this ticket)