Page MenuHomePhabricator

__class__ cell not found for AutoFamily.scriptpath
Closed, ResolvedPublicBUG REPORT

Description

Traceback (most recent call last):
  File ".\tests\logentries_tests.py", line 263, in test_moved_target_fail_old
    self.get_mainpage(site).moved_target()
  File "C:\pwb\GIT\core\tests\aspects.py", line 996, in get_mainpage
    mainpage = pywikibot.Page(site, site.siteinfo['mainpage'])
  File "C:\pwb\GIT\core\pywikibot\site\_siteinfo.py", line 254, in __getitem__
    return self.get(key, False)  # caches and doesn't force it
  File "C:\pwb\GIT\core\pywikibot\site\_siteinfo.py", line 302, in get
    preloaded = self._get_general(key, expiry)
  File "C:\pwb\GIT\core\pywikibot\site\_siteinfo.py", line 242, in _get_general
    default_info = self._get_siteinfo(props, expiry)
  File "C:\pwb\GIT\core\pywikibot\site\_siteinfo.py", line 166, in _get_siteinfo
    data = request.submit()
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2125, in submit
    self._data = super().submit()
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1869, in submit
    use_get, uri, body, headers = self._get_request_params(use_get,
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1579, in _get_request_params
    uri = self.site.apipath()
  File "C:\pwb\GIT\core\pywikibot\family.py", line 914, in apipath
    return '%s/api.php' % self.scriptpath(code)
  File "C:\pwb\GIT\core\pywikibot\family.py", line 1401, in scriptpath
    return super().scriptpath(code)
RuntimeError: super(): __class__ cell not found

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Dec 17 2020, 9:36 AM

Change 650090 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] AutoFamily: type and object must be given for super call

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

Change 650090 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] AutoFamily: type and object must be given for super call

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

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