Skip to content

pillow version pin causing build failures #3762

@dangotbanned

Description

@dangotbanned

What happened?

Having intermittent issues with installing pillow, which we have pinned on an old version (current 11.1.0)

"pillow>=9,<10",

Managed to have 4 failures in a row on my fork.
I've now had one locally while working on (#3723 (comment)).

I think this would be solved by removing the version pin added in (#3095).
But I'm not entirely sure what problem this fixed or why the pin stayed after (#3099)

Traceback

─────────────────────────────────────────── hatch-test.py3.13 ─────────────────────────────────────────────────  
× Failed to build `pillow==9.5.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit
      code: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
          requires = get_requires_for_build({})
        File
      "C:\Users\danie\AppData\Local\uv\cache\builds-v0\.tmpOdWKlb\Lib\site-packages\setuptools\build_meta.py",
      line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "C:\Users\danie\AppData\Local\uv\cache\builds-v0\.tmpOdWKlb\Lib\site-packages\setuptools\build_meta.py",
      line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File
      "C:\Users\danie\AppData\Local\uv\cache\builds-v0\.tmpOdWKlb\Lib\site-packages\setuptools\build_meta.py",
      line 522, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "C:\Users\danie\AppData\Local\uv\cache\builds-v0\.tmpOdWKlb\Lib\site-packages\setuptools\build_meta.py",
      line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 29, in <module>
        File "<string>", line 26, in get_version
      KeyError: '__version__'

      hint: This usually indicates a problem with the package or the build
      environment.
  help: `pillow` (v9.5.0) was included because `altair[doc]` (v5.6.0.dev0)
        depends on `pillow`

@jonmmease do you have any thoughts on allowing pillow>=10?

What would you like to happen instead?

No response

Which version of Altair are you using?

5.6.0dev (17baaa2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions