piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Problem with package: cryptography Illegal Instruction on armv6 #348

Closed arthur-proglove closed 10 months ago

arthur-proglove commented 1 year ago

Package name

cryptography

Package version

39.0.2

PyPI URL

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

piwheels URL

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

Python version

I am the maintainer

More information

The cryptography package is causing a Illegal instruction on my Raspberry Pi 0 W. I tried with the Raspbian image 2022-04-04 and 2023-02-21. I did not debug further so I am not sure where the incompatibility comes from.

arthur-proglove commented 1 year ago

Interestingly enough, the issue already appears on 38.0.4 but not on 38.0.1

grschneider commented 1 year ago

I ran into the same issue with cryptography 40.0.1.

The following import causes it in my case:

>>> from cryptography.hazmat.primitives import padding
Illegal instruction

Cross verified version 39.0.2: same behaviour.

Digging deeper rust bindings seem to be the root cause:

>>> from cryptography.hazmat.bindings._rust import (
...     check_ansix923_padding,
...     check_pkcs7_padding,
... )
Illegal instruction
bennuttall commented 10 months ago

Fixed