Skip to content

BUG: NumPy 1.21.5 results in "Illegal instruction" error on a Raspberry Pi Zero W. #20765

@eat-sleep-code

Description

@eat-sleep-code

Describe the issue:

Any python script depending on NumPy will fail on a Raspberry Pi Zero W if NumPy 1.21.5 is installed.

Tested this on multiple Raspberry Pi Zero W's running the most current version of Raspberry PI OS.

Raspberry Pi 4's do not appear to be affected by this.

Reverting to 1.21.4 via pip3 uninstall -y numpy && pip3 install numpy==1.21.4 resolves the error, so it definitely was something introduced in 1.21.5.

1.22.0 likely will never work on a Raspberry Pi Zero W as it appears you are discontinuing support for 32-bit processors on Linux.

Reproduce the code example:

import numpy

# this simple import is all that is needed to trigger the error

Error message:

Illegal instruction

NumPy/Python version information:

Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import sys, numpy; print(numpy.version, sys.version)
Illegal instruction

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions