-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
ADS integration Exec format error on latest docker #74067
Comments
ads documentation |
Same issue on the raspberry pi 4 running Home Assistant OS. |
I have to still look further into the problem - time.. you precious thing - as I'm afraid this plugin has less usage and therefor less priority. From what I gather it looks like the internals use https://github.com/stlehmann/pyads and the issues could be related to the python 3.10 upgrade |
so looks like
meaning this is incorrectly packaged with an arm container, can this be looked into? |
For those looking for a (dirty) workaround the package from the working version is compatible it seems with the new release. Assuming you are using docker the following steps might help you out until this gets a fix: Given: containerA is the name of your working container, containerB is the name of the new container with the faulty adslib.
If you are not using docker, the digest is basically.. take the pyads lib from the working version, copy it in the location that the new homeassistant build is using. |
I tried to get the workaround working for me without docker, but it seems the directory is not there you described. There is no python3.9 folder. I am using core 2022.06.7 an got access with the Terminal & SSH Addon. May you give me a hint what I am doing wrong? Thanks a lot. |
I've not tried the core installation but according to the information it is using the python venv method. You could identify the locations python is using by doing |
Thanks for the hints, but this doesn't worked for me either. I got the workaround now working with the Add-on: SSH & Web Terminal. With this Add-on I could connect to HassOS via SSH and use the "docker" workaround described above. Thanks a lot guys! hopefully this will be fixed soon! |
I don't have much experience with Python, but I have a ton of experience with ADS communications and all things TwinCAT-related. Let me know if I can be of any assistance in fixing this issue. |
Thanks for reaching out! From what I gather this is a build issue on this project instead of having an actual issue with the library or the communication itself. Mainly because the library provided is bundled but is simply targeting the wrong cpu architecture and switching to the right one causes no issues. I have scavanged a bit through the various repositories of this project to see if I can identify the build process itself to see if I can spot an issue there (f.i. a cache layer of some sorts during the build process) but have not yet found it. |
I am not able to find this location : /usr/local/lib/python3.9/site-packages/pyads |
#74067 (comment) might be able to help you locate the packages that your installation is using it will show the base directory/directories in which python is running, one of them should have a subdirectory |
i have the addon installed, what next? |
What is the output of maybe a faster way is the next few lines, each line is after an enter. After the first one you will enter the interactive shell of python and each line will be prefixed with
the print action will show you a location, in my current case this prints |
Do you have disabled the protection mode? |
Yes protection is disabled. |
are you using the "docker" command to copy the file in the container (container name: homeassistant) like this? |
When i try: python -m site |
I get : command not found |
@Jeroen45: have you tried to copy the files with the docker command within the homeassistant container I mentioned bevor? |
I am almost there to log in with HassOS SSH port 22222 Configurator to get to the root level |
@Jeroen45 I have the same issue, can't log with enough rights, so neither python commands nor python folder is available: |
I am not able to go outside the docker to the root, to do the docker commands just like @C0D3-IT and @jandeschuttere. |
Updatet my HA core to 2023 version and still not working. |
@Jeroen45 could you explain how you connect via Winscp? I'm connected but i'm not able to find the python folder |
Thank you for checking, will check why mine isn't causing any issues and try to re-iterate on the possible solution that was identified. I'm not able to commit to this in the next few days however, I'll plan something in during next week 👍 |
Hey guys, are there any positive reports regarding the problem? |
Unfortunately, also with core 2023.3.0 still the same issue... |
Unfortunately i am not familiar with the development of home assistant. Is there any information whether this problem has already been dealt with? Unfortunately, 9 months have passed and the problem still exists :( |
Home Assistant 2023.4.5 Still bugged. |
Hello guys, |
Spinned up a new Home Assistant Yellow Deployment ( on version 2023.5.2 ) problem still exist and work-arround did not work because there was no version 2022.6.7 because the Yellow implementation only started on 2022.7.0 Any sugestion to a solution? |
I expect all distribution types of Home Assistant are having I'm sorry to not be able to investigate the root problem further, time has not been, and is still not, on my side I'm afraid |
Pip is indeed installed but in the container there is no 'make' so installation of pyads was failing In the mean time, I've installed an older version of homeassistant ( not yellow specific ) and did the quick & dirty trick... after restart it was working again. |
Hi All, Having the same issue while integrating my Beckhoff CX1010 into home assistant. I’ve used the node-red-contrib-ads-client for adding the ADS functionality to my Home Assistant. Hopefully this will help some of you to get ADS running again. Running: |
Hi All, it's still not working ... Unfortunately, I don't have enough programming skills to fix the problem at the source. So I'll keep hoping for a miracle Greets |
Hi All, the problem still exists under Core Version 2023.9.1 Greets |
Is this workaround still working in python3.11? Have you guys tried? Can't seem to get it working anymore. |
Just making an update here to let you know I might have found the reason and solution. The core ads library version will need to be bumped when the pull request has been merged. |
Hi,
A. |
Hey, that sounds really good! Does anyone know how long it usually takes for the request to be implemented? I wait happily :D |
Hi, Thanks! |
at the moment nothing changed: |
Some news on the release? |
I really really need this to work. any news? |
I "solved" the issue for me by switching to an Intel based pc (old NUC) so I don't have to patch every time. It has the added benefit of being a lot faster and not running out of ram when compiling esphome things . |
any news on a release date? |
I don't understand if the PR is approved or not..any update? |
It still doesn't work on the latest Home Assistant Core 2024.3.3 on Home Assistant Green Hardware. @homeassistant - can we do something about it, as the root cause seems to be known:
and ads is a core integration? |
Issue fixed, this topic can be closed. See Bump pyads to 3.4.0 #116934 Great work! |
The problem
When starting the latest docker on a raspberry pi 4 the ADS integration seems to be broken, sounds like a build problem targeting the wrong architecture.
I've had a couple of issues (like MySql 8 suddenly requiring the
mysql_native_password
plugin instead of the previously already workingcaching_sha2_password
) which I was able to work around but this one is blocking for me as it completely breaks the integration with my Beckhoff which is at the heart of my home control.Labels provided through this image are:
Labels of the image that is still working for me:
What version of Home Assistant Core has the issue?
core-2022.7.0.dev20220627
What was the last working version of Home Assistant Core?
core-2022.6.0.dev20220506
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ADS
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ads/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The text was updated successfully, but these errors were encountered: