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

python: manylinux packaging jobs have been failing since the new version of cibuildwheel was released #2163

Closed
raulcd opened this issue Sep 17, 2024 · 11 comments · Fixed by #2190
Labels
Type: bug Something isn't working

Comments

@raulcd
Copy link
Member

raulcd commented Sep 17, 2024

What happened?

The manylinux packaging jobs have been failing for the last 3 days, see example.

The previous success was using:

cibuildwheel version 2.20.0
...
Starting container image quay.io/pypa/manylinux2014_x86_64:2024.08.03-1...

the failures started since:

cibuildwheel version 2.21.0
...
Starting container image quay.io/pypa/manylinux2014_x86_64:2024.09.09-0...

Stack Trace

 + docker version -f '{{json .}}'
Traceback (most recent call last):
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/__main__.py", line 49, in main
    main_inner(global_options)
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/__main__.py", line 204, in main_inner
    build_in_directory(args)
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/__main__.py", line 352, in build_in_directory
    platform_module.build(options, tmp_path)
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/linux.py", line 459, in build
    with OCIContainer(
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/oci_container.py", line 201, in __enter__
    _check_engine_version(self.engine)
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/oci_container.py", line 121, in _check_engine_version
    raise OCIEngineTooOldError() from None
cibuildwheel.errors.OCIEngineTooOldError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/python/cp39-cp39/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/python/cp39-cp39/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/__main__.py", line 422, in <module>
    main()
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/__main__.py", line 51, in main
    message = e.args[0]
IndexError: tuple index out of range

How can we reproduce the bug?

No response

Environment/Setup

No response

@raulcd raulcd added the Type: bug Something isn't working label Sep 17, 2024
@raulcd
Copy link
Member Author

raulcd commented Sep 17, 2024

This commit was added to 2.21.1 which got released yesterday: pypa/cibuildwheel@0787a44

@raulcd
Copy link
Member Author

raulcd commented Sep 17, 2024

@lidavidm lidavidm added this to the ADBC Libraries 15 milestone Sep 17, 2024
@lidavidm
Copy link
Member

It sounds intentional.

Would installing a newer Docker CLI in the CI environment help or would we need GitHub to upgrade it on the underlying image?

@lidavidm
Copy link
Member

Interestingly glancing through the original PR they appear to have tested several CI environments...just not GitHub (unless I missed it)

@raulcd
Copy link
Member Author

raulcd commented Sep 17, 2024

@lidavidm
Copy link
Member

Hmm, maybe I should unlink that image from upstream then

@paleolimbot
Copy link
Member

I am not sure I can help with the existing system here, but if something closer to nanoarrow's setup could work I would be happy to take a stab at it:

https://github.com/apache/arrow-nanoarrow/blob/499d865c862606c69d8dca1a15fc0cf542696599/.github/workflows/python-wheels.yaml#L89-L132

I imagine the trick is efficiently building the driver once and reusing it for each Python version but very possible I am being naive here!

@lidavidm
Copy link
Member

I wanted to try a newer manylinux, but that appears to run into containers/podman#10802

@lidavidm
Copy link
Member

Traceback (most recent call last):
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/cibuildwheel/oci_container.py", line 112, in _check_engine_version
    client_api_version = Version(version_info["Client"]["APIVersion"])
  File "/opt/python/cp39-cp39/lib/python3.9/site-packages/packaging/version.py", line 202, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '4.9.4-rhel'

@lidavidm
Copy link
Member

...I think I'm going to pin cibuildwheel for now since their check is not quite up to par...

@lidavidm
Copy link
Member

I filed pypa/cibuildwheel#2020

lidavidm added a commit to lidavidm/arrow-adbc that referenced this issue Sep 26, 2024
lidavidm added a commit to lidavidm/arrow-adbc that referenced this issue Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants