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: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12) #209

Closed
n0a opened this issue Oct 20, 2024 · 4 comments

Comments

@n0a
Copy link

n0a commented Oct 20, 2024

macOS Sequoia 15.0.1
Python 3.13

Install log:

➜  ~ pipx install gptme
Fatal error from pip prevented installation. Full pip output in file:
    /Users/n0a/.local/pipx/logs/cmd_2024-10-20_19.40.41_pip_errors.log

pip failed to build packages:
    tiktoken
    tokenizers

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    error: failed to run custom build command for `pyo3-ffi v0.20.3`
    error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
    error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib -- -C 'link-args=-undefined dynamic_lookup -Wl,-install_name,@rpath/_tiktoken.cpython-313-darwin.so'` failed with code 101
    error: failed to run custom build command for `pyo3-ffi v0.21.2`
    Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/Users/n0a/.local/pipx/venvs/gptme/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tiktoken, tokenizers)

Error installing gptme.
@brayo-pip
Copy link
Collaborator

install python 3.12

@brayo-pip
Copy link
Collaborator

I'll check if there's any breaking with python 3.13 if not we can extend the support to include it

@n0a
Copy link
Author

n0a commented Oct 20, 2024

install python 3.12

I have it, but I don't want to change the system version of python.

I'll check if there's any breaking with python 3.13 if not we can extend the support to include it

That would be great, thank you!

@ErikBjare
Copy link
Owner

Python 3.13 support is still tricky, see: #198

Not keeping this issue open as it will resolve itself as dependencies get updated, just use Python 3.12 in the meantime.

@ErikBjare ErikBjare closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
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