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

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

Closed
Egglestron opened this issue Feb 23, 2023 · 64 comments · May be fixed by jayakornk/pyuptimekuma#3
Closed

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

Egglestron opened this issue Feb 23, 2023 · 64 comments · May be fixed by jayakornk/pyuptimekuma#3
Labels
bug Something isn't working

Comments

@Egglestron
Copy link

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'].

@meichthys
Copy link
Owner

I would think that the version of pyuptimekuma should not be coming from github, but rather from pypi which has the 0.0.6 version:
https://pypi.org/project/pyuptimekuma/

@alexruffell
Copy link

alexruffell commented Feb 23, 2023

@meichthys Can you clarify? I have the same issue and don't know what to do to fix it.

Maybe this provides a bit more info:

2023-02-23 10:44:59.041 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package pyuptimekuma==0.0.6: ERROR: Cannot install pyuptimekuma==0.0.6 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[notice] A new release of pip is available: 23.0 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-02-23 10:45:02.346 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package pyuptimekuma==0.0.6: ERROR: Cannot install pyuptimekuma==0.0.6 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[notice] A new release of pip is available: 23.0 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-02-23 10:45:05.413 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package pyuptimekuma==0.0.6: ERROR: Cannot install pyuptimekuma==0.0.6 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[notice] A new release of pip is available: 23.0 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-02-23 10:45:05.413 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration uptime_kuma: Requirements for uptime_kuma not found: ['pyuptimekuma==0.0.6'].
2023-02-23 10:45:08.209 ERROR (MainThread) [aiohttp.server] Error handling request

@meichthys
Copy link
Owner

@alexruffell and @Egglestron It mayhave something to do with never versions of pip which resolve dependencies differently than in the past.

The issue here seems to be that we use pyuptimekuma which relies on a newer version of prometheus-client than what homeassistant requires (we require anything greater than v0.14.1 while HA requires exactly version 0.7.1)

Since we likely won't get Homeassistant to update their dependency too easily, we may be able to relax our requirement. @jayakornk Do you know if v0.7.1 would work for pyuptimekuma?

@Intecpsp
Copy link

Intecpsp commented Mar 1, 2023

I did not have this issue until updating to 2023.3 public today. I got this same error for other packages as well. I wonder if this broke things. @Egglestron has been, but @alexruffell have you been running beta HA?

UPDATE: Links to other integrations I'm having the same issue with:

@alexruffell
Copy link

@Intecpsp Yes, I was on 2023.3 betas, now stable.

@henrikbla
Copy link

I can confirm this issue happens wirh 2023.03.0 release, thus breaking the integration. Let me know if you need any more details.

@Heelderpeel
Copy link

Heelderpeel commented Mar 2, 2023

same problem for me after hassio update 2023.3

Logger: homeassistant.setup
Source: setup.py:205
First occurred: 01:12:45 (1 occurrences)
Last logged: 01:12:45

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

@nosut

This comment was marked as duplicate.

@brandoningli
Copy link

Adding yet another instance to the list of affected ones.

Integration v2.0.3 via HACS
HAOS 9.5, Supervisor 2023.01.1
Works on Core 2023.2.5, fails on 2023.3.0 with the above requirements error.

@danihalter1
Copy link

Same issue here, after upgrading to 2023.3.0:

HAOS 9.5
Installed via HACS, version 0.5.2
Works on Core 2023.2.5, but does not load on 2023.3.0, with the requirements error below:

_Logger: homeassistant.setup
Source: setup.py:205
First occurred: 12:54:56 AM (1 occurrences)
Last logged: 12:54:56 AM

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

@derekoharrow
Copy link

Same problem here on HA 2023.3.0:

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

	2023-03-02 09:06:20.150 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package pyuptimekuma==0.0.6: ERROR: Cannot install pyuptimekuma==0.0.6 because these package versions have conflicting dependencies.
	ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

	[notice] A new release of pip is available: 23.0 -> 23.0.1
	[notice] To update, run: pip install --upgrade pip

@ghc88uk
Copy link

ghc88uk commented Mar 2, 2023

Same issue for me since updating to HA 2023.3.0. Had one other integration refuse to load after updating (AsusRouter) but they have put an update out that has fixed it. Any idea on how to fix the uptime kuma integration or do we need to wait until an update is published?

2023-03-02 11:00:41.406 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration uptime_kuma which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-02 11:01:21.116 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration uptime_kuma: Requirements for uptime_kuma not found: ['pyuptimekuma==0.0.6']. homeassistant.requirements.RequirementsNotFound: Requirements for uptime_kuma not found: ['pyuptimekuma==0.0.6']. File "/config/custom_components/uptime_kuma/__init__.py", line 4, in <module>

@nsleigh
Copy link

nsleigh commented Mar 2, 2023

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.

Although the release version says 0.0.4 the init.py file says it is 0.0.6.

@bighippo999

This comment was marked as duplicate.

@meichthys
Copy link
Owner

meichthys commented Mar 2, 2023

The version shouldn't be an issue since the correct version is listed in pypi. There is however a package discrepancy with prometheus-client which already exists in homeassistant core (version 0.7.1) while our main dependency pyuptimekuma requires a newer version.

Ideally the prometheus integration of homeassistant core would be updated to a newer version but I don't see that happening too soon so I have submitted a proposed fix to our upstream dependency here jayakornk/pyuptimekuma#3 once that is merged, we should be able to push out an update to fix this.

In the mean time we may be able to monkey patch our manifest.json to update our requirements but I haven't been able to try it yet.

@djcrawleravp

This comment was marked as duplicate.

@JGNi

This comment was marked as duplicate.

@danielsmith89
Copy link

I've found that doing a

pip3 install pyuptimekuma==0.0.6

Inside the container fixes it in the interim.

@djcrawleravp

This comment was marked as duplicate.

@SHHA24
Copy link

SHHA24 commented Mar 3, 2023

@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

@danielsmith89
Copy link

@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

@taelinn
Copy link

taelinn commented Mar 3, 2023

@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.

@mvtslot
Copy link

mvtslot commented Mar 3, 2023

Any temporary solution available if I run HASS from raspberry OS?

@SHHA24
Copy link

SHHA24 commented Mar 3, 2023

@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

@danielsmith89 - thanks but no running supported supervisor on Debian.

@meichthys meichthys added the bug Something isn't working label Mar 3, 2023
@meichthys meichthys pinned this issue Mar 3, 2023
@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman

This comment was marked as off-topic.

@Sarnog

This comment was marked as off-topic.

@walkerfreeman
Copy link

I don't understand the question

@terriblefox
Copy link

terriblefox commented Mar 6, 2023

Workaround fixed it. Integration is working again. If you dont see the container in Portainer check Portainer settings, if there are hidden containers, if so remove them from the list.

@Sarnog
Copy link

Sarnog commented Mar 6, 2023

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

And for de HASSIO users, someone a solution?

@Sarnog
Copy link

Sarnog commented Mar 6, 2023

And for de HASSIO users, someone a solution?

See my explaination...

@ChristopherGriffin
Copy link

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

phk-r commented Mar 7, 2023

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

Sarnog commented Mar 7, 2023

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

VNRARA commented Mar 7, 2023

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

hs82h commented Mar 7, 2023

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

And for de HASSIO users, someone a solution?

See my explaination...

oke thnx

@meichthys
Copy link
Owner

meichthys commented Mar 9, 2023

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

mvtslot commented Mar 9, 2023

Yes, it works. Thanks!

@bighippo999
Copy link

v 2.1.0 works for me too.

@Heelderpeel
Copy link

works perfect, thnx.

@stigglitch
Copy link

stigglitch commented Jul 24, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet