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

Error installing the tokenizers library with Python 3.13 #1657

Closed
KEYTRON opened this issue Oct 17, 2024 · 3 comments
Closed

Error installing the tokenizers library with Python 3.13 #1657

KEYTRON opened this issue Oct 17, 2024 · 3 comments

Comments

@KEYTRON
Copy link

KEYTRON commented Oct 17, 2024

Expected behavior

The library should install successfully.

Current behavior

An error is raised:
error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)

Additional Information

Issue with tokenizers installation

Versions:

  • Tokenizers version: Not installed (failed to install)
  • PyO3 version: Not installed (failed to install)
  • Operating system: macOS 15.0.1
  • Python version: 3.13.0
  • pip version: 24.2

Description:
I encountered an issue while trying to install the tokenizers package. The build process fails due to a compatibility issue with the version of PyO3 and the installed version of Python (3.13.0).

The error message indicates that the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12).

Steps to reproduce:

  1. Create a virtual environment.
  2. Run the command pip install tokenizers.
  3. Observe the error messages regarding the build process.

Error log:
tokenizers_installation_issue.log.txt

Please provide guidance on how to resolve this issue.

@graipher
Copy link

graipher commented Oct 18, 2024

The log on my machine also contains this line:

please check if an updated version of PyO3 is available. Current version: 0.21.2

The current version of PyO3 is 0.22.5, Python 3.13 support was initially added in 0.22.0.

I guess, the version needs to be bumped here?

@ArthurZucker
Copy link
Collaborator

#1646 is meant to adresse this, and there is a tracker #1639 !

@yz-al
Copy link

yz-al commented Oct 20, 2024

Blocked on this.

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

4 participants