tpot
tpot copied to clipboard
In python 3.12, Get error after importing module.
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
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...
Is this fixed in v0.12.2? Looks like https://github.com/EpistasisLab/tpot/pull/1331 is part of that release.