>>> from pywikibot import * Traceback (most recent call last): File "<console>", line 1, in <module> TypeError: Item in ``from list'' not a string
Description
Description
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T72936 Important tasks to be solved (tracking) | |||
Resolved | Xqt | T60053 Pywikibot Python 3 compatibility (tracking) | |||
Resolved | jayvdb | T94688 reflinks.py doesn't save changes to articles | |||
Resolved | xSavitar | T89589 Usage of unicode_literals from __future__ package | |||
Resolved | jayvdb | T111615 pywikibot.__all__ is unicode, causing `TypeError: Item in ``from list'' not a string` |
Event Timeline
Comment Actions
When they are converted to str:
>>> from pywikibot import * WARNING: <string>:1: DeprecationWarning: UserActionRefuse is deprecated; use UserRightsError and/or NotEmailableError WARNING: <string>:1: DeprecationWarning: pywikibot.QuitKeyboardInterrupt is deprecated; use pywikibot.bot.QuitKeyboardInterrupt instead Traceback (most recent call last): File "<console>", line 1, in <module> File ".../pywikibot/tools/__init__.py", line 1495, in __getattr__ return getattr(self._module, attr) AttributeError: 'module' object has no attribute 'TimeStripper'
Comment Actions
Change 236358 had a related patch set uploaded (by John Vandenberg):
all items must be str
Comment Actions
Change 236359 had a related patch set uploaded (by John Vandenberg):
Import textlib.TimeStripper
Comment Actions
Change 243058 had a related patch set uploaded (by John Vandenberg):
all items must be bytes on Python 2
Comment Actions
Change 243512 had a related patch set uploaded (by Merlijn van Deen):
Import textlib.TimeStripper