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

tpot 0.12.1 doesn't work with python 3.12 #39

Closed
1 task done
petervanwylen opened this issue Feb 26, 2024 · 7 comments · Fixed by conda-forge/conda-forge-repodata-patches-feedstock#673
Closed
1 task done
Labels

Comments

@petervanwylen
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

tpot 0.12.1 doesn't work with python 3.12 because it attempts to import imp in base.py. Suggesting you change tpot_python in the recipe to specify 3.11 as the max python version currently supported.

Installed packages

python tpot numpy pandas

Environment info

n/a
@bollwyvl
Copy link
Contributor

Probably no version of tpot ever has worked with python 3.12. So even if changed on the feedstock (on e.g. #38), it would take additional work to make something useful happen (a solver would just go walk back to the previous version).

If this support is important for you, it would likely be most useful to continue the conversation upstream on EpistasisLab/tpot#1327

@petervanwylen
Copy link
Author

I see you updated the recipe. Thank you! What this means is that someone typing "conda create -n automl tpot numpy pandas" at least will get a functional environment as it'll know to not install python 3.12 but to bump it down to 3.11.

@bollwyvl
Copy link
Contributor

There is no guarantee of that, it might just pull an older tpot that doesn't have the pin.

@petervanwylen
Copy link
Author

petervanwylen commented Feb 26, 2024 via email

@jakirkham
Copy link
Member

Could add a repodata patch for the old versions to add an upper bound

Admittedly some of them may need an even lower upper bound that just 3.12 (like if they don't work with 3.11 either for example)

Here is an example: conda-forge/conda-forge-repodata-patches-feedstock#584

@bollwyvl
Copy link
Contributor

Yep, on it. noarch: python was added 0.11.2, so nothing prior to that is affected by this incompatibility.

Here's the basic idea (still waiting for the diff):

# uses now-removed `imp` module, see:
# - https://github.com/conda-forge/tpot-feedstock/issues/39
# - https://github.com/EpistasisLab/tpot/issues/1327
if:
  name: tpot
  version_lt: 0.12.2
  version_ge: 0.11.2
  timestamp_lt: 1708983815000
then:
  - tighten_depends:
      name: python
      upper_bound: 3.12

@bollwyvl
Copy link
Contributor

Got this up, but had some local issues vs anaconda.org: conda-forge/conda-forge-repodata-patches-feedstock#673

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

Successfully merging a pull request may close this issue.

3 participants