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

build failure with libpython3.13-nogil #11753

Closed
mw66 opened this issue Oct 13, 2024 · 1 comment
Closed

build failure with libpython3.13-nogil #11753

mw66 opened this issue Oct 13, 2024 · 1 comment

Comments

@mw66
Copy link

mw66 commented Oct 13, 2024

  • Versions of Python, cryptography, cffi, pip, and setuptools
    you're using

cryptography-43.0.1.tar.gz

cffi 1.17.1

pip 24.2 from (python 3.13)

  • How you installed cryptography

$ pip3.13 install cryptography

  • Clear steps for reproducing your bug

    error: failed to run custom build command for `cryptography-cffi v0.1.0 (/tmp/pip-install-s72i30fl/cryptography_44e1e92a5f9e46b6a6dd808d9971c2c8/src/rust/cryptography-cffi)`
    
    Caused by:
      process didn't exit successfully: `/tmp/pip-install-s72i30fl/cryptography_44e1e92a5f9e46b6a6dd808d9971c2c8/src/rust/target/release/build/cryptography-cffi-9bde8bfebc8a385d/build-script-build` (exit status: 1)
    
      cargo:warning=In file included from /tmp/pip-install-s72i30fl/cryptography_44e1e92a5f9e46b6a6dd808d9971c2c8/src/rust/target/release/build/cryptography-cffi-445337a7a5cb2182/out/_openssl.c:57:
      cargo:warning=/usr/include/python3.13t/Python.h:51:4: error: #error "The limited API is not currently supported in the free-threaded build"
      cargo:warning=   51 | #  error "The limited API is not currently supported in the free-threaded build"
      cargo:warning=      |    ^~~~~
      cargo:warning=In file included from /usr/include/python3.13t/Python.h:72,
      cargo:warning=                 from /tmp/pip-install-s72i30fl/cryptography_44e1e92a5f9e46b6a6dd808d9971c2c8/src/rust/target/release/build/cryptography-cffi-445337a7a5cb2182/out/_openssl.c:57:
      cargo:warning=/usr/include/python3.13t/object.h:213:5: error: unknown type name ‘PyMutex’
      cargo:warning=  213 |     PyMutex ob_mutex;           // per-object lock
      cargo:warning=      |     ^~~~~~~
    
    
    error: failed to run custom build command for `cryptography-cffi v0.1.0 (/tmp/pip-install-s72i30fl/cryptography_44e1e92a5f9e46b6a6dd808d9971c2c8/src/rust/cryptography-cffi)`
    
    
    💥 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"
    
@alex
Copy link
Member

alex commented Oct 13, 2024

Please search the issue tracker before filing new issues. This is a dupe of #11702

@alex alex closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants