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

Issue on install cryptography on rust subprocess "Maturin" #12173

Closed
apellini opened this issue Dec 20, 2024 · 1 comment
Closed

Issue on install cryptography on rust subprocess "Maturin" #12173

apellini opened this issue Dec 20, 2024 · 1 comment

Comments

@apellini
Copy link

Python: 3.13.1
PIP: 24.3.1

I could not install this module even if I have installed rust and cargo. Error below:

Building wheels for collected packages: cryptography, cffi
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [255 lines of output]
      Running `maturin pep517 build-wheel -i /usr/local/bin/python3.13 --compatibility off`
      📦 Including license file "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/LICENSE"
      📦 Including license file "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/LICENSE.APACHE"
      📦 Including license file "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/LICENSE.BSD"
      🍹 Building a mixed python/rust project
      🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.7
      🐍 Not using a specific python interpreter
      📡 Using build options features, locked from pyproject.toml
      ⚠️ Warning: CPython 3.13t at /usr/local/bin/python3.13 does not yet support abi3 so the build artifacts will be version-specific.
         Compiling proc-macro2 v1.0.92
         Compiling target-lexicon v0.12.16
         Compiling unicode-ident v1.0.14
         Compiling shlex v1.3.0
         Compiling pkg-config v0.3.31
         Compiling once_cell v1.20.2
         Compiling vcpkg v0.2.15
         Compiling libc v0.2.166
         Compiling cfg-if v1.0.0
         Compiling autocfg v1.4.0
         Compiling foreign-types-shared v0.1.1
         Compiling heck v0.5.0
         Compiling openssl v0.10.68
         Compiling itoa v1.0.14
         Compiling bitflags v2.6.0
         Compiling foreign-types v0.3.2
         Compiling indoc v2.0.5
         Compiling unindent v0.2.3
         Compiling cc v1.2.1
         Compiling cryptography-key-parsing v0.1.0 (/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust/cryptography-key-parsing)
         Compiling cryptography-openssl v0.1.0 (/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust/cryptography-openssl)
         Compiling base64 v0.22.1
         Compiling cryptography-rust v0.1.0 (/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust)
         Compiling self_cell v1.0.4
         Compiling pem v3.0.4
         Compiling memoffset v0.9.1
         Compiling quote v1.0.37
         Compiling pyo3-build-config v0.23.2
         Compiling syn v2.0.89
         Compiling openssl-sys v0.9.104
         Compiling cryptography-cffi v0.1.0 (/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust/cryptography-cffi)
         Compiling pyo3-ffi v0.23.2
         Compiling pyo3-macros-backend v0.23.2
         Compiling pyo3 v0.23.2
      The following warnings were emitted during compilation:

      warning: [email protected]: In file included from /tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/_openssl.c:57:
      warning: [email protected]: /usr/local/include/python3.13t/Python.h:51:4: error: #error "The limited API is not currently supported in the free-threaded build"
      warning: [email protected]:    51 | #  error "The limited API is not currently supported in the free-threaded build"
      warning: [email protected]:       |    ^~~~~
      warning: [email protected]: In file included from /usr/local/include/python3.13t/Python.h:72,
      warning: [email protected]:                  from /tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/_openssl.c:57:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:213:5: error: unknown type name ‘PyMutex’
      warning: [email protected]:   213 |     PyMutex ob_mutex;           // per-object lock
      warning: [email protected]:       |     ^~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘Py_REFCNT’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:320:22: warning: implicit declaration of function ‘_Py_atomic_load_uint32_relaxed’ [-Wimplicit-function-declaration]
      warning: [email protected]:   320 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
      warning: [email protected]:       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h:320:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
      warning: [email protected]: /usr/local/include/python3.13t/object.h:324:25: warning: implicit declaration of function ‘_Py_atomic_load_ssize_relaxed’ [-Wimplicit-function-declaration]
      warning: [email protected]:   324 |     Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
      warning: [email protected]:       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘_Py_IsImmortal’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:358:63: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
      warning: [email protected]:   358 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
      warning: [email protected]:       |                                                               ^~
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘Py_SET_REFCNT’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:396:9: warning: implicit declaration of function ‘_Py_IsOwnedByCurrentThread’ [-Wimplicit-function-declaration]
      warning: [email protected]:   396 |     if (_Py_IsOwnedByCurrentThread(ob)) {
      warning: [email protected]:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘Py_SET_SIZE’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:436:5: warning: implicit declaration of function ‘_Py_atomic_store_ssize_relaxed’ [-Wimplicit-function-declaration]
      warning: [email protected]:   436 |     _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
      warning: [email protected]:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘Py_INCREF’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:810:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
      warning: [email protected]:   810 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
      warning: [email protected]:       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h:817:9: warning: implicit declaration of function ‘_Py_atomic_store_uint32_relaxed’ [-Wimplicit-function-declaration]
      warning: [email protected]:   817 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
      warning: [email protected]:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h:820:9: warning: implicit declaration of function ‘_Py_atomic_add_ssize’; did you mean ‘__atomic_add_fetch’? [-Wimplicit-function-declaration]
      warning: [email protected]:   820 |         _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
      warning: [email protected]:       |         ^~~~~~~~~~~~~~~~~~~~
      warning: [email protected]:       |         __atomic_add_fetch
      warning: [email protected]: /usr/local/include/python3.13t/object.h: In function ‘Py_DECREF’:
      warning: [email protected]: /usr/local/include/python3.13t/object.h:904:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
      warning: [email protected]:   904 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
      warning: [email protected]:       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h:913:13: warning: implicit declaration of function ‘_Py_MergeZeroLocalRefcount’ [-Wimplicit-function-declaration]
      warning: [email protected]:   913 |             _Py_MergeZeroLocalRefcount(op);
      warning: [email protected]:       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      warning: [email protected]: /usr/local/include/python3.13t/object.h:917:9: warning: implicit declaration of function ‘_Py_DecRefShared’; did you mean ‘_Py_DecRef’? [-Wimplicit-function-declaration]
      warning: [email protected]:   917 |         _Py_DecRefShared(op);
      warning: [email protected]:       |         ^~~~~~~~~~~~~~~~
      warning: [email protected]:       |         _Py_DecRef

      error: failed to run custom build command for `cryptography-cffi v0.1.0 (/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust/cryptography-cffi)`

      Caused by:
        process didn't exit successfully: `/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-49631905839e04b4/build-script-build` (exit status: 1)
        --- stdout
        cargo:rerun-if-env-changed=PYO3_PYTHON
        cargo:rerun-if-changed=../../_cffi_src/
        cargo:rerun-if-changed=../../cryptography/__about__.py
        cargo:rustc-cfg=python_implementation="CPython"
        OUT_DIR = Some(/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out)
        OPT_LEVEL = Some(3)
        TARGET = Some(x86_64-unknown-linux-gnu)
        HOST = Some(x86_64-unknown-linux-gnu)
        cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
        CC_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
        CC_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CC
        HOST_CC = None
        cargo:rerun-if-env-changed=CC
        CC = None
        cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
        RUSTC_WRAPPER = None
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        DEBUG = Some(false)
        CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        OUT_DIR = Some(/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out)
        cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        TARGET = Some(x86_64-unknown-linux-gnu)
        CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
        HOST = Some(x86_64-unknown-linux-gnu)
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        OUT_DIR = Some(/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out)
        cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        TARGET = Some(x86_64-unknown-linux-gnu)
        CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
        HOST = Some(x86_64-unknown-linux-gnu)
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        OUT_DIR = Some(/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out)
        cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        TARGET = Some(x86_64-unknown-linux-gnu)
        CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
        HOST = Some(x86_64-unknown-linux-gnu)
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        OUT_DIR = Some(/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out)
        cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        TARGET = Some(x86_64-unknown-linux-gnu)
        CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
        HOST = Some(x86_64-unknown-linux-gnu)
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        cargo:warning=In file included from /tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/_openssl.c:57:
        cargo:warning=/usr/local/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/local/include/python3.13t/Python.h:72,
        cargo:warning=                 from /tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/_openssl.c:57:
        cargo:warning=/usr/local/include/python3.13t/object.h:213:5: error: unknown type name ‘PyMutex’
        cargo:warning=  213 |     PyMutex ob_mutex;           // per-object lock
        cargo:warning=      |     ^~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘Py_REFCNT’:
        cargo:warning=/usr/local/include/python3.13t/object.h:320:22: warning: implicit declaration of function ‘_Py_atomic_load_uint32_relaxed’ [-Wimplicit-function-declaration]
        cargo:warning=  320 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
        cargo:warning=      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h:320:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
        cargo:warning=/usr/local/include/python3.13t/object.h:324:25: warning: implicit declaration of function ‘_Py_atomic_load_ssize_relaxed’ [-Wimplicit-function-declaration]
        cargo:warning=  324 |     Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
        cargo:warning=      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘_Py_IsImmortal’:
        cargo:warning=/usr/local/include/python3.13t/object.h:358:63: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
        cargo:warning=  358 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
        cargo:warning=      |                                                               ^~
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘Py_SET_REFCNT’:
        cargo:warning=/usr/local/include/python3.13t/object.h:396:9: warning: implicit declaration of function ‘_Py_IsOwnedByCurrentThread’ [-Wimplicit-function-declaration]
        cargo:warning=  396 |     if (_Py_IsOwnedByCurrentThread(ob)) {
        cargo:warning=      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘Py_SET_SIZE’:
        cargo:warning=/usr/local/include/python3.13t/object.h:436:5: warning: implicit declaration of function ‘_Py_atomic_store_ssize_relaxed’ [-Wimplicit-function-declaration]
        cargo:warning=  436 |     _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
        cargo:warning=      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘Py_INCREF’:
        cargo:warning=/usr/local/include/python3.13t/object.h:810:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
        cargo:warning=  810 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
        cargo:warning=      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h:817:9: warning: implicit declaration of function ‘_Py_atomic_store_uint32_relaxed’ [-Wimplicit-function-declaration]
        cargo:warning=  817 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
        cargo:warning=      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h:820:9: warning: implicit declaration of function ‘_Py_atomic_add_ssize’; did you mean ‘__atomic_add_fetch’? [-Wimplicit-function-declaration]
        cargo:warning=  820 |         _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
        cargo:warning=      |         ^~~~~~~~~~~~~~~~~~~~
        cargo:warning=      |         __atomic_add_fetch
        cargo:warning=/usr/local/include/python3.13t/object.h: In function ‘Py_DECREF’:
        cargo:warning=/usr/local/include/python3.13t/object.h:904:22: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
        cargo:warning=  904 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
        cargo:warning=      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h:913:13: warning: implicit declaration of function ‘_Py_MergeZeroLocalRefcount’ [-Wimplicit-function-declaration]
        cargo:warning=  913 |             _Py_MergeZeroLocalRefcount(op);
        cargo:warning=      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        cargo:warning=/usr/local/include/python3.13t/object.h:917:9: warning: implicit declaration of function ‘_Py_DecRefShared’; did you mean ‘_Py_DecRef’? [-Wimplicit-function-declaration]
        cargo:warning=  917 |         _Py_DecRefShared(op);
        cargo:warning=      |         ^~~~~~~~~~~~~~~~
        cargo:warning=      |         _Py_DecRef

        --- stderr


        error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/usr/include" "-I" "/usr/local/include/python3.13t" "-Wall" "-Wextra" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-fmacro-prefix-map=/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out=." "-DPy_LIMITED_API=0x030700f0" "-o" "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/0a64377c8a54ef0e-_openssl.o" "-c" "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/target/release/build/cryptography-cffi-be0b9dd2cae482ef/out/_openssl.c" with args cc did not execute successfully (status code exit status: 1).


      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="/usr/local/bin/python3.13" PYTHON_SYS_EXECUTABLE="/usr/local/bin/python3.13" "cargo" "rustc" "--features" "pyo3/abi3-py37" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/tmp/pip-install-y99xr6s1/cryptography_0402410355754c0f9e936864de8fdc2a/src/rust/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/local/bin/python3.13', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptograph

I haven't found a suitable solution on all guide.

@reaperhulk
Copy link
Member

You’re attempting to build against 3.13t, free-threaded (aka nogil) Python, which we don’t support at this time. See #11702 and related issues for more details, but we’re currently blocked on cffi.

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