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

Support for Python 3.12 #613

Closed
dantetemplar opened this issue Jun 16, 2024 · 11 comments
Closed

Support for Python 3.12 #613

dantetemplar opened this issue Jun 16, 2024 · 11 comments

Comments

@dantetemplar
Copy link

When I was trying to add kraken package to my project on Python 3.12 I got error:

poetry add kraken
Using version ^5.2.5 for kraken

Updating dependencies
Resolving dependencies... (0.1s)

The current project's supported Python range (>=3.10,<3.13) is not compatible with some of the required packages Python requirement:
  - kraken requires Python <=3.11.99,>=3.8, so it will not be satisfied for Python >3.11.99,<3.13

Because no versions of kraken match >5.2.5,<6.0.0
 and kraken (5.2.5) requires Python <=3.11.99,>=3.8, kraken is forbidden.
So, because innohassle-search-experiments depends on kraken (^5.2.5), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For kraken, a possible solution would be to set the `python` property to ">=3.10,<=3.11.99"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

Maybe package dependency on Python should be extended.

@dantetemplar
Copy link
Author

If I can help somehow - tag me and give kind off instructions.

@mittagessen
Copy link
Owner

mittagessen commented Jun 17, 2024 via email

@dantetemplar
Copy link
Author

Yes, there are a couple of dependencies that don't have 3.12 and some people are rquired to run kraken on python 3.8 which some 3.12-compatible dependency release have already deprecated. There won't be a bump up to 3.12 until 3.8 is EOL the end of this year at least.

Okay, let's freeze this issue until 2024-10.

@dantetemplar dantetemplar closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
@amitdo
Copy link
Contributor

amitdo commented Oct 14, 2024

@mittagessen
Copy link
Owner

mittagessen commented Oct 14, 2024 via email

@mittagessen mittagessen reopened this Oct 18, 2024
@mittagessen
Copy link
Owner

I'm in the process of deprecating 3.8 and bumping up most dependencies (see PR #653). Unfortunately, coremltools still doesn't have 3.12 support so I won't be able to enable that one for now.

@amitdo
Copy link
Contributor

amitdo commented Oct 18, 2024

apple/coremltools#2129

@mittagessen
Copy link
Owner

mittagessen commented Oct 18, 2024 via email

@amitdo
Copy link
Contributor

amitdo commented Nov 20, 2024

https://pypi.org/project/coremltools/#data

coremltools 8.1 supports python 3.12.

@mittagessen
Copy link
Owner

mittagessen commented Nov 20, 2024 via email

@mittagessen
Copy link
Owner

I've just merged the PR enabling 3.12 support and tagged a new 5.3.0 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

3 participants