Urbanecm created this task.
Urbanecm added projects: Pywikibot, Pywikibot-replace.py.
Restricted Application added subscribers: pywikibot-bugs-list, Cyberpower678,
Aklapper.
TASK DESCRIPTION
urbanecm@tools-sgebastion-07 ~/Documents/cswiki/removeIABotNotifs
$ ./script.sh
/shared/pywikipedia/core/pywikibot/config2.py:1075:
_ConfigurationDeprecationWarning:
"interwiki_contents_on_disk" present in our user-config.py is no
longer a supported configuration variable and should be removed.
Please inform the maintainers if you depend on it.
_ConfigurationDeprecationWarning)
/shared/pywikipedia/core/pywikibot/config2.py:1075:
_ConfigurationDeprecationWarning:
"use_mwparserfromhell" present in our user-config.py is no longer a
supported configuration variable and should be removed. Please inform
the maintainers if you depend on it.
_ConfigurationDeprecationWarning)
0 pages read
0 pages written
0 pages skipped
Execution time: 3 seconds
Script terminated by exception:
ERROR: TypeError: preloadpages() takes 2 positional arguments but 3 were
given
Traceback (most recent call last):
File "/shared/pywikibot/core/scripts/replace.py", line 1170, in <module>
main()
File "/shared/pywikibot/core/scripts/replace.py", line 1162, in main
bot.run()
File "/shared/pywikipedia/core/pywikibot/bot.py", line 1400, in run
for item in self.generator:
File "/shared/pywikipedia/core/pywikibot/pagegenerators.py", line 2214,
in PreloadingGenerator
yield from site.preloadpages(pages, groupsize)
TypeError: preloadpages() takes 2 positional arguments but 3 were given
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
urbanecm@tools-sgebastion-07 ~/Documents/cswiki/removeIABotNotifs
$ cat script.sh
#!/bin/bash
python3 /shared/pywikibot/core/scripts/replace.py -search:'insource:/==
Externí odkazy či reference byly změněny/' -summary:'Robot: Odstranění
notifikace InternetArchiveBota' -dotall -regex "\s*== Externí odkazy
či reference byly změněny \(.*\)
==\n\n.*—\[\[:en:User:InternetArchiveBot\|.*Nahlásit[^(]* \(CES?T\)" '\1'
urbanecm@tools-sgebastion-07 ~/Documents/cswiki/removeIABotNotifs
$
TASK DETAIL
https://phabricator.wikimedia.org/T258329
WORKBOARD
https://phabricator.wikimedia.org/project/board/87/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Urbanecm
Cc: Aklapper, Cyberpower678, pywikibot-bugs-list, Urbanecm, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, Xqt, jayvdb,
Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs