[Build Failure] Encryption with PyPy tests fail to start

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      Failed to build `cryptography==46.0.1`

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_encryption_pyopenssl_rhel8_test_non_standard_v4.4_pypy3.10_noauth_ssl_replica_set_5eb1edf3151711bf94733165bdd9372fd4a4b4c5_25_10_08_12_36_44/logs?execution=0

      Context of when and why the failure occurred:

      PYTHON-5024 bumped the version of cryptography, which does not support PyPy 3.10.

      Stack trace:

       [2025/10/08 08:46:24.693] bash ./.evergreen/run-tests.sh
       [2025/10/08 08:46:26.065] Downloading botocore (13.3MiB)
       [2025/10/08 08:46:26.065] Downloading pygments (1.2MiB)
       [2025/10/08 08:46:26.174] Downloading pymongocrypt (3.6MiB)
       [2025/10/08 08:46:26.174]  Downloading pymongocrypt
       [2025/10/08 08:46:26.174]    Building cffi==2.0.0
       [2025/10/08 08:46:26.541]  Downloading pygments
       [2025/10/08 08:46:26.541]    Building cryptography==46.0.1
       [2025/10/08 08:46:26.541]  Downloading botocore
       [2025/10/08 08:46:26.541]   × Failed to build `cryptography==46.0.1`
       [2025/10/08 08:46:26.541]   ├─▶ The build backend returned an error
       [2025/10/08 08:46:26.541]   ╰─▶ Call to `maturin.build_wheel` failed (exit status: 1)
       [2025/10/08 08:46:26.541]       [stdout]
       [2025/10/08 08:46:26.541]       Running `maturin pep517 build-wheel -i
       [2025/10/08 08:46:26.541]       /data/mci/54819bec54157c447b34daf0e528ca20/src/.local/uv/cache/builds-v0/.tmpJzgEcd/bin/python
       [2025/10/08 08:46:26.541]       --compatibility off`
       [2025/10/08 08:46:26.541]       Rust not found, installing into a temporary directory
       [2025/10/08 08:46:26.541]       [stderr]
       [2025/10/08 08:46:26.541]       Python reports SOABI: pypy310-pp73
       [2025/10/08 08:46:26.541]       Unsupported platform: pp73
       [2025/10/08 08:46:26.541]       hint: This usually indicates a problem with the package or the build
       [2025/10/08 08:46:26.541]       environment.
       [2025/10/08 08:46:26.541]   help: `cryptography` (v46.0.1) was included because `pymongo[ocsp]` depends
       [2025/10/08 08:46:26.541]         on `cryptography`
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: