Page MenuHomePhabricator

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


Traceback (most recent call last):
  File ".\tests\", line 263, in test_moved_target_fail_old
  File "C:\pwb\GIT\core\tests\", line 996, in get_mainpage
    mainpage = pywikibot.Page(site, site.siteinfo['mainpage'])
  File "C:\pwb\GIT\core\pywikibot\site\", line 254, in __getitem__
    return self.get(key, False)  # caches and doesn't force it
  File "C:\pwb\GIT\core\pywikibot\site\", line 302, in get
    preloaded = self._get_general(key, expiry)
  File "C:\pwb\GIT\core\pywikibot\site\", line 242, in _get_general
    default_info = self._get_siteinfo(props, expiry)
  File "C:\pwb\GIT\core\pywikibot\site\", line 166, in _get_siteinfo
    data = request.submit()
  File "C:\pwb\GIT\core\pywikibot\data\", line 2125, in submit
    self._data = super().submit()
  File "C:\pwb\GIT\core\pywikibot\data\", line 1869, in submit
    use_get, uri, body, headers = self._get_request_params(use_get,
  File "C:\pwb\GIT\core\pywikibot\data\", line 1579, in _get_request_params
    uri =
  File "C:\pwb\GIT\core\pywikibot\", line 914, in apipath
    return '%s/api.php' % self.scriptpath(code)
  File "C:\pwb\GIT\core\pywikibot\", 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

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

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