Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024.4.4 error - unable to install package #258

Closed
fenty17 opened this issue Apr 24, 2024 · 37 comments
Closed

2024.4.4 error - unable to install package #258

fenty17 opened this issue Apr 24, 2024 · 37 comments
Labels

Comments

@fenty17
Copy link

fenty17 commented Apr 24, 2024

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
@fenty17 fenty17 changed the title 2024.4.4 error - 2024.4.4 error - unable to install package Apr 24, 2024
@f1dgj
Copy link

f1dgj commented Apr 25, 2024

I have exactly the same after the update.

@CM000n
Copy link
Collaborator

CM000n commented Apr 25, 2024

What installation method of Home Assistant are you using?

@renewoensdregt
Copy link
Contributor

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
Copy link
Author

fenty17 commented Apr 25, 2024

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

@LMT1337
Copy link

LMT1337 commented Apr 25, 2024

Same Problem, Running on rpi5 latest Update

@oskarhood
Copy link

Same here, rpi3

@darth-aragoth
Copy link

darth-aragoth commented Apr 25, 2024

Same here after updating HA to 2024.4.4

@designerferro
Copy link

designerferro commented Apr 25, 2024

What installation method of Home Assistant are you using?

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

  • Core 2024.4.4
  • Supervisor 2024.04.0
  • Operating System 12.2
  • Frontend 20240404.2

@ostfilinchen
Copy link

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
Copy link

chtichi commented Apr 26, 2024

Same here with Freebox delta Virtual Machine on core 2024.4.4

@Viqus
Copy link

Viqus commented Apr 26, 2024

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
Copy link

durix75 commented Apr 26, 2024

Same here.
hope update will fix it soon.
thanks

@bonepl
Copy link

bonepl commented Apr 26, 2024

Same here

@andyz68
Copy link

andyz68 commented Apr 27, 2024

Same for me

@chrisvanberg
Copy link

chrisvanberg commented Apr 27, 2024

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
Copy link

vermut commented Apr 28, 2024

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

pytries/marisa-trie#93

@lukmus1
Copy link

lukmus1 commented Apr 29, 2024

Nie działa po aktualizacji ...

@VivantSenior
Copy link

VivantSenior commented May 1, 2024

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
Copy link

same for me

@vermut
Copy link

vermut commented May 5, 2024

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
Copy link

vermut commented May 6, 2024

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.

@AUSF
Copy link

AUSF commented May 6, 2024

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

@justinh998
Copy link

justinh998 commented May 6, 2024

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.

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
Copy link

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
Copy link

vermut commented May 6, 2024

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
Copy link

jakvot commented May 6, 2024

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
Copy link

vermut commented May 6, 2024

@BoboTiG can you? ^^

pytries/marisa-trie#102

@fenty17
Copy link
Author

fenty17 commented May 6, 2024

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

@darth-aragoth
Copy link

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

32-bit or 64-bit system?

@vermut
Copy link

vermut commented May 6, 2024

64-bit only. For 32-bit you'll have to follow pytries/marisa-trie#102. Looks grim atm.

@fenty17
Copy link
Author

fenty17 commented May 6, 2024

32-bit or 64-bit system?

64

@frenck
Copy link

frenck commented May 8, 2024

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
Copy link

chtichi commented May 9, 2024

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

@amastrogiacomo1968
Copy link

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
Copy link

vermut commented May 9, 2024

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
Copy link
Collaborator

CM000n commented May 9, 2024

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

@CM000n CM000n closed this as completed May 9, 2024
@amastrogiacomo1968
Copy link

I confirm, after 3 restarts the function. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests