home-assistant-ecosystem / home-assistant-cli

:computer: Command-line tool for Home Assistant
Other
425 stars 63 forks source link

Build with yay failed #408

Open mfbehrens99 opened 10 months ago

mfbehrens99 commented 10 months ago

==> Beginne check()... /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg !!

    ********************************************************************************
    The license_file parameter is deprecated, use license_files instead.

    By 2023-Oct-30, you need to update your project and remove deprecated calls
    or your builds will no longer be supported.

    See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
    ********************************************************************************

!! parsed = self.parsers.get(option_name, lambda x: x)(value) running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3.11/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

!! ir_d = dist.fetch_build_eggs(dist.install_requires) /usr/lib/python3.11/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

!! tr_d = dist.fetch_build_eggs(dist.tests_require or []) error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [26 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/typed_ast copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-311/typed_ast copying typed_ast/ast3.py -> build/lib.linux-x86_64-cpython-311/typed_ast copying typed_ast/ast27.py -> build/lib.linux-x86_64-cpython-311/typed_ast copying typed_ast/init.py -> build/lib.linux-x86_64-cpython-311/typed_ast creating build/lib.linux-x86_64-cpython-311/typed_ast/tests copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-cpython-311/typed_ast/tests running build_ext building '_ast27' extension creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/ast27 creating build/temp.linux-x86_64-cpython-311/ast27/Custom creating build/temp.linux-x86_64-cpython-311/ast27/Parser creating build/temp.linux-x86_64-cpython-311/ast27/Python gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -Iast27/Include -I/usr/include/python3.11 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-311/ast27/Custom/typed_ast.o In Datei, eingebunden von ast27/Custom/typed_ast.c:3: ast27/Custom/../Include/compile.h:5:10: schwerwiegender Fehler: code.h: Datei oder Verzeichnis nicht gefunden 5 | #include "code.h" | ^~~~ Kompilierung beendet. error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for typed-ast ERROR: Failed to build one or more wheels error: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp6rqi2kak', '--quiet', 'typed-ast<1.5.0,>=1.4.0']' returned non-zero exit status 1. ==> FEHLER: Ein Fehler geschah in check(). Breche ab... -> Fehler beim Erstellen: home-assistant-cli-exit status 4 -> Die folgenden Pakete konnten nicht installiert werden. Ein manueller Eingriff ist erforderlich: home-assistant-cli - exit status 4

towo commented 9 months ago

Can replicate, this is Arch's home-assistant-cli AUR packages' PKGBUILD, which does a python setup.py test in the check() section. And manually running the test has the same effect on 0.9.6, and can be replicated on e9ab228a6fbc50aabe2251cbefbecaabc48efc0b at the very least.