You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KRR doesn't support newer python version (i.e. python3.13) #435
This should be a trivial change to pyproject.toml to set the python requirement to python<4.0 or python<3.14 but because we have a dependency for pillow, this causes all sorts of problems. e.g:
$ poetry install
Installing dependencies from lock file
Package operations: 76 installs, 0 updates, 0 removals
- Installing six (1.16.0)
- Installing certifi (2024.2.2)
- Installing jmespath (1.0.1)
- Installing idna (3.7)
- Installing charset-normalizer (3.3.2)
- Installing numpy (1.26.4)
- Installing python-dateutil (2.9.0.post0)
- Installing urllib3 (1.26.20)
- Installing fonttools (4.49.0)
- Installing cycler (0.12.1)
- Installing contourpy (1.2.0): Preparing...
- Installing packaging (24.0)
- Installing kiwisolver (1.4.5): Preparing...
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing kiwisolver (1.4.5): Installing...
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing kiwisolver (1.4.5)
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing packaging (24.0)
- Installing kiwisolver (1.4.5)
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing contourpy (1.2.0): Installing...
- Installing packaging (24.0)
- Installing kiwisolver (1.4.5)
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing packaging (24.0)
- Installing kiwisolver (1.4.5)
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
- Installing contourpy (1.2.0)
- Installing packaging (24.0)
- Installing kiwisolver (1.4.5)
- Installing pyasn1 (0.5.1)
- Installing pyparsing (3.1.2)
- Installing botocore (1.34.62)
- Installing pytz (2024.1)
- Installing pillow (10.3.0): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/bin/python', '/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp2st31ymu']' returned non-zero exit status 1.
|
| Traceback (most recent call last):
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| ~~~~^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
| json_out["return_val"] = hook(**hook_input["kwargs"])
| ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
| File "/Users/natanyellin/Library/Application Support/pypoetry/venv/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
| return hook(config_settings)
| File "/private/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
| return self._get_build_requires(config_settings, requirements=[])
| ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/private/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
| self.run_setup()
| ~~~~~~~~~~~~~~^^
| File "/private/var/folders/9d/w12tylk1403bjxd6k93pdqp80000gn/T/tmp1lpogca6/.venv/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
| exec(code, locals())
| ~~~~^^^^^^^^^^^^^^^^
| File "<string>", line 33, in <module>
| File "<string>", line 27, in get_version
| KeyError: '__version__'
Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with pillow (10.3.0)
- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).
You can verify this by running pip wheel --no-cache-dir --use-pep517 "pillow (==10.3.0)".
- Installing regex (2023.12.25)
- Installing requests (2.32.0)
- Installing tzdata (2024.1)
- Installing tzlocal (5.2)
Activity
aantn commentedon Jun 5, 2025
This should be a trivial change to pyproject.toml to set the python requirement to
python<4.0orpython<3.14but because we have a dependency for pillow, this causes all sorts of problems. e.g:aantn commentedon Jun 5, 2025
See branch support-newer-python