Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
115dkk opened this issue Oct 11, 2023 · 1 comment
Open

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

115dkk opened this issue Oct 11, 2023 · 1 comment

Comments

@115dkk
Copy link

115dkk commented Oct 11, 2023

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...

@jamesmyatt
Copy link
Contributor

jamesmyatt commented Apr 5, 2024

Is this fixed in v0.12.2? Looks like #1331 is part of that release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants