meichthys / uptime_kuma

Uptime Kuma HACS integration
110 stars 23 forks source link

Requirements for uptime_kuma not found: ['pyuptimekuma==0.0.6']. #37

Closed Egglestron closed 1 year ago

Egglestron commented 1 year ago

Hi,

Uptime Kuma integration requires dependency pyuptimekuma version 0.0.6, but latest version is 0.0.4 on GitHub. Please find attached the logs of my Home Assistant instance, version 2023.3.0 b0.

Logger: homeassistant.setup Source: setup.py:205 First occurred: February 22, 2023 at 23:32:55 (1 occurrences) Last logged: February 22, 2023 at 23:32:55

Setup failed for custom integration uptime_kuma: Requirements for uptime_kuma not found: ['pyuptimekuma==0.0.6'].

Sarnog commented 1 year ago

I don't understand the question

If you check the site you just posted, there are instructions for installation of home assistant core, followed bij home assistant supervised. Check if you followed all steps.

You can also check docker containers in the terminal by typing:

Docker ps

Heelderpeel commented 1 year ago

And for de HASSIO users, someone a solution?

Sarnog commented 1 year ago

And for de HASSIO users, someone a solution?

See my explaination...

ChristopherGriffin commented 1 year ago

Strange things happen, please take a look at this link. Maybe that helps:

https://community.home-assistant.io/t/cant-find-home-assistant-container-in-docker/183944

So I followed the instructions and it was very informative. I performed the pip install --upgrade pip and it seemed to work.
image

However I still get the same error on uptime kuma integration after rebooting the server

image

phk-r commented 1 year ago

Strange things happen, please take a look at this link. Maybe that helps: https://community.home-assistant.io/t/cant-find-home-assistant-container-in-docker/183944

So I followed the instructions and it was very informative. I performed the pip install --upgrade pip and it seemed to work. image

However I still get the same error on uptime kuma integration after rebooting the server

image

You also need to run the command for upgrading pyuptimekuma. Its further up this thread.

And also thanks @Sarnog . I didnt realize the problem was inside home assistant core. Stupid I dont run portainer but I managed to get access to the container through console instead. Worked like a charm.

Sarnog commented 1 year ago

Strange things happen, please take a look at this link. Maybe that helps:

https://community.home-assistant.io/t/cant-find-home-assistant-container-in-docker/183944

So I followed the instructions and it was very informative. I performed the pip install --upgrade pip and it seemed to work.
image

However I still get the same error on uptime kuma integration after rebooting the server

image

Try to remove and re-install the uptime kuma add-on. If that doesn't work, you need to install pyuptimekuma in the terminal as well (where you typed the pip command)

VNRARA commented 1 year ago

@danielsmith89 could you give some more details around that please, is that in the docker container, what was the command you ran ? as I tried pip3 install pyuptimekuma==0.0.6 didn't do anything.... thanks

Yes, go inside the Home Assistant docker container (if that's what you are running HA in) and the issue that comand

Thank you that worked.

@danielsmith89 I plonked that into the HA terminal (Ha OS via VMM) but it didn't work. It updated, but it didn't work.

The SSH terminal is an addon that runs inside its own container, you have to attach to homassistant docker (if you run "docker ps -a" you should see it running) and then you run the command to install pyuptimekuma... I installed portainer-agent on hassos in a docker so it is much easier to access and manage the dockers environment from outside the addon SSH terminal.

I have got no clue where to start to attach to docker or get into that part of HAOS on my VMM install. Only place I know is to connect to a terminal directly via VMM where the CMD shows ha >

But from there I have no idea what commands to a to work inside the Home assistant container sorta say.

hs82h commented 1 year ago

@danielsmith89 could you give some more details around that please, is that in the docker container, what was the command you ran ? as I tried pip3 install pyuptimekuma==0.0.6 didn't do anything.... thanks

Yes, go inside the Home Assistant docker container (if that's what you are running HA in) and the issue that comand

Thank you that worked.

@danielsmith89 I plonked that into the HA terminal (Ha OS via VMM) but it didn't work. It updated, but it didn't work.

The SSH terminal is an addon that runs inside its own container, you have to attach to homassistant docker (if you run "docker ps -a" you should see it running) and then you run the command to install pyuptimekuma... I installed portainer-agent on hassos in a docker so it is much easier to access and manage the dockers environment from outside the addon SSH terminal.

I have got no clue where to start to attach to docker or get into that part of HAOS on my VMM install. Only place I know is to connect to a terminal directly via VMM where the CMD shows ha >

But from there I have no idea what commands to a to work inside the Home assistant container sorta say.

On your docker host type: docker exec <containername> <command>

Heelderpeel commented 1 year ago

And for de HASSIO users, someone a solution?

See my explaination...

oke thnx

meichthys commented 1 year ago

This should now be patched in v2.1.0. Please check HACS for the update and report back if you have any issues. If you don't see the update in HACS, try clicking 'Redownload' in the HACS menu: image

mvtslot commented 1 year ago

Yes, it works. Thanks!

bighippo999 commented 1 year ago

v 2.1.0 works for me too.

Heelderpeel commented 1 year ago

works perfect, thnx.

stigglitch commented 1 year ago

Running 2.1.1 on 23.7.3 (HassOS) and it stopped working after upgrading.

Everything else works. Installing works, when adding the integration the following message is thrown:

Config flow could not be loaded: {"message":"Invalid handler specified"}

DebugLog:

2023-07-24 10:45:43.742 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration uptime_kuma: cannot import name 'UptimeKuma' from 'pyuptimekuma' (/usr/local/lib/python3.11/site-packages/pyuptimekuma/init.py)