Vladis13 created this task.
Vladis13 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Since June, the "add_text" script gives an error. My bot is broken.
pwb.py add_text -family:wikipedia -lang:ru -page:'4-Гидроксиэстрон'
-text:"{{Нет полных библиографических описаний}}"
-grepnot:"\{\{([Шш]аблон:)?([Рр]едактирую|[Ss]ubst:L|[Ii]n-?use(-by)?|[Pp]rocess(ing)?|[Пп]равлю|[Пп]еревожу|[Пп]ерерабатываю|[Сс]татья
редактируется|[Вв]икифицирую)\s*[|}]" -simulate
0 pages read
0 pages written
0 pages skipped
Execution time: 0 seconds
Script terminated by exception:
ERROR: TypeError: super(type, obj): obj must be an instance or subtype of
type
Traceback (most recent call last):
File "/data/project/shared/pywikipedia/core/pwb.py", line 399, in <module>
if not main():
File "/data/project/shared/pywikipedia/core/pwb.py", line 394, in main
module)
File "/data/project/shared/pywikipedia/core/pwb.py", line 109, in
run_python_file
main_mod.__dict__)
File "/data/project/shared/pywikipedia/core/scripts/add_text.py", line
444, in <module>
main()
File "/data/project/shared/pywikipedia/core/scripts/add_text.py", line
395, in main
bot.run()
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/bot.py",
line 1510, in run
if self.skip_page(page):
File "/data/project/shared/pywikipedia/core/scripts/add_text.py", line
340, in skip_page
if not page.isTalkPage() and ExistingPageBot.skip_page(self, page):
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/bot.py",
line 1840, in skip_page
return super().skip_page(page)
TypeError: super(type, obj): obj must be an instance or subtype of type
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
It started after, by May 1, the `-except` parameter was removed as
deprecated, with a replacement for `-grepnot` (commit 1
<https://github.com/wikimedia/pywikibot/commit/90779d30f35be366f7cdb780418c6dda9b9a3768>
commit 2
<https://github.com/wikimedia/pywikibot/commit/7ba533028b5f2403e42488481a3f73bb73f40f08>)
and maybe something else.
By the way, there were no notifications in the logs that the parameter was
deprecated. As I see the `issue_deprecation_warning ()` method was used for the
warning, maybe it doesn't work reliably?
TASK DETAIL
https://phabricator.wikimedia.org/T285027
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Vladis13
Cc: Aklapper, pywikibot-bugs-list, Xqt, Diwanshu885, atagar, Vladis13,
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi,
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]