Page MenuHomePhabricator

'ReferencesRobot' object has no attribute 'dead_links' in pwb 5.0.0
Closed, ResolvedPublicBUG REPORT

Description

@PAWS:~$ pwb.py version
Pywikibot: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, stable)
Release version: 5.0.0
requests version: 2.24.0
  cacerts: /srv/paws/lib/python3.6/site-packages/certifi/cacert.pem
    certificate test: ok
Python: 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
PYWIKIBOT_DIR: /srv/paws
PYWIKIBOT_DIR_PWB: /srv/paws/pwb
PYWIKIBOT_NO_USER_CONFIG: Not set
Config base dir: /srv/paws
Usernames for family "wikiquote":
        *: Rubinbot
Usernames for family "wikinews":
        *: Rubinbot
Usernames for family "wikipedia":
        *: Rubinbot
Usernames for family "wikidata":
        *: Rubinbot
Usernames for family "commons":
        *: Rubinbot
Usernames for family "wikibooks":
        *: Rubinbot
Usernames for family "meta":
        *: Rubinbot
Usernames for family "mediawiki":
        *: Rubinbot
Usernames for family "wikiversity":
        *: Rubinbot
Usernames for family "wikivoyage":
        *: Rubinbot
Usernames for family "wiktionary":
        *: Rubinbot
Usernames for family "wikisource":
        *: Rubinbot
Usernames for family "wikimedia":
        *: Rubinbot
@PAWS:~$
@PAWS:~$ pwb.py reflinks -always -start:убийцы_на_замену -v -debug

=== Pywikibot framework v5.0.0 -- Logging header ===
COMMAND: ['/srv/paws/pwb/scripts/reflinks.py', '-always', '-start:убийцы_на_замену', '-v', '-debug']
DATE: 2020-10-19 17:29:31.130437 UTC
VERSION: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, n/a)
SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64')
CONFIG FILE DIR: /srv/paws
PACKAGES:
  _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ??
  _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1
  _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0
  _cython_0_29_21 ([path unknown]) = ??
  _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70
  blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4
  brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ??
  bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1
  certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20
  chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4
  cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0
  ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0
  cython_runtime ([path unknown]) = ??
  decimal (/usr/lib/python3.6/decimal.py) = 1.70
  distutils (/usr/lib/python3.6/distutils/) = 3.6.9
  idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10
  ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0
  json (/usr/lib/python3.6/json/) = 2.0.9
  jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1
  logging (/usr/lib/python3.6/logging/) = 0.5.1.2
  lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2
  mpl_toolkits ([path unknown]) = ??
  mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7
  mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4
  oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0
  pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ??
  platform (/usr/lib/python3.6/platform.py) = 1.0.8
  re (/usr/lib/python3.6/re.py) = 2.2.1
  requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0
  requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0
  ruamel ([path unknown]) = ??
  setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0
  six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0
  soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1
  urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10
MODULES:
  2020-10-19 17:23:18 /srv/paws/pwb/scripts/reflinks.py
  2020-10-19 17:23:18 /srv/paws/pwb/setup.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__metadata__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/_wbtypes.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/bot.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/config2.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/logging.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/_unidata.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/daemonize.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/i18n.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/exceptions.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/plural.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/version.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/comms/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/comms/http.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/comms/threadedhttp.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/bot_choice.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/_logging.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/formatter.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/userinterfaces/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_base.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/transliteration.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_unix.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/data/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/data/api.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/login.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/family.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/diff.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/chars.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/echo.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/_decorators.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/_siteinfo.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/throttle.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/page/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/textlib.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/pagegenerators.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/date.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/xmlreader.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/proofreadpage.py
  2020-07-30 19:46:59 /srv/paws/pwb/scripts/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/scripts/noreferences.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/families/wikipedia_family.py
=========================================================

=== Pywikibot framework v5.0.0 -- Logging header ===
COMMAND: ['/srv/paws/pwb/scripts/reflinks.py', '-always', '-start:убийцы_на_замену', '-v', '-debug']
DATE: 2020-10-19 17:29:31.457455 UTC
VERSION: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, n/a)
SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64')
CONFIG FILE DIR: /srv/paws
PACKAGES:
  _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ??
  _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1
  _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0
  _cython_0_29_21 ([path unknown]) = ??
  _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70
  blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4
  brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ??
  bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1
  certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20
  chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4
  cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0
  ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0
  cython_runtime ([path unknown]) = ??
  decimal (/usr/lib/python3.6/decimal.py) = 1.70
  distutils (/usr/lib/python3.6/distutils/) = 3.6.9
  idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10
  ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0
  json (/usr/lib/python3.6/json/) = 2.0.9
  jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1
  logging (/usr/lib/python3.6/logging/) = 0.5.1.2
  lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2
  mpl_toolkits ([path unknown]) = ??
  mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7
  mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4
  oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0
  pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ??
  platform (/usr/lib/python3.6/platform.py) = 1.0.8
  re (/usr/lib/python3.6/re.py) = 2.2.1
  requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0
  requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0
  ruamel ([path unknown]) = ??
  setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0
  six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0
  soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1
  urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10
MODULES:
  2020-10-19 17:23:18 /srv/paws/pwb/scripts/reflinks.py
  2020-10-19 17:23:18 /srv/paws/pwb/setup.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__metadata__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/_wbtypes.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/bot.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/config2.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/logging.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/_unidata.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/daemonize.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/i18n.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/exceptions.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/plural.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/version.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/comms/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/comms/http.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/comms/threadedhttp.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/bot_choice.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/_logging.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/formatter.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/userinterfaces/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_base.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/transliteration.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_unix.py
  2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/data/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/data/api.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/login.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/family.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/diff.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/tools/chars.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/echo.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/_decorators.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/site/_siteinfo.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/throttle.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/page/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/textlib.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/pagegenerators.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/date.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/xmlreader.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/proofreadpage.py
  2020-07-30 19:46:59 /srv/paws/pwb/scripts/__init__.py
  2020-10-19 17:23:18 /srv/paws/pwb/scripts/noreferences.py
  2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/families/wikipedia_family.py
=========================================================
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.13
Found 1 wikipedia:ru processes running, including this one.
Retrieving 50 pages from wikipedia:ru.
WARNING: Http response status 404
WARNING: /srv/paws/pwb/scripts/reflinks.py:592: DeprecationWarning: "toStdout" parameter is deprecated for 4 years and 7 months; use pywikibot.stdout() instead.
  toStdout=True)

HTTP error (404) for http://www.soundtrackinfo.com/OST/replacementkillers// on [[Убийцы на замену]]
Traceback (most recent call last):
  File "/srv/paws/pwb/pwb.py", line 363, in <module>
    if not main():
  File "/srv/paws/pwb/pwb.py", line 358, in main
    file_package)
  File "/srv/paws/pwb/pwb.py", line 75, in run_python_file
    main_mod.__dict__)
  File "/srv/paws/pwb/scripts/reflinks.py", line 820, in <module>
    main()
  File "/srv/paws/pwb/scripts/reflinks.py", line 816, in main
    bot.run()
  File "/srv/paws/pwb/scripts/reflinks.py", line 597, in run
    in self.dead_links)):
  File "/srv/paws/pwb/pywikibot/bot.py", line 1159, in __getattribute__
    attr = super().__getattribute__(name)
AttributeError: 'ReferencesRobot' object has no attribute 'dead_links'
Dropped throttle(s).
Closing network session.
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
Network session closed.

Event Timeline

JJMC89 changed the subtype of this task from "Task" to "Bug Report".

Change 635060 had a related patch set uploaded (by JJMC89; owner: JJMC89):
[pywikibot/core@master] [FIX] Call ReferencesRobot.setup()

https://gerrit.wikimedia.org/r/635060

this patch works for me

Change 635060 merged by jenkins-bot:
[pywikibot/core@master] [FIX] Call ReferencesRobot.setup()

https://gerrit.wikimedia.org/r/635060