Skip to content

In python 3.12, Get error after importing module. #1327

@115dkk

Description

@115dkk

Compile error

#791

As you can see, there was a warning that 'imp' is deprecated. However, since then, there hasn't been much improvement...

In Python 3.12, that feature was completely removed, and now I get compile errors because of it.

Process to reproduce the issue

Import TPOT by any means and run your code in python 3.12.

Expected result

image

Current result

ModuleNotFoundError: No module named 'imp'

Possible fix

I fixed this by manually erasing "import imp" in base.py of tpot.

or.... Perhaps https://pypi.org/project/zombie-imp/ could be used...

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