pkgutil.ImpImporter is deprecated and Removed in Python 3.12.0

Bug #2038855 reported by Jeremy Cornett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
New
Undecided
Unassigned

Bug Description

09:54:15 Traceback (most recent call last):
09:54:15 File "C:\Jenkins/create_jenkins_node_jnlp.py", line 8, in <module>
09:54:15 import jenkins
09:54:15 File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\jenkins\__init__.py", line 68, in <module>
09:54:15 from jenkins import plugins
09:54:15 File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\jenkins\plugins.py", line 45, in <module>
09:54:15 import pkg_resources
09:54:15 File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\pkg_resources\__init__.py", line 2191, in <module>
09:54:15 register_finder(pkgutil.ImpImporter, find_on_path)
09:54:15 ^^^^^^^^^^^^^^^^^^^
09:54:15 AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Windows 10
Python 3.12.0
https://docs.python.org/3.11/library/pkgutil.html?highlight=impimporter#pkgutil.ImpImporter

Revision history for this message
Asdf (asdf-asdf-asdf-asdf) wrote :
Revision history for this message
eddyrub (eddyrub) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.