Skip to content

Library package not compatible with Python 3.12 - distutils #8

Open
@Saxos-Simone

Description

@Saxos-Simone

Symptom

Hi, trying to run a Python script that imports the connect function:

from interbase import connect

I receive the following error:

ModuleNotFoundError: No module named 'distutils'

And the following traceback:

Traceback (most recent call last):
  File "...\plugins\python-ce\helpers\pydev\pydevd.py", line 1527, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "...\main.py", line 4, in <module>
    from interbase import connect
  File "...\Lib\site-packages\interbase\__init__.py", line 27, in <module>
    from interbase.ibcore import *
  File "...\Lib\site-packages\interbase\ibcore.py", line 41, in <module>
    from distutils import util

Cause

I believe the cause of the problem is that the distutils module was deprecated and removed in Python 3.12.

As you can read in the official documentation

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions