sh00t2kill / dolphin-robot

A custom Home Assistant Component for WiFI enabled Maytronics Dolphin pool cleaner robots
46 stars 9 forks source link

Cannot install integration #230

Open whiskas85 opened 1 month ago

whiskas85 commented 1 month ago

When I:

It popup mi this screen that never install the component image

At the end I recieve this message: image

and Home assisistant will reboot atuomatically (it crashes badly)

whiskas85 commented 1 month ago

Home assistant is installed into a Raspberry PI 3B

elad-bar commented 1 month ago

Logs pls

whiskas85 commented 1 month ago

Hi, I tried to install it at 17.22. At 17.25 the home assistant crashed and restarted. At 17.29 system fully restarted.

Let me know if you need other type of logs

Il giorno mar 30 lug 2024 alle ore 15:59 Elad Bar @.***> ha scritto:

Logs pls

— Reply to this email directly, view it on GitHub https://github.com/sh00t2kill/dolphin-robot/issues/230#issuecomment-2258422524, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEGE2OPKHETUXATD6ZPJA3ZO6L2RAVCNFSM6AAAAABLWOAUUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGQZDENJSGQ . You are receiving this because you authored the thread.Message ID: @.***>

whiskas85 commented 1 month ago

I retried it and the installation failed, but the system didn't restart. The log contains an interesting detail

Il giorno mar 30 lug 2024 alle ore 17:31 Marco Allario < @.***> ha scritto:

Hi, I tried to install it at 17.22. At 17.25 the home assistant crashed and restarted. At 17.29 system fully restarted.

Let me know if you need other type of logs

Il giorno mar 30 lug 2024 alle ore 15:59 Elad Bar < @.***> ha scritto:

Logs pls

— Reply to this email directly, view it on GitHub https://github.com/sh00t2kill/dolphin-robot/issues/230#issuecomment-2258422524, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEGE2OPKHETUXATD6ZPJA3ZO6L2RAVCNFSM6AAAAABLWOAUUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGQZDENJSGQ . You are receiving this because you authored the thread.Message ID: @.***>

elad-bar commented 1 month ago

Without logs I can't understand the issue, what you have described is chain of events which is not helping to debug

whiskas85 commented 1 month ago

I attached all the logs to the previous email

Il giorno mar 30 lug 2024 alle ore 17:55 Elad Bar @.***> ha scritto:

Without logs I can't understand the issue, what you have described is chain of events which is not helping to debug

— Reply to this email directly, view it on GitHub https://github.com/sh00t2kill/dolphin-robot/issues/230#issuecomment-2258684008, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEGE2PGSGRMXI4JX5CGDBLZO6ZPRAVCNFSM6AAAAABLWOAUUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGY4DIMBQHA . You are receiving this because you authored the thread.Message ID: @.***>

whiskas85 commented 1 month ago

home-assistant (1).log

elad-bar commented 1 month ago

From the logs it looks like you have many issues that have much more potential for crashing HA then the error related to this integration.

The most import log line was the last, In the future when you are being asked (or even at the issue opening) pls provide only relevant logs.

Regarding the issue, the integartion is based on awscrt, it could be related to the other issues that something is not installed correctly like as described in the link https://github.com/aws/aws-iot-device-sdk-python-v2/issues/72

Please try to install manually thr dependency and run it again, it is not releated to the integration but i will keep the issue opened up until it will get solved so we will be able to share the solution

Thanks

whiskas85 commented 1 month ago

I am trying to reinstall MyDolphin

2024-07-30 21:06:24.748 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/custom_components/mydolphin_plus/init.py', 'wb') inside the event loop by custom integration 'hacs' at custom_components/hacs/repositories/base.py, line 698: zip_file.extractall(self.content.path.local, extractable) (offender: /usr/local/lib/python3.12/zipfile/init.py, line 1801: open(targetpath, "wb") as target:), please create a bug report at https://github.com/hacs/integration/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/config/custom_components/hacs/websocket/repository.py", line 234, in hacs_repository_download await repository.async_install() File "/config/custom_components/hacs/repositories/base.py", line 893, in async_install await self.async_install_repository(version=version) File "/config/custom_components/hacs/repositories/base.py", line 977, in async_install_repository await self.download_content(version_to_install) File "/config/custom_components/hacs/repositories/base.py", line 628, in download_content await self.download_repository_zip() File "/config/custom_components/hacs/repositories/base.py", line 698, in download_repository_zip zip_file.extractall(self.content.path.local, extractable)

This happens after HACS automatica installation

whiskas85 commented 1 month ago

With the "automatic" HACS installation it's not possible to install SW becuase it's not installing required dependencies.

image

whiskas85 commented 1 month ago

I think I found the issue. By trying to install it manually, I installed the requirements.txt and i get this error.

image

whiskas85 commented 1 month ago

image

elad-bar commented 1 month ago

Not all requirements are being installed, only those in manifest.json

elad-bar commented 1 month ago

any updates?

thanks

whiskas85 commented 1 month ago

It's not possible to install MyDolphinPlus automatically or manually

Il dom 4 ago 2024, 10:11 Elad Bar @.***> ha scritto:

any updates?

thanks

— Reply to this email directly, view it on GitHub https://github.com/sh00t2kill/dolphin-robot/issues/230#issuecomment-2267418842, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEGE2LTY7WNES7IGO6NQW3ZPXO3TAVCNFSM6AAAAABLWOAUUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGQYTQOBUGI . You are receiving this because you authored the thread.Message ID: @.***>

sh00t2kill commented 1 month ago

There was a previous issue raised similar to this some time ago.

I seem to recall a supervisor update being required and then it was all fine. This seems to me like an issue with your install and not strictly the integration. It could be a package conflict with another custom integration too.

Have you tried manually installing the packages mentioned in the manifest file? This should give more info

whiskas85 commented 1 month ago

I tried to install it manually. The issue as I reported in the pics is that: it's required the package homeassistant 2024.5.3 that requires httpx 0.27.x it's required the package googletrans 4.0 that requires httpx 0.13

So there's no possibility to satisfy both the requirements.

That's why it's not an issue of my installation that is pretty much standard

elad-bar commented 1 month ago

did you try to run the pip install just for the packages in the manifest? if yes, packages were installed? if not, what is the error? if packages were installed, what is the error in HA?

thanks

whiskas85 commented 1 month ago

I downloaded requirment.txt Uploaded on my raspi run the command for downloading the requirement and attached the message before: https://github.com/sh00t2kill/dolphin-robot/issues/230#issuecomment-2259071381 the error I got.

I cannot add all the packages because there is a problem on dependencies. There is all the process documented with screenshot the messages before

sh00t2kill commented 1 month ago

Don't use the requirements file, that's for use outside of ha so it will fail. Try manually installing the single package mentioned in manifest.json.

Ie pip install awsiotsdk

How do you have HA installed?

This was raised by a user last year who was running HA in a docker container, turns out it was an issue with the container image. This sounds like that same issue.

whiskas85 commented 1 month ago

I have HA installed into RaspBerry stando alone (without docker).

Running commanad pip install awsiotsdk I get this:

image

sh00t2kill commented 1 month ago

Where are you running that? It's not clear from your screenshot, however cmake missing was the exact issue the other user had.