numcodecs: Illegal instruction (core dumped) with version 0.7.1
Minimal, reproducible code sample, a copy-pastable example if possible
root@248fe153186d:/home/dash# python3
Python 3.8.2 (default, Apr 23 2020, 14:32:57)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numcodecs
Illegal instruction (core dumped)
Problem description
On a slightly older machine I get the above error when importing numcodecs. Does not happen with version 0.6.4 (the last non-yanked version prior to 0.7.1).
Version and installation information
Please provide the following:
- Value of
numcodecs.__version__
0.7.1 - Version of Python interpreter 3.8.2
- Operating system (Linux/Windows/Mac) Linux
- How NumCodecs was installed (e.g., “using pip into virtual environment”, or “using conda”)
pip3 install numcodecs
Also, if you think it might be relevant, please provide the output from pip list
or
conda list
depending on which was used to install NumCodecs.
Could this be related to #67 in that maybe this machine does not have the AVX instruction set?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (21 by maintainers)
https://pypi.org/project/numcodecs/0.7.2/ is released. Please let us know if you are still having issues.
Version 0.7.2 works great for me. Thanks!
Do it using
CIBW_ENVIRONMENT
. https://cibuildwheel.readthedocs.io/en/stable/options/#environmentNormal set of variable will work on MacOs and Windows, but not on linux, because linux wheels are build inside docker container. But CIBW_ENVIRONMENT wil propagate such variable to container.
here is mine for comparision:
In my there much more flags, but also bugs. Maybe administrator of your machine block avx2 instruction set from security reason. @dtenenba Could you try download proper wheel (cp38) from this build https://github.com/zarr-developers/numcodecs/actions/runs/256439292 and test it?
@jakirkham It looks like AVX2 problem which is available in processor but disabled on virtual machine. I create #253. Did you know if disabling AVX2 is also need for macos?
@jakirkham I think that
is simpler (see that I use
numcodecs
instead of:all:
)And using your approach I suggest