[New-bugs-announce] [issue44215] help() module listing displays import warnings from deprecated package modules
Stefano Rivera
report at bugs.python.org
Sun May 23 08:18:27 EDT 2021
New submission from Stefano Rivera <python at rivera.za.net>:
Originally reported against pypy3 in Ubuntu
https://bugs.launchpad.net/ubuntu/+source/pypy3/+bug/1920675
$ ./python
Python 3.10.0a5+ (heads/master:ffa55d21b4, May 23 2021, 08:14:50)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/usr/lib/python3/dist-packages/')
>>> help()
...
help> modules
Please wait a moment while I gather a list of all available modules...
/usr/lib/python3/dist-packages/IPython/kernel/__init__.py:12: ShimWarning: The `IPython.kernel` package has been deprecated since IPython 4.0.You should import from ipykernel or jupyter_client instead.
warn("The `IPython.kernel` package has been deprecated since IPython 4.0."
Expected Tk Togl installation in /usr/lib/python3/dist-packages/OpenGL/Tk/togl-linux-64
Failure loading Togl package: can't find package Togl, on debian systems this is provided by `libtogl2`
...
Crypto brain_crypt hgext random
...
Warnings should probably be suppressed during module importing in help. Any warnings emitted here are probably deprecation warnings or system configuration issues, not useful to a user trying to browse modules.
----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 394196
nosy: docs at python, stefanor
priority: normal
severity: normal
status: open
title: help() module listing displays import warnings from deprecated package modules
type: behavior
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44215>
_______________________________________
More information about the New-bugs-announce
mailing list