GithubHelp home page GithubHelp logo

Comments (25)

triumfas avatar triumfas commented on July 17, 2024 2

I once again created a new separate container and compared container variables. And found the difference which was causing all of this.

Old and not working variable:
WHEELS_LINKS https://wheels.home-assistant.io/alpine-3.12/amd64/

Working one:
WHEELS_LINKS https://wheels.home-assistant.io/musllinux/

I just updated my original container with new link and tadaaa - integration got loaded.

@prairiesnpr - thank you for pointing to the right direction! Will need to check other variables as well :)

from husqvarna_automower.

roflcoopter avatar roflcoopter commented on July 17, 2024 1

Sorry for being so quiet on this issue.
I actually switched to the linuxserver/homeassistant container which at first gave me some other issues.
It turns out that i had to explicitly pull the amd64 tag linuxserver/homeassistant:amd64-2023.6.3
The multiarch container pulled the wrong image for some reason.

However, that container does not have https://wheels.home-assistant.io/musllinux/ as a pip index URL, so i created a custom init script which runs pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "https://wheels.home-assistant.io/musllinux/" Shapely>=1.8.2 and the problem is then solved!

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

Your build environment is broken in the docker container. You need to install any required build dependencies,. Looks like you are missing gcc to start and I'm sure numpy has others.

from husqvarna_automower.

roflcoopter avatar roflcoopter commented on July 17, 2024

Yeah definitely, but i am running the official Home Assistant docker container which makes it difficult to install extra packages

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

So we didn't test on docker, as it's unsupported. I've tested on home assistant OS and a core install. Home assistant OS will pull the appropriate python packages and not attempt to build from source like we are seeing here. I would think that the Docker image should pull the Shapely musllinux wheel from https://github.com/home-assistant/wheels-custom-integrations the same as Home assistant OS. But as it installs in Home assistant OS, I don't think it's an issue with the integration.

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

So, I was incorrect, container is a supported install method, was thinking you were running supervised. I'll see if I can spin up a container and see if I can replicate.

from husqvarna_automower.

roflcoopter avatar roflcoopter commented on July 17, 2024

Great, thanks for taking the time!

from husqvarna_automower.

Li0nc0 avatar Li0nc0 commented on July 17, 2024

Hi all,

Same issue using stable homeassistant docker "stable" release

Logger: homeassistant.setup
Source: setup.py:207
First occurred: 19:01:38 (1 occurrences)
Last logged: 19:01:38

Setup failed for custom integration husqvarna_automower: Requirements for husqvarna_automower not found: ['Shapely>=1.8.2'].

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

I just pulled the latest HA stable container (2023.6.3) and installed Husqvarna Automower 2023.6.1, the install authenticated and installed all required packages without issue. Any further ideas on what might be unique about your installs?

For reference I used the following compose template.

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /mnt/data/docker/ha/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

from husqvarna_automower.

pjbaert avatar pjbaert commented on July 17, 2024

I believe this isn't related to the latest HA version since I got the same error on my 2023.5.3 setup.
The integration isn't working anymore & after checking my configuration in the developer tools > YAML tab, I got this feedback:

Integration error: husqvarna_automower - Requirements for husqvarna_automower not found: ['Shapely>=1.8.2'].

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

I've tried to update Husqvarna integration in my HA 2023.6.3 docker and it fails to work. In logs I see:
Setup failed for custom integration husqvarna_automower: Requirements for husqvarna_automower not found: ['Shapely>=1.8.2'].

Restoring backup fixes the issue. Maybe it's for HA 2023.7, but with each integration upgrade I need to play back and forth - copy my coordinates and other info, update, remove integration, add integration and set things back.

Yup - removed the integration and added and did setup again - everything works now.

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

I've tried to update Husqvarna integration in my HA 2023.6.3 docker and it fails to work. In logs I see: Setup failed for custom integration husqvarna_automower: Requirements for husqvarna_automower not found: ['Shapely>=1.8.2'].

Restoring backup fixes the issue. Maybe it's for HA 2023.7, but with each integration upgrade I need to play back and forth - copy my coordinates and other info, update, remove integration, add integration and set things back.

Yup - removed the integration and added and did setup again - everything works now.

Can you clarify this for me, when you removed the integration and reinstalled, did you install the current version 2023.6.1 or an older version?

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

I have installed 2023.7 version and it worked. But after HA restart it stopped working and I'm trying now to get back to working state without restoring backup. Have issues with configuration page not loading (2023.7 and 2023.6.1).

Update:
Downloaded 2023.6.0, configured successfully and checked that it's working after restart. Updated to 2023.6.1 - getting errors.

`Logger: homeassistant.setup
Source: setup.py:207
First occurred: 16:41:45 (1 occurrences)
Last logged: 16:41:45

Setup failed for custom integration husqvarna_automower: Requirements for husqvarna_automower not found: ['Shapely>=1.8.2'].`

`Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 16:40:29 (3 occurrences)
Last logged: 16:41:45

Unable to install package Shapely>=1.8.2: error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [297 lines of output] Looking in links: https://wheels.home-assistant.io/alpine-3.12/amd64/ Collecting Cython~=0.29 Using cached Cython-0.29.36-py2.py3-none-any.whl (988 kB` (just a part - long one)

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

Got it, please post logs and we can look into it. I wasn't able to replicate earlier.

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

Added to my post above what I see in logs at the moment.

Downgraded integration to 2023.6.0 - everything works and HA restarts fast.
My guess is that Docker container needs to be updated with Shapely >= 1.8.2. Not sure what it is, but was it a dependency all the time just lower build or it was introduced with 2023.6.1?

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

Added to my post above what I see in logs at the moment.

Downgraded integration to 2023.6.0 - everything works and HA restarts fast. My guess is that Docker container needs to be updated with Shapely >= 1.8.2. Not sure what it is, but was it a dependency all the time just lower build or it was introduced with 202

Added to my post above what I see in logs at the moment.

Downgraded integration to 2023.6.0 - everything works and HA restarts fast. My guess is that Docker container needs to be updated with Shapely >= 1.8.2. Not sure what it is, but was it a dependency all the time just lower build or it was introduced with 2023.6.1?

Yes, we added Shapely as a dependency in 2023.6.1. I'm not able to replicate it on my Docker host, I've rebooted several times without issue. Would it be possible to spin up a fresh HA container and see if you have the same installation issue?

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

I will try.

Is Shapely a part of docker image or it needs to be installed somehow?

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

I will try.

Is Shapely a part of docker image or it needs to be installed somehow?

It's compiled and hosted by Home Assistant at https://wheels.home-assistant.io/musllinux/ That's the issue, it should pull that wheel and install it, but it's falling back to trying to build it from source, which fails since the container and HA OS don't have a full build environment.

One note, I see in your logs, that it's looking for cython in https://wheels.home-assistant.io/alpine-3.12/amd64/ that will give a 404, since current version is 3.14, no idea if related.

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

Created another container and everything looks good. So something is broken in my setup. Will need to check how to fix as I have loads of integrations set :) Thanks for help!

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

Created another container and everything looks good. So something is broken in my setup. Will need to check how to fix as I have loads of integrations set :) Thanks for help!

Any chance your container is out of date, maybe need to pull the latest image?

from husqvarna_automower.

triumfas avatar triumfas commented on July 17, 2024

It's the latest. And even tried to delete container, delete image, create container and have the same issue.

from husqvarna_automower.

andreas-fey avatar andreas-fey commented on July 17, 2024

Very same issue here.

from husqvarna_automower.

prairiesnpr avatar prairiesnpr commented on July 17, 2024

OK, so I'm at a standstill on this one, since I'm unable to replicate.

If you are having this issue, I would suggest a few things.

  1. Make sure your image is "ghcr.io/home-assistant/home-assistant:stable"
  2. Ensure you have the latest image, looking at logs, I'm seeing references to python 3.10 where the current image has 3.11.4
  3. Ensure you have the correct permissions on your config folder, some reports in core indicated similar issues where subfolders weren't writable.
  4. Create a new container with an empty config directory and install the integration, we may be seeing a conflict with another integration.

Beyond that, perhaps there is a bug in core that we need to raise, based on the responses here, it seems pretty limited. Would be good to know if this is only affecting a specific architecture.

from husqvarna_automower.

andreas-fey avatar andreas-fey commented on July 17, 2024

@roflcoopter the pip3 command did the trick for me - thanks! I just hope that I do not have to repeat this every time the container starts again...

from husqvarna_automower.

Li0nc0 avatar Li0nc0 commented on July 17, 2024

Hi all, the pip3 command fixed the issue for me too.
I just had to remove the Husqvarna integration and add it again.

Thank you @triumfas and @roflcoopter. :)

from husqvarna_automower.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.