selflink.py halts while calling unlink.py with the following error:
$ python pwb.py selflink.py -start:A
Retrieving 50 pages from wikipedia:pl.
A <<<
0 pages read
0 pages written
Execution time: 0 seconds
Script terminated by exception:
ERROR: AttributeError: 'SelflinkBot' object has no attribute 'pageToUnlink'
Traceback (most recent call last):
File "pwb.py", line 255, in <module> if not main(): File "pwb.py", line 249, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pwb.py", line 121, in run_python_file main_mod.__dict__) File "./scripts/selflink.py", line 110, in <module> main() File "./scripts/selflink.py", line 106, in main bot.run() File "/usr/home/masti/pw/core/pywikibot/bot.py", line 1621, in run super(MultipleSitesBot, self).run() File "/usr/home/masti/pw/core/pywikibot/bot.py", line 1435, in run self.treat(page) File "/usr/home/masti/pw/core/pywikibot/bot.py", line 1722, in treat super(ExistingPageBot, self).treat(page) File "/usr/home/masti/pw/core/pywikibot/bot.py", line 1786, in treat super(NoRedirectPageBot, self).treat(page) File "/usr/home/masti/pw/core/pywikibot/bot.py", line 1649, in treat self.treat_page() File "./scripts/selflink.py", line 74, in treat_page self.unlink(self.current_page) File "/usr/home/masti/pw/core/scripts/unlink.py", line 97, in unlink unlink_callback = self._create_callback() File "./scripts/selflink.py", line 60, in _create_callback callback = super(SelflinkBot, self)._create_callback() File "/usr/home/masti/pw/core/scripts/unlink.py", line 91, in _create_callback return InteractiveUnlink(self) File "/usr/home/masti/pw/core/scripts/unlink.py", line 59, in __init__ old_link=bot.pageToUnlink, new_link=False, default='u')
AttributeError: 'SelflinkBot' object has no attribute 'pageToUnlink'
<type 'exceptions.AttributeError'>
CRITICAL: Closing network session.
run on a clean new core installation
$ python pwb.py version.py
Pywikibot: [https] r-pywikibot-core.git (1b3d330, g7586, 2016/11/14, 14:21:21, n/a)
Release version: 3.0-dev
requests version: 2.3.0
cacerts: /etc/ssl/certs/ca-certificates.crt certificate test: ok
Python: 2.7.7 (default, Dec 9 2014, 00:19:44)
[GCC 4.3.4]
PYWIKIBOT2_DIR: Not set
PYWIKIBOT2_DIR_PWB:
PYWIKIBOT2_NO_USER_CONFIG: Not set