Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manylinux wheel builds failing #6680

Closed
dstansby opened this issue Dec 30, 2022 · 4 comments · Fixed by #6685
Closed

manylinux wheel builds failing #6680

dstansby opened this issue Dec 30, 2022 · 4 comments · Fixed by #6685
Labels
Bug Probably a bug Infrastructure Issues or PRs that affect the CI or packaging of SunPy

Comments

@dstansby
Copy link
Member

dstansby commented Dec 30, 2022

Describe the bug

Tests on the manylinux wheel builds are failing, because they can't import cv2. e.g. https://github.com/sunpy/sunpy/actions/runs/3806622178/jobs/6475753826. Error is:

import cv2
  E           ImportError: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /tmp/tmp.sIYIruBBDr/venv/lib/python3.8/site-packages/cv2/../opencv_python.libs/libpng16-186fce2e.so.16.37.0)

To Reproduce

import sunpy

sunpy.map.Map(...)
etc

Screenshots

No response

System Details

No response

Installation method

No response

@dstansby dstansby added Bug Probably a bug Infrastructure Issues or PRs that affect the CI or packaging of SunPy labels Dec 30, 2022
@dstansby
Copy link
Member Author

Looks like opencv/opencv-python#765 is the upstream issue

@nabobalis
Copy link
Contributor

nabobalis commented Dec 30, 2022

Can we pin the version in our tests for now to avoid this?

Oh, I assume our wheels don't use that infrastructure. I wonder if changing test_command to include a pip install opencv_python == 4.6.0.66 && would be enough?

Hmm, I don't think that would work on windows?

@ConorMacBride
Copy link
Member

Adding this configuration to pyproject.toml will work with the OpenAstronomy template https://cibuildwheel.readthedocs.io/en/stable/options/#test-requires

@nabobalis
Copy link
Contributor

Ah I didn't know that. Thanks, I will PR something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Probably a bug Infrastructure Issues or PRs that affect the CI or packaging of SunPy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants