Schnitzel / hass-miner

Controll your Bitcoin miner from Home Assistant
MIT License
58 stars 19 forks source link

Miner 1.1.15/1.1.16.rc1 setup failed after HA Core update #393

Open monkeyjpg opened 3 weeks ago

monkeyjpg commented 3 weeks ago

Version of the custom_component

Found at 1.1.15 and 1.1.16.rc1

Configuration

Core 2024.10.0 Supervisor 2024.09.1 Operating System 13.1 User interface 20241002.2

Debug log

homeassistant.setup Source: setup.py:269 Setup failed for custom integration 'miner': Requirements for miner not found: ['pyasic==0.60.7'].


homeassistant.util.package Source: util/package.py:150

Unable to install package pyasic==0.60.6: × No solution found when resolving dependencies: ╰─▶ Because there is no version of betterproto==2.0.0b6 and pyasic==0.60.6 depends on betterproto==2.0.0b6, we can conclude that pyasic==0.60.6 cannot be used. And because you require pyasic==0.60.6, we can conclude that your requirements are unsatisfiable. hint: betterproto was requested with a pre-release marker (e.g., betterproto==2.0.0b6), but pre-releases weren't enabled (try: --prerelease=allow)

maxxe39 commented 3 weeks ago

Same Problem

msmitka commented 3 weeks ago

Same problem Setup failed for custom integration 'miner': Requirements for miner not found: ['pyasic==0.60.6'].

ThorPrez commented 3 weeks ago

In my case the log entry is Setup failed for custom integration 'miner': Requirements for miner not found: ['pyasic==0.60.7']. Both miner were running with 1.1.14 before, but with last HA update not anymore. Also not running with 1.1.16.rc1.

Ben-in-Chicago commented 3 weeks ago

I was going to open an issue for this as well. Latest HA Core update and pre-release miner version:

image

b-rowan commented 3 weeks ago

Ah. Betterproto being stupid. That's not great, as I'm not sure the existing BOS+ schema actually complies with what betterproto wants.

b-rowan commented 3 weeks ago

"Betterproto was requested with a pre-release marker, but pre-releases were not enabled..."

Ben-in-Chicago commented 3 weeks ago

"Betterproto was requested with a pre-release marker, but pre-releases were not enabled..."

I'm running HA Green so not really sure how to alter the code to enable pre-releases. I know others here are smart enough to figure this out. :)

Tanki90 commented 3 weeks ago

same problem

b-rowan commented 3 weeks ago

"Betterproto was requested with a pre-release marker, but pre-releases were not enabled..."

I'm running HA Green so not really sure how to alter the code to enable pre-releases. I know others here are smart enough to figure this out. :)

I'll have to try to out on my instance when I get home, the good news is it's a HASS change, but I don't know how to deal with it or really what the did.

gmint commented 3 weeks ago

Same here.

ngluvakov commented 3 weeks ago

I have the same problem. Please fix it.

jax24fr commented 3 weeks ago

Same here my friend. Can you please try to fix it. Thanks !

b-rowan commented 3 weeks ago

I have asked the home assistant team about it, but it's an issue with home assistant, not this repo.

ThorPrez commented 3 weeks ago

Version 1.1.12 on HA Core 2024.9.3 is running well. I´ve tested also 1.1.13 to 1.1.16rc and all are running on this core.

Core 2024.9.3 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240909.1

dennisreimann commented 3 weeks ago

@ThorPrez Thanks for the pointer. I downgraded HA Core using the Terminal (ha core update --version 2024.9.3) and now Miner 1.1.16rc1 is working for me again.

xmike13 commented 2 weeks ago

Same Problem

Schelin78 commented 2 weeks ago

Logger: homeassistant.setup Källa: setup.py:269 Inträffade först: 10:05:57 (1 händelser) Senast loggade: 10:05:57

Setup failed for custom integration 'miner': Requirements for miner not found: ['pyasic==0.60.6'].

ThorPrez commented 2 weeks ago

Guys, downgrade HA core to 2024.9.3 and it will work.

xmike13 commented 2 weeks ago

Yes, downgrade worked also for me

brtwrs commented 2 weeks ago

Im running 2014.10.1 installed de missing package by hand in HA core (pip install pyasic). Restart HA and you're good to go with the latest HA version

Ben-in-Chicago commented 2 weeks ago

pip install pyasic

Hello! I'm using HA Green. Would you happen to know how I could do that? Here is what I get when I tried within the terminal app:

image

b-rowan commented 2 weeks ago

@Ben-in-Chicago try python3 -m pip install pyasic

Ben-in-Chicago commented 2 weeks ago

python3 -m pip install pyasic

image

b-rowan commented 2 weeks ago

python3 -m pip install pyasic

image

python rather than python3?

Ben-in-Chicago commented 2 weeks ago

python3 -m pip install pyasic

image

python rather than python3?

Same result

brtwrs commented 2 weeks ago

Not exactly sure how to do that on the green. I run HA in a docker container and just exec into the container. Make sure you are in the Linux cli not the HA cli

msmitka commented 2 weeks ago

Can't the repair be a downgrade??? You are not serious.

b-rowan commented 2 weeks ago

Can't the repair be a downgrade???

You are not serious.

It's an issue with home assistant, and until they reply to me on the posts I've made, I can't do anything about it.

ngluvakov commented 2 weeks ago

Can't the repair be a downgrade??? You are not serious.

It's an issue with home assistant, and until they reply to me on the posts I've made, I can't do anything about it.

Thank you for working on it. You sir, are a gentleman and a scholar. You have my respect.

editwentyone commented 1 week ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

maxxe39 commented 1 week ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

Can I do this with the Terminal? The commands dont work. Maybe i am not a pro at this point..

b-rowan commented 1 week ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

Can I do this with the Terminal?

The commands dont work. Maybe i am not a pro at this point..

This will only work if you're running home assistant with docker.

Use the Terminal and SSH add-on to get ssh access, the run the commands past the docker command. The docker exec ... command is the docker deployment version of SSH.

spamferkel commented 1 week ago

Can't the repair be a downgrade??? You are not serious.

It's an issue with home assistant, and until they reply to me on the posts I've made, I can't do anything about it.

Can you please post a link to your posts. I would like to join the discussion an support you.

spamferkel commented 1 week ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

2024.10.2 also confirmed working

b-rowan commented 1 week ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

2024.10.2 also confirmed working

Fixed in latest version of home assistant then. Nice.

tim-brand commented 1 week ago

Are you sure this is fixed? I still have the error. Maybe you installed the dependency manually, which fixed it for you?

I'm running haos and just updated HA to 2024.10.2, and still get the same error when trying to add a miner. I tried v1.1.16rc1:

homeassistant.requirements.RequirementsNotFound: Requirements for miner not found: ['pyasic==0.60.7'].

But also tried v1.1.15

homeassistant.requirements.RequirementsNotFound: Requirements for miner not found: ['pyasic==0.60.6'].
b-rowan commented 1 week ago

Yeah, like I said, it's actually an issue with home assistant, nothing has changed on the pyasic side that would cause it to be unable to install.

b-rowan commented 1 week ago

Can you please post a link to your posts. I would like to join the discussion an support you.

@spamferkel

https://community.home-assistant.io/t/home-assistant-24-10-0-issues-with-beta-package-versions/778656

tim-brand commented 1 week ago

Yeah, like I said, it's actually an issue with home assistant, nothing has changed on the pyasic side that would cause it to be unable to install.

I get that, but I think it's not fixed with the latest HA release. At least I can't confirm it.

adadnc commented 1 week ago

My guess would be that the fix would come with Home Assistant Operating System update and not with a new version of Home Assistant, since pyasic would be part of the OS and not of HA

b-rowan commented 1 week ago

My guess would be that the fix would come with Home Assistant Operating System update and not with a new version of Home Assistant, since pyasic would be part of the OS and not of HA

Not so sure about this, because the issue isn't actually with any dependency per-se, but with the way home assistant is installing dependencies. They need to allow pre-release dependencies, which needs to be changed in core AFAIU.

spamferkel commented 1 week ago

There is a update for HA-OS to 13.2, but it does not fix the issue.

I updated to 13.2, but noticed that the homeassistant-container was not rebuild during the OS-update. Image tag for ghcr.io/home-assistant/qemux86-64-homeassistant:2024.10.2 has also not changed. So i forced recreation by killing and removing the homeassitant-container via docker. On the new spawned container pyasic still wont install automatically and i had to reinstall it via pip install pyasic==0.60.7

ngluvakov commented 5 days ago

Any news on the subject? Will the next version of this integration be able to work without any additional work?

b-rowan commented 5 days ago

Any news on the subject? Will the next version of this integration be able to work without any additional work?

Still waiting on a response from the devs. This is an issue with home assistant, not with this integration.

b-rowan commented 4 days ago

Opened an issue on core, we shall see if that gets any response.

Ben-in-Chicago commented 4 days ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

Seems I'm limited to the commands listed here. Any other suggestions?

spamferkel commented 4 days ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

Seems I'm limited to the commands listed here. Any other suggestions?

You need to get root-access. Look here https://developers.home-assistant.io/docs/operating-system/debugging/ . Be very careful with this. You can easily destroy your homeassistant. This is normally just for devs and die-hard-linux-nerds ;) . If you can execute a command like docker ps you should get a list of running containers. Then you're on the right way and can go on with the commands you mentioned...

Ben-in-Chicago commented 4 days ago

login with ssh, enter docker docker exec -it homeassistant bash pip install pyasic==0.60.7 install / update v1.1.16rc1 with HACS works on core 2024.10.1

Seems I'm limited to the commands listed here. Any other suggestions?

You need to get root-access. Look here https://developers.home-assistant.io/docs/operating-system/debugging/ . Be very careful with this. You can easily destroy your homeassistant. This is normally just for devs and die-hard-linux-nerds ;) . If you can execute a command like docker ps you should get a list of running containers. Then you're on the right way and can go on with the commands you mentioned...

It appears limited to what I can do (within the GUI and my skillset) so it seems like I need to sit tight until this is resolved by the appropriate people.

image

ngluvakov commented 2 days ago

This question makes me uneducated, but it is simple in other integrations - I install them, and they work. Is there a way for the developers to adapt the integration to the new system somehow?

b-rowan commented 2 days ago

This question makes me uneducated, but it is simple in other integrations - I install them, and they work. Is there a way for the developers to adapt the integration to the new system somehow?

The reason for this is because pyasic requires betterproto for managing BOS+ devices, because it's basically the only reasonable library for handling gRPC calls. The problem is it has been in a beta version for about 2 years, and now home assistant is refusing to install it (probably because one flag needs to be set in their package manager, uv), which they updated from like 0.2.x to 0.4.x in 24.10.0. Hence broken package, and I can't do anything about it since it is required for the integration to function at all.