packages icon indicating copy to clipboard operation
packages copied to clipboard

Missing package: cryptography

Open bennuttall opened this issue 1 year ago • 6 comments

Package name

cryptography

Package version

43.0.0

PyPI URL

https://pypi.org/project/cryptography/

piwheels URL

https://www.piwheels.org/project/cryptography/

Python version

  • [X] Python 3.9
  • [X] Python 3.11

I am aware this is the issue tracker for a Python package index specifically for Raspberry Pi

  • [X] Yes

I have checked for duplicate issues

  • [X] Yes

I am the maintainer

  • [ ] Yes

More information

Issues arose in #462 and #463

cryptography now requires openssl 3, so we need to statically link it in Bullseye which has openssl 1.1.

bennuttall avatar Jul 31 '24 20:07 bennuttall

Figuring out how to fix it, but for now, please download these files and install as required:

  • Bullseye (Python 3.9): https://www.piwheels.org/cp39/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl
  • Bookworm (Python 3.11): https://www.piwheels.org/cp311/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl

bennuttall avatar Jul 31 '24 20:07 bennuttall

Somewhat updating my question in #469:

Wouldn't fixing the tags in the build process with auditwheel to something like cp37-abi3-manylinux_2_31_armv7l for bullseye, and cp37-abi3-manylinux_2_36_armv7l for bookworm differentiate the built wheels sufficiently?

Edit: With excluding libssl.so.<X> and libcrypto.so.<X> from grafting?

orosam avatar Sep 04 '24 15:09 orosam

seems like wheels for 43.0.3 are available now ...

image

is this a fluke, or has this process been fixed? (i didn't test them yet).

xmatthias avatar Nov 16 '24 12:11 xmatthias

I just performed a quick test.

The 43.0.3 armv7l build (having sha256=aa694873d3f46d2af4480573597b341f891acdeefe21f37b9112df7004e4cd3e) appears to be linked against openssl3, and indeed it works on a bookworm based OS.

This coincides with the dependency info in the Project JSON at https://www.piwheels.org/project/cryptography/json/, under key .["releases"]["43.0.3"]["files"]["cryptography-43.0.3-cp37-abi3-linux_armv7l.whl"]["apt_dependencies"].

Whether it's deliberate or accidental that the bookworm wheel is there, I cannot tell. Previously (around 43.0.1 or 43.0.2 if I recall correctly), it was the same situation, just reversed: the bookworm wheel was missing, and the bullseye one was available.

orosam avatar Nov 16 '24 14:11 orosam

i'm not sure if this (building cryptography as part of piwheels) is still necessary (not sure what the policies are for packages that provide upstream wheels).

cryptography now (since 44.0.0) provides armv7 wheels via pypi - and a test showed that they work fine on 3.11 (so bookworm).

While the file (cryptography-44.0.1-cp39-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl) points to cp39 (in my understanding, the minimum python version) ... it's working fine on 3.11 in my testing.

xmatthias avatar Feb 17 '25 05:02 xmatthias

Yes, those are abi3 wheels, so the Python version there is the minimum version.

alex avatar Mar 13 '25 14:03 alex