Ubuntu Noble: Failed to build installable wheels for Pillow

Bug #2088355 reported by Ghanshyam Mann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Undecided
Ghanshyam Mann
OpenStack Identity (keystone)
Invalid
Undecided
Ghanshyam Mann

Bug Description

As per OpenStack 2025.1 testing runtime[1], we need to migrate all project testing on Ubuntu Noble.

But doc job on Noble fail with the below error:
- https://zuul.opendev.org/t/openstack/build/6e49ff2ca47a46879799332431591b0a

      Traceback (most recent call last):
        File "/home/zuul/src/opendev.org/openstack/keystone/.tox/docs/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/zuul/src/opendev.org/openstack/keystone/.tox/docs/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/zuul/src/opendev.org/openstack/keystone/.tox/docs/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-32_f1tdj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 434, in build_wheel
          return _build(['bdist_wheel', '--dist-info-dir', metadata_directory])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-32_f1tdj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 422, in _build
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-32_f1tdj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-32_f1tdj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 516, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-32_f1tdj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 1010, in <module>
      RequiredDependencyException:

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pillow)

Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

To solve that we need to define the package 'libjpeg-dev' via bindep.txt

- https://review.opendev.org/c/openstack/keystone/+/932934

If any other project facing this issue, same solution can be applied there.

Changed in keystone:
status: New → In Progress
Changed in keystone:
assignee: nobody → Ghanshyam Mann (ghanshyammann)
Changed in barbican:
status: New → In Progress
tags: added: migrate-to-noble
Changed in barbican:
assignee: nobody → Ghanshyam Mann (ghanshyammann)
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

Stephen fixed it in the requirement file, which solve the issue for all projects https://review.opendev.org/c/openstack/requirements/+/927102

Revision history for this message
David Wilde (dave-wilde) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by "Ghanshyam <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/keystone/+/932934
Reason: all good here for noble

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.opendev.org/c/openstack/barbican/+/932951
Committed: https://opendev.org/openstack/barbican/commit/ccaa10394dc47ee34caf30413dad3d2c59103472
Submitter: "Zuul (22348)"
Branch: master

commit ccaa10394dc47ee34caf30413dad3d2c59103472
Author: Ghanshyam Mann <email address hidden>
Date: Mon Oct 21 19:05:36 2024 -0700

    Update gate jobs as per the 2025.1 cycle testing runtime

    As per 2025.1 testing runtime[1], we need to test on Ubuntu
    Noble (which will be taken care by depends-on tempest and devstack
    patches to move base jobs to Noble) and at least single job to run on
    Ubuntu Jammy (for smooth upgrade from previous releases).

    This commit adds a new job to run on Jammy which can be removed
    in future cycle when testing runtime test next version of Ubuntu
    as default.

    Currently doc job running on Noble fail with the below error
    which is fixed by installing libjpeg-dev package
     - ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pillow)

    Closes-Bug: #2088355

    Depends-On: https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/932946

    [1] https://governance.openstack.org/tc/reference/runtimes/2025.1.html

    Change-Id: I1b6332763c02b08cf2d1e0be9f1ed46e73b963f0

Changed in barbican:
status: In Progress → Fix Released
Changed in keystone:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/barbican 20.0.0.0rc1

This issue was fixed in the openstack/barbican 20.0.0.0rc1 Epoxy release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.