Closed corranwebster closed 1 year ago
This is due to missing AVX2 support. Most of the cp38 math/scientific packages expect an x86_64 CPU with AVX/AVX2 support. You will also see similar problems when trying to use an EDM cp38 environment through "rosetta" on an Apple Silicon system.
For future reference, this snippet will check for the availability of AVX2 on a mac:
process = run(['sysctl', 'machdep.cpu.leaf7_features'], capture_output=True, check=True)
has_avx2 = (b"AVX2" in process.stdout.split())
Environment
OS: Mac Python version: 3.8 Toolkit: Qt Qt API: PySide6 (may occur on others, not tested)
Description
I am seeing a test Pyface segfault only on EDM-based MacOS runs of Python 3.8, PySide6 on GitHub; I can’t reproduce locally even when running the same setup.
The failure is happening in a call out to PIL to get the bytes of an image, and is working on all other platforms. I am wondering if this is an issue with pillow_simd on mac, as it doesn’t happen with a pip-installed pillow.
Steps to Reproduce
Run GitHub CI on Python 3.8/PySide6