DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 29 forks source link

2024.4.4 error - unable to install package #258

Closed fenty17 closed 4 months ago

fenty17 commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

On updating to HA 2024.4.4, the integration fails to load.

To Reproduce Steps to reproduce the behavior:

Update and check logs

Expected behavior A clear and concise description of what you expected to happen.

Working integration

Logs

Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 20:51:14 (3 occurrences)
Last logged: 20:52:31

Unable to install package mytoyota==2.1.1: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_clib building 'libmarisa-trie' library creating build creating build/temp.linux-aarch64-cpython-312 creating build/temp.linux-aarch64-cpython-312/marisa-trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/io creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/vector gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/agent.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for marisa-trie ERROR: Could not build wheels for marisa-trie, which is required to install pyproject.toml-based projects
f1dgj commented 5 months ago

I have exactly the same after the update.

CM000n commented 5 months ago

What installation method of Home Assistant are you using?

renewoensdregt commented 5 months ago

I have the same issue and use Home assistant Core 2024.4.4, supervisor 2024.04.0 on a dedicated RPI4

All latest versions.

fenty17 commented 5 months ago

I'm also on RPi 4 running HAOS - core, supervisor etc all latest versions.

LMT1337 commented 5 months ago

Same Problem, Running on rpi5 latest Update

oskarhood commented 5 months ago

Same here, rpi3

darth-aragoth commented 5 months ago

Same here after updating HA to 2024.4.4

designerferro commented 5 months ago

What installation method of Home Assistant are you using?

I have the same problem. I'm using HAOS on a RPi4-64 4GB memory:

ostfilinchen commented 5 months ago

Same here. Before update to core 2024.4.4 the Integration works fine. After Update, the Integration stops working. Uninstall was possible, but Installation ends with error 500 internal Server error

chtichi commented 5 months ago

Same here with Freebox delta Virtual Machine on core 2024.4.4

Viqus commented 5 months ago

Same here, I have not installed this integration previously.

My environment:

Core 2024.4.4
Supervisor 2024.04.0
Operating System 12.2
Frontend 20240404.2
HW ODROID-N2

I was able to "install" the repo through HACS with no problems, but when adding the integration through devices settings menu, after some loading I get the following error:

Error Config flow could not be loaded: Unknown error

durix75 commented 5 months ago

Same here. hope update will fix it soon. thanks

bonepl commented 5 months ago

Same here

andyz68 commented 5 months ago

Same for me

chrisvanberg commented 5 months ago

I have the same issue and use Home assistant Core 2024.4.4, supervisor 2024.04.0 on a dedicated RPI4

All latest versions.

Hello, Same as me !

HA picked those errors :

Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: April 26, 2024 at 17:22:53 (3 occurrences)
Last logged: April 26, 2024 at 17:23:36

Unable to install package mytoyota==2.1.1: 
error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ 
exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_clib building 'libmarisa-trie' library creating build creating build/temp.linux-aarch64-cpython-312 creating build/temp.linux-aarch64-cpython-312/marisa-trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/io creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/vector gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/agent.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for marisa-trie ERROR: Could not build wheels for marisa-trie, which is required to install pyproject.toml-based projects
Logger: homeassistant.setup
Source: setup.py:273
First occurred: April 26, 2024 at 17:23:36 (1 occurrences)
Last logged: April 26, 2024 at 17:23:36

Setup failed for custom integration 'toyota': Requirements for toyota not found: ['mytoyota==2.1.1'].

Thanks

vermut commented 5 months ago

My wild guess that something on aarch64 platform is pulling in marisa-trie dep of older version, not Python 3.12 compatible. Need to find that dep and upgrade

https://github.com/pytries/marisa-trie/issues/93

lukmus1 commented 5 months ago

Nie działa po aktualizacji ...

VivantSenior commented 5 months ago

I'm having the same issue after HA update to 2024.5.0:

Rejestrator: homeassistant.util.package
Źródło: util/package.py:123
Pierwsze zdarzenie: 22:12:44 (3 zdarzenia)
Ostatnio zalogowany: 22:13:32

Unable to install package mytoyota==2.1.1: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1
[15 lines of output] running bdist_wheel running build running build_clib building 'libmarisa-trie'
library creating build creating build/temp.linux-aarch64-cpython-312 creating build/temp.linux-aarch64-cpython-312/marisa-trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/io creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/trie creating build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/grimoire/vector gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-aarch64-cpython-312/marisa-trie/lib/marisa/agent.o error: command 'gcc' failed:
No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for marisa-trie ERROR: Could not build wheels for marisa-trie, which is required to install pyproject.toml-based projects
justinh998 commented 5 months ago

same for me

vermut commented 4 months ago

Ok, the problem is that there is no wheel for marisa-trie-1.1.0 aarch64 python3.12, so it tries to build it. but HassOS image doesn't have gcc installed, so it fails.

I tried to build those wheels using QEMU - https://github.com/vermut/marisa-trie/actions/runs/8959884430 (you can download artifacts below)

Then uploaded marisa_trie-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl to Hass and installed it with pip3 install marisa_trie-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl.

After restart Toyota started. But this is only a workaround. I'll ask marisa-trie to publish aarch64 wheel to PyPi.

vermut commented 4 months ago

Together with marisa-trie team we released a 3.12 wheel: https://github.com/pytries/marisa-trie/pull/101 I think it should just start working now out of the box.

AUSF commented 4 months ago

Confirmed: it works again now! Thank you very much vermut!

justinh998 commented 4 months ago

Together with marisa-trie team we released a 3.12 wheel: https://github.com/pytries/marisa-trie/pull/101 I think it should just start working now out of the box.

Small question, I had already manually installed the marisa_trie-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl in my home assitent supervisor. Do I have to uninstall it now to get the official version and get updates for it automatically? Thank your very much for that solution .

TorstenHamper commented 4 months ago

Together with marisa-trie team we released a 3.12 wheel: pytries/marisa-trie#101 I think it should just start working now out of the box.

Works like a charm! Many thanks!

vermut commented 4 months ago

Small question, I had already manually installed the marisa_trie-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl in my home assitent supervisor. Do I have to uninstall it now to get the official version and get updates for it automatically? Thank your very much for that solution .

I think it will get auto-replaced by version 1.1.1, you don't need to do anything. If you want to be super-sure - remove it and run pip3 install mytoyota==2.1.1 again. I think it will fetch fresh version.

jakvot commented 4 months ago

Unfortunately fails on armv7l (Odroid-XU4): dist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_clib building 'libmarisa-trie' library creating build creating build/temp.linux-armv7l-cpython-312 creating build/temp.linux-armv7l-cpython-312/marisa-trie creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa/grimoire creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa/grimoire/io creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa/grimoire/trie creating build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa/grimoire/vector gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-armv7l-cpython-312/marisa-trie/lib/marisa/agent.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for marisa-trie ERROR: Could not build wheels for marisa-trie, which is required to install pyproject.toml-based projects @vermut would it be possible to fix armv7l as well?

vermut commented 4 months ago

@BoboTiG can you? ^^

https://github.com/pytries/marisa-trie/pull/102

fenty17 commented 4 months ago

@vermut - confimed working for me after a restart - Pi4 running HAOS. Many thanks for the fix 👍🏼

darth-aragoth commented 4 months ago

@vermut - confimed working for me after a restart - Pi4 running HAOS. Many thanks for the fix 👍🏼

32-bit or 64-bit system?

vermut commented 4 months ago

64-bit only. For 32-bit you'll have to follow https://github.com/pytries/marisa-trie/pull/102. Looks grim atm.

fenty17 commented 4 months ago

32-bit or 64-bit system?

64

frenck commented 4 months ago

Thanks for the PR @vermut

Wheels are published, see: https://wheels.home-assistant.io/musllinux-index/marisa-trie/

The problem should be resolved immediately now.

chtichi commented 4 months ago

All datas are back on my home assistant. Thank you !

amastrogiacomo1968 commented 4 months ago

Thanks for the PR @vermut

Wheels are published, see: https://wheels.home-assistant.io/musllinux-index/marisa-trie/

The problem should be resolved immediately now.

How do you use these Wheels? Sorry for my ignorance but this is all new. Thank you

vermut commented 4 months ago

How do you use these Wheels? Sorry for my ignorance but this is all new. Thank you

Magic. Just restart HASS and it will work.

CM000n commented 4 months ago

Thank you all, and especially @vermut, for reporting, researching and fixing this issue!

amastrogiacomo1968 commented 4 months ago

I confirm, after 3 restarts the function. Thank you