EpistasisLab / EpistasisLab/tpot

In python 3.12, Get error after importing module.

Open
#1,327 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
10.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/EpistasisLab/tpot/assets/33408534/546bd790-527b-4e90-984a-b8ec5a26757b)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.