DeprecationWarning for inkex: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

Steps to reproduce:

  • open Inkscape
  • from the top menu open Extentsions > Manage Extensions...
  • close the extension manager

What happened?

The following warning is shown as a dialogue:

<frozen importlib._bootstrap>:671: ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()
<frozen importlib._bootstrap>:671: ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()
/usr/share/inkscape/extensions/inkex/command.py:73: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.spawn import find_executable
```oundError: No module named 'urllib3'

What should have happened?

The extension manager should close without any extra warnings.

See PEP 632: https://www.python.org/dev/peps/pep-0632/

Inkscape Version and Operating System:

Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20)

    GLib version:     2.70.1
    GTK version:      3.24.30
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.4
    Pango version:    1.49.3
    HarfBuzz version: 2.8.2
    Poppler version:  21.08.0

    OS version:       Fedora Linux 35 (Workstation Edition)
Edited Dec 01, 2021 by Nathan Lee
Assignee Loading
Time tracking Loading