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

Wheels for Python 3.13 #7

Open
egorsmkv opened this issue Dec 19, 2024 · 2 comments
Open

Wheels for Python 3.13 #7

egorsmkv opened this issue Dec 19, 2024 · 2 comments

Comments

@egorsmkv
Copy link

Py 3.13 is already a stable release so it would be nice to have wheels on PyPI as well.

Yet I have the following error:

error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: sphn==0.1.4
  Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)

[stdout]
Running `maturin pep517 build-wheel -i /home/yehor/.cache/uv/builds-v0/.tmpkMiaZV/bin/python --compatibility off`

[stderr]
📦 Including license file "/home/yehor/.cache/uv/sdists-v4/pypi/sphn/0.1.4/jeKKXRLkodekGQYr5gnKm/sphn-0.1.4.tar.gz/LICENSE"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.13 at /home/yehor/.cache/uv/builds-v0/.tmpkMiaZV/bin/python
📡 Using build options features, bindings from pyproject.toml
   Compiling autocfg v1.3.0
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.5.0
   Compiling arrayvec v0.7.6
   Compiling bitflags v1.3.2
   Compiling log v0.4.22
   Compiling bytemuck v1.18.0
   Compiling target-lexicon v0.12.16
   Compiling encoding_rs v0.8.34
   Compiling proc-macro2 v1.0.86
   Compiling once_cell v1.19.0
   Compiling unicode-ident v1.0.13
   Compiling symphonia-core v0.5.4
   Compiling libc v0.2.158
   Compiling crossbeam-utils v0.8.20
   Compiling shlex v1.3.0
   Compiling num-traits v0.2.19
   Compiling cc v1.1.18
   Compiling lock_api v0.4.12
   Compiling version_check v0.9.5
   Compiling pyo3-build-config v0.21.2
   Compiling quote v1.0.37
   Compiling syn v2.0.77
   Compiling parking_lot_core v0.9.10
   Compiling cmake v0.1.51
   Compiling symphonia-metadata v0.5.4
   Compiling num-integer v0.1.46
   Compiling num-complex v0.4.6
   Compiling symphonia-utils-xiph v0.5.4
   Compiling rustfft v6.2.0
   Compiling matrixmultiply v0.3.9
   Compiling memoffset v0.9.1
   Compiling pyo3-ffi v0.21.2
   Compiling strength_reduce v0.2.4
   Compiling scopeguard v1.2.0
   Compiling heck v0.4.1
error: failed to run custom build command for `pyo3-ffi v0.21.2`

Caused by:
  process didn't exit successfully: `/home/yehor/.cache/uv/sdists-v4/pypi/sphn/0.1.4/jeKKXRLkodekGQYr5gnKm/sphn-0.1.4.tar.gz/target/release/build/pyo3-ffi-f27568ae59e7c321/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=PYO3_CROSS
  cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
  cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
  cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY

  --- stderr
  error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
  = help: please check if an updated version of PyO3 is available. Current version: 0.21.2
  = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/home/yehor/.cache/uv/builds-v0/.tmpkMiaZV/bin/python" PYTHON_SYS_EXECUTABLE="/home/yehor/.cache/uv/builds-v0/.tmpkMiaZV/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/yehor/.cache/uv/sdists-v4/pypi/sphn/0.1.4/jeKKXRLkodekGQYr5gnKm/sphn-0.1.4.tar.gz/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/yehor/.cache/uv/builds-v0/.tmpkMiaZV/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

The cause here is this - error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12) - as I understand.

@egorsmkv
Copy link
Author

Seems like PyO3 should be upgrade to 0.22 here - https://github.com/kyutai-labs/sphn/blob/main/Cargo.toml#L21C1-L21C16

@LaurentMazare
Copy link
Member

I've just updated to PyO3 0.23 in #8 so hopefully we should be good with python 3.13. I'll have a look at building the new wheels at some point.

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

2 participants