Skip to content

Incompatibility with python 3.12+ pkg_resources / pkgutil.ImpImporter Errors #69

@ValentinSatge

Description

@ValentinSatge

Small description
I'm trying to install and use the tell package on Windows, but I encountered a version compatibility issue with Python 3.12.

When installing the package (or running the code), I get the following error:

"AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?"

This seems to be related to the deprecation and removal of legacy pkgutil.ImpImporter in Python 3.12. Additionally, I encountered issues related to pkg_resources which appears to rely on pkgutil.ImpImporter internally.

Root Cause (as far as I can tell)
pkgutil.ImpImporter was deprecated in Python 3.10 and removed in Python 3.12.

Some parts of the tell package (or one of its dependencies) still reference this, likely through pkg_resources (from setuptools).

As a result, the code fails to run under Python 3.12+.

Workaround
I downgraded to Python 3.9, created a virtual environment manually, and everything works fine there. It seems the package is compatible with Python ≥3.9 and <3.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions