tpot icon indicating copy to clipboard operation
tpot copied to clipboard

In python 3.12, Get error after importing module.

Open 115dkk opened this issue 1 year ago • 1 comments

Compile error

https://github.com/EpistasisLab/tpot/issues/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...

115dkk avatar Oct 11 '23 07:10 115dkk

Is this fixed in v0.12.2? Looks like https://github.com/EpistasisLab/tpot/pull/1331 is part of that release.

jamesmyatt avatar Apr 05 '24 12:04 jamesmyatt