Skip to content

distutils removed from python 3.12

using ghostscript 0.7 with Python 3.12 raises ModuleNotFoundError: No module named 'distutils' error.

Error reported from _gsprint.py:487

from distutils.version import LooseVersion

From what I could find, distutils module has been removed from python 3.12 and possibly moved to setuptools. See PEP 632 and Github Issue on PEP 632.

Came across this when using other modules that use ghostscript as a dependency, failed on Python 3.12

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information