Skip to content

Can't install oci with Python 3.14 free-threaded version due to upper bounds on cryptography #805

@jh-wu

Description

@jh-wu

OCI has upper bounds on cryptography which requires the version less than 46.0.0. However, such version can't be installed with Python 3.14 free-threaded due to fail of calling the limited API of Python. Hence the installation has been blocked. Here below is the error message:

pip install oci
Collecting oci
Downloading oci-2.163.0-py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: certifi in ./.v3.14t/lib/python3.14t/site-packages (from oci) (2025.10.5)
Collecting cryptography<46.0.0,>=3.2.1 (from oci)
Downloading cryptography-45.0.7.tar.gz (744 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 745.0/745.0 kB 9.8 MB/s 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyOpenSSL<=25.1.0,>=17.5.0 (from oci)
Downloading pyopenssl-25.1.0-py3-none-any.whl.metadata (17 kB)
Requirement already satisfied: python-dateutil<3.0.0,>=2.5.3 in ./.v3.14t/lib/python3.14t/site-packages (from oci) (2.9.0.post0)
Requirement already satisfied: pytz>=2016.10 in ./.v3.14t/lib/python3.14t/site-packages (from oci) (2025.2)
Collecting circuitbreaker<3.0.0,>=1.3.1 (from oci)
Using cached circuitbreaker-2.1.3-py3-none-any.whl.metadata (8.0 kB)
Requirement already satisfied: cffi>=1.14 in ./.v3.14t/lib/python3.14t/site-packages (from cryptography<46.0.0,>=3.2.1->oci) (2.0.0)
Requirement already satisfied: six>=1.5 in ./.v3.14t/lib/python3.14t/site-packages (from python-dateutil<3.0.0,>=2.5.3->oci) (1.17.0)
Requirement already satisfied: pycparser in ./.v3.14t/lib/python3.14t/site-packages (from cffi>=1.14->cryptography<46.0.0,>=3.2.1->oci) (2.23)
Downloading oci-2.163.0-py3-none-any.whl (32.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.5/32.5 MB 13.1 MB/s 0:00:02
Using cached circuitbreaker-2.1.3-py3-none-any.whl (7.7 kB)
Downloading pyopenssl-25.1.0-py3-none-any.whl (56 kB)
Building wheels for collected packages: cryptography
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
╰─> [313 lines of output]
Running maturin pep517 build-wheel -i /Users/jwu/Projects/newera/.v3.14t/bin/python3.14t --compatibility off
Python reports SOABI: cpython-314t-darwin
Computed rustc target triple: aarch64-apple-darwin
Installation directory: /Users/jwu/Library/Caches/puccinialin
Rustup already downloaded
Installing rust to /Users/jwu/Library/Caches/puccinialin/rustup
warn: It looks like you have an existing rustup settings file at:
warn: /Users/jwu/.rustup/settings.toml
warn: Rustup will install the default toolchain as specified in the settings file,
warn: instead of the one inferred from the default host triple.
info: profile set to 'minimal'
info: default host triple is aarch64-apple-darwin
warn: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: default toolchain set to 'stable-aarch64-apple-darwin'
Checking if cargo is installed
cargo 1.91.0 (ea2d97820 2025-10-10)
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings with abi3 support
🐍 Found CPython 3.14t at /Users/jwu/Projects/newera/.v3.14t/bin/python3.14t
📡 Using build options locked from pyproject.toml
⚠️ Warning: CPython 3.14t at /Users/jwu/Projects/newera/.v3.14t/bin/python3.14t does not yet support abi3 so the build artifacts will be version-specific.
💻 Using MACOSX_DEPLOYMENT_TARGET=11.0 for aarch64-apple-darwin by default
Compiling target-lexicon v0.13.2
Compiling proc-macro2 v1.0.95
Compiling unicode-ident v1.0.18
Compiling shlex v1.3.0
Compiling once_cell v1.21.3
Compiling pkg-config v0.3.32
Compiling vcpkg v0.2.15
Compiling libc v0.2.172
Compiling cc v1.2.23
Compiling openssl v0.10.72
Compiling foreign-types-shared v0.1.1
Compiling autocfg v1.4.0
Compiling foreign-types v0.3.2
Compiling heck v0.5.0
Compiling memoffset v0.9.1
Compiling bitflags v2.9.1
Compiling cfg-if v1.0.0
Compiling itoa v1.0.15
Compiling unindent v0.2.4
Compiling cryptography-key-parsing v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-key-parsing)
Compiling indoc v2.0.6
Compiling cryptography-openssl v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-openssl)
Compiling base64 v0.22.1
Compiling self_cell v1.2.0
Compiling pem v3.0.5
Compiling openssl-sys v0.9.108
Compiling cryptography-cffi v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-cffi)
Compiling quote v1.0.40
Compiling syn v2.0.101
Compiling pyo3-build-config v0.25.0
Compiling pyo3-ffi v0.25.0
Compiling pyo3-macros-backend v0.25.0
Compiling pyo3 v0.25.0
Compiling cryptography-rust v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust)
Compiling openssl-macros v0.1.1
Compiling asn1_derive v0.21.3
Compiling asn1 v0.21.3
Compiling pyo3-macros v0.25.0
Compiling cryptography-x509 v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-x509)
Compiling cryptography-crypto v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-crypto)
warning: cryptography-cffi@0.1.0: In file included from /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:51:4: error: "The limited API is not currently supported in the free-threaded build"
warning: cryptography-cffi@0.1.0: 51 | # error "The limited API is not currently supported in the free-threaded build"
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: In file included from /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
warning: cryptography-cffi@0.1.0: In file included from /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:81:
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/object.h:158:5: error: unknown type name 'PyMutex'
warning: cryptography-cffi@0.1.0: 158 | PyMutex ob_mutex; // per-object lock
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/object.h:311:5: error: call to undeclared function '_Py_atomic_store_ssize_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 311 | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: In file included from /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
warning: cryptography-cffi@0.1.0: In file included from /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:82:
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:109:26: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 109 | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:109:26: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
warning: cryptography-cffi@0.1.0: 109 | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:113:29: error: call to undeclared function '_Py_atomic_load_ssize_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 113 | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:126:13: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 126 | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:126:63: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
warning: cryptography-cffi@0.1.0: 126 | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
warning: cryptography-cffi@0.1.0: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
warning: cryptography-cffi@0.1.0: 127 | _Py_IMMORTAL_REFCNT_LOCAL);
warning: cryptography-cffi@0.1.0: | ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:171:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 171 | if (_Py_IsOwnedByCurrentThread(ob)) {
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:266:22: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 266 | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:266:22: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
warning: cryptography-cffi@0.1.0: 266 | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:273:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 273 | if (_Py_IsOwnedByCurrentThread(op)) {
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:274:9: error: call to undeclared function '_Py_atomic_store_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 274 | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:277:9: error: call to undeclared function '_Py_atomic_add_ssize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 277 | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:363:22: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 363 | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:363:22: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
warning: cryptography-cffi@0.1.0: 363 | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
warning: cryptography-cffi@0.1.0: | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:369:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 369 | if (_Py_IsOwnedByCurrentThread(op)) {
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:371:9: error: call to undeclared function '_Py_atomic_store_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 371 | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:373:13: error: call to undeclared function '_Py_MergeZeroLocalRefcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 373 | _Py_MergeZeroLocalRefcount(op);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:377:9: error: call to undeclared function '_Py_DecRefShared'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: cryptography-cffi@0.1.0: 377 | _Py_DecRefShared(op);
warning: cryptography-cffi@0.1.0: | ^
warning: cryptography-cffi@0.1.0: 4 warnings and 16 errors generated.
error: failed to run custom build command for cryptography-cffi v0.1.0 (/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/cryptography-cffi)

  Caused by:
    process didn't exit successfully: `/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-6b07b4857a6688ac/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(/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out)
    OPT_LEVEL = Some(3)
    TARGET = Some(aarch64-apple-darwin)
    HOST = Some(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=CC_aarch64-apple-darwin
    CC_aarch64-apple-darwin = None
    cargo:rerun-if-env-changed=CC_aarch64_apple_darwin
    CC_aarch64_apple_darwin = 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:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
    MACOSX_DEPLOYMENT_TARGET = Some(11.0)
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
    CFLAGS_aarch64_apple_darwin = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
    CFLAGS_aarch64-apple-darwin = None
    CARGO_ENCODED_RUSTFLAGS = Some()
    OUT_DIR = Some(/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/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(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
    MACOSX_DEPLOYMENT_TARGET = Some(11.0)
    HOST = Some(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
    CFLAGS_aarch64_apple_darwin = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
    CFLAGS_aarch64-apple-darwin = None
    OUT_DIR = Some(/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/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(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
    MACOSX_DEPLOYMENT_TARGET = Some(11.0)
    HOST = Some(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
    CFLAGS_aarch64_apple_darwin = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
    CFLAGS_aarch64-apple-darwin = None
    OUT_DIR = Some(/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/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(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
    MACOSX_DEPLOYMENT_TARGET = Some(11.0)
    HOST = Some(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
    CFLAGS_aarch64_apple_darwin = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
    CFLAGS_aarch64-apple-darwin = None
    OUT_DIR = Some(/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/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(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
    MACOSX_DEPLOYMENT_TARGET = Some(11.0)
    HOST = Some(aarch64-apple-darwin)
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
    CFLAGS_aarch64_apple_darwin = None
    cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
    CFLAGS_aarch64-apple-darwin = None
    cargo:warning=In file included from /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:51:4: 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 /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
    cargo:warning=In file included from /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:81:
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/object.h:158:5: error: unknown type name 'PyMutex'
    cargo:warning=  158 |     PyMutex ob_mutex;           // per-object lock
    cargo:warning=      |     ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/object.h:311:5: error: call to undeclared function '_Py_atomic_store_ssize_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  311 |     _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
    cargo:warning=      |     ^
    cargo:warning=In file included from /private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c:58:
    cargo:warning=In file included from /opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/Python.h:82:
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:109:26: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  109 |         uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
    cargo:warning=      |                          ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:109:26: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    cargo:warning=  109 |         uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
    cargo:warning=      |                  ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:113:29: error: call to undeclared function '_Py_atomic_load_ssize_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  113 |         Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
    cargo:warning=      |                             ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:126:13: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  126 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
    cargo:warning=      |             ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:126:63: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    cargo:warning=  126 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
    cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    cargo:warning=  127 |             _Py_IMMORTAL_REFCNT_LOCAL);
    cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~~~~
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:171:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  171 |     if (_Py_IsOwnedByCurrentThread(ob)) {
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:266:22: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  266 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
    cargo:warning=      |                      ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:266:22: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    cargo:warning=  266 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
    cargo:warning=      |              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:273:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  273 |     if (_Py_IsOwnedByCurrentThread(op)) {
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:274:9: error: call to undeclared function '_Py_atomic_store_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  274 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:277:9: error: call to undeclared function '_Py_atomic_add_ssize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  277 |         _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:363:22: error: call to undeclared function '_Py_atomic_load_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  363 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
    cargo:warning=      |                      ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:363:22: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    cargo:warning=  363 |     uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
    cargo:warning=      |              ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:369:9: error: call to undeclared function '_Py_IsOwnedByCurrentThread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  369 |     if (_Py_IsOwnedByCurrentThread(op)) {
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:371:9: error: call to undeclared function '_Py_atomic_store_uint32_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  371 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
    cargo:warning=      |         ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:373:13: error: call to undeclared function '_Py_MergeZeroLocalRefcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  373 |             _Py_MergeZeroLocalRefcount(op);
    cargo:warning=      |             ^
    cargo:warning=/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t/refcount.h:377:9: error: call to undeclared function '_Py_DecRefShared'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    cargo:warning=  377 |         _Py_DecRefShared(op);
    cargo:warning=      |         ^
    cargo:warning=4 warnings and 16 errors generated.
  
    --- stderr
  
  
    error occurred in cc-rs: command did not execute successfully (status code exit status: 1): env -u IPHONEOS_DEPLOYMENT_TARGET LC_ALL="C" "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-macosx" "-mmacosx-version-min=11.0" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "/Users/jwu/Projects/newera/.v3.14t/include" "-I" "/opt/homebrew/opt/python-freethreading/Frameworks/PythonT.framework/Versions/3.14/include/python3.14t" "-Wall" "-Wextra" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-fmacro-prefix-map=/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out=." "-DPy_LIMITED_API=0x030700f0" "-o" "/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/e22a75b31a05562e-_openssl.o" "-c" "/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/target/release/build/cryptography-cffi-799178ea5d019f89/out/_openssl.c"
  
  
  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 MACOSX_DEPLOYMENT_TARGET="11.0" PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.14-64bit" PYO3_PYTHON="/Users/jwu/Projects/newera/.v3.14t/bin/python3.14t" PYTHON_SYS_EXECUTABLE="/Users/jwu/Projects/newera/.v3.14t/bin/python3.14t" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/private/var/folders/d4/xhnd5v1j77dfpf1lg9y01bdc0000gn/T/pip-install-1djaf3ob/cryptography_9336f84ace3841c0bff626d3c1fb8fc3/src/rust/Cargo.toml" "--release" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/cryptography.hazmat.bindings._rust.abi3.so"`
  Rust not found, installing into a temporary directory
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/Users/jwu/Projects/newera/.v3.14t/bin/python3.14t', '--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 cryptography
Failed to build cryptography
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> cryptography

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions