$ python -We pwb.py Traceback (most recent call last): File "pwb.py", line 187, in <module> import pywikibot File "...\pywikibot-core\pywikibot\__init__.py", line 65, in <module> from pywikibot.family import Family File "...\pywikibot-core\pywikibot\family.py", line 14, in <module> import imp File "...\Python\Python36\lib\imp.py", line 33, in <module> DeprecationWarning, stacklevel=2) DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses <class 'DeprecationWarning'> CRITICAL: Closing network session.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| family.py: Do not use the `imp` module in Python 3 | Dalba | pywikibot/core | master | +15 -5 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Invalid | None | T72936 Important tasks to be solved (tracking) | |||
| Resolved | Xqt | T60053 Pywikibot Python 3 compatibility (tracking) | |||
| Resolved | Dalba | T158640 DeprecationWarning: the imp module is deprecated in favour of importlib |
Event Timeline
Comment Actions
Change 338958 had a related patch set uploaded (by Dalba):
family.py: Use importlib instead of imp for Python 3.5
Comment Actions
Change 338958 merged by jenkins-bot:
[pywikibot/core@master] family.py: Do not use the imp module in Python 3