Page MenuHomePhabricator

`from pywikibot import *` fails with AttributeError: module 'pywikibot' has no attribute 'SiteLink'
Closed, ResolvedPublic

Description

>>> from pywikibot import *
[...]
pywikibot.bot.QuitKeyboardInterrupt instead.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "...\pywikibot-core\pywikibot\tools\__init__.py", line 1989, in __getattr__
    return getattr(self._module, attr)
AttributeError: module 'pywikibot' has no attribute 'SiteLink'

Revisions and Commits

Event Timeline

Change 517911 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] [bugfix] Import SiteLink in module initializer

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

Change 517911 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Import SiteLink in module initializer

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

Dalba assigned this task to matej_suchanek.