You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running pip debug in Python 3.13.0a5, it raises AttributeError.
It seems that this error was caused by removal of importlib.resources.open_text in 3.13.
Expected behavior
pip debug doesn't raise AttributeError: module 'importlib.resources' has no attribute 'open_text'
pip version
24.0
Python version
Python 3.13.0a5
OS
Ubuntu 23.10
How to Reproduce
pyenv install 3.13.0a5 && pyenv global 3.13.0a5
pip debug
Output
$ pip debugWARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change withoutnotice.pip version: pip 24.0 from /home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip (python 3.13)sys.version: 3.13.0a5 (main, Mar 18 2024, 23:49:36) [GCC 13.2.0]sys.executable: /home/eggplants/.pyenv/versions/3.13.0a5/bin/python3.13sys.getdefaultencoding: utf-8sys.getfilesystemencoding: utf-8locale.getpreferredencoding: UTF-8sys.platform: linuxsys.implementation: name: cpython'cert' config value: Not specifiedREQUESTS_CA_BUNDLE: NoneCURL_CA_BUNDLE: Nonepip._vendor.certifi.where(): /home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip/_vendor/certifi/cacert.pempip._vendor.DEBUNDLED: Falsevendored library versions:ERROR: Exception:Traceback (most recent call last): File "/home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ~~~~~~~~^^^^^^^ File "/home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip/_internal/commands/debug.py", line 197, in run show_vendor_versions() ~~~~~~~~~~~~~~~~~~~~^^ File "/home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip/_internal/commands/debug.py", line 106, in show_vendor_versions vendor_txt_versions = create_vendor_txt_map() ~~~~~~~~~~~~~~~~~~~~~^^ File "/home/eggplants/.pyenv/versions/3.13.0a5/lib/python3.13/site-packages/pip/_internal/commands/debug.py", line 38, in create_vendor_txt_map with importlib.resources.open_text("pip._vendor", "vendor.txt") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AttributeError: module 'importlib.resources' has no attribute 'open_text'
Description
When running
pip debug
in Python 3.13.0a5, it raisesAttributeError
.It seems that this error was caused by removal of
importlib.resources.open_text
in 3.13.Expected behavior
pip debug
doesn't raiseAttributeError: module 'importlib.resources' has no attribute 'open_text'
pip version
24.0
Python version
Python 3.13.0a5
OS
Ubuntu 23.10
How to Reproduce
pyenv install 3.13.0a5 && pyenv global 3.13.0a5
pip debug
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: