C:\pwb\GIT\core>pwb imagetransfer -simulate -page:File:Foobar.jpg -family:commons -lang:commons -tosite:wikipedia:de -force
------------------------------------------------------------
1. Found image: [[File:Foobar.jpg]]
=={{int:filedesc}}==
{{Information
|description={{en|1=Image for parser testing.}}{{fr|Image pour tester l'analyseur}}
|date=2011-07-04
|source={{own}}
|author=[[User:Kaldari|Kaldari]]
|permission=
|other_versions=
|other_fields=
}}
=={{int:license-header}}==
{{self|cc-zero}}
{{User page image}}
============================================================
URL should be: https://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg
0 pages read
0 pages written
0 pages skipped
Execution time: 0 seconds
Script terminated by exception:
ERROR: AttributeError: 'UploadRobot' object has no attribute 'site'
Traceback (most recent call last):
File "C:\pwb\GIT\core\pwb.py", line 363, in <module>
if not main():
File "C:\pwb\GIT\core\pwb.py", line 355, in main
run_python_file(filename,
File "C:\pwb\GIT\core\pwb.py", line 74, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File ".\scripts\imagetransfer.py", line 361, in <module>
main()
File ".\scripts\imagetransfer.py", line 357, in main
bot.run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1487, in run
self.treat(page)
File ".\scripts\imagetransfer.py", line 295, in treat
self.transfer_image(image)
File ".\scripts\imagetransfer.py", line 205, in transfer_image
bot = UploadRobot(url=url, description=description,
File "C:\pwb\GIT\core\pywikibot\tools\__init__.py", line 1449, in wrapper
return obj(*__args, **__kw)
File "C:\pwb\GIT\core\pywikibot\specialbots\_upload.py", line 117, in __init__
default_site = self.site
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1148, in __getattribute__
attr = super().__getattribute__(name)
AttributeError: 'UploadRobot' object has no attribute 'site'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [bugfix] BaseBot has no site attribute | pywikibot/core | master | +2 -2 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Feature | Inductiveload | T267535 Need -force on scripts/imagetransfer.py to transfer the file from Commons to another wiki | ||
| Resolved | BUG REPORT | Xqt | T267573 UploadBot: BaseBot does not have a site attribute |
Event Timeline
Comment Actions
Change 640175 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] BaseBot has no site attribute
Comment Actions
Change 640175 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] BaseBot has no site attribute