AlexxIT / HassWP

Portable version of Home Assistant for Windows (no need to install)
https://github.com/AlexxIT/Blog
633 stars 76 forks source link

Nest integration issue #33

Closed shadowking1443 closed 2 years ago

shadowking1443 commented 2 years ago

Hello,

I'm pretty new, so please forgive my ignorance, but I've having an issue when trying to add the Nest integration. I keep getting the error "homeassistant.requirements.RequirementsNotFound: Requirements for nest not found: ['google-nest-sdm==0.3.8'].".

I have attempted to manually install that requirement, but the flow still doesn't find it. Can you please advise?

AlexxIT commented 2 years ago

Hass can download requirements automatically. Sometimes it takes time. You can try to restart Hass and repeat your actions. Maybe requirement already loaded.

shadowking1443 commented 2 years ago

Hass can download requirements automatically. Sometimes it takes time. You can try to restart Hass and repeat your actions. Maybe requirement already loaded.

Hello AlexxIT, thank you for responding! I just tried again, and I can see that it hangs for a minute or two on "[homeassistant.util.package] Attempting install of google-nest-sdm==0.3.8" before failing.

Here is the log as it starts to hang: https://paste-bin.xyz/35985

And here is the log after it fails: https://paste-bin.xyz/35986

Please let me know if there is anything I can do to correct this, or provide a better report!

gambalaya commented 2 years ago

I have the nest integration working - unfortunately the steps I took were a long time ago and I didn't capture them exactly, but the issue was to do with the libcst dependency ( libcst [required: >=0.3.10, installed: ?] ). For some reason the latest libcst==0.4.0 is not in the Windows 32-bit pip wheel and it can't compile, so I manually installed libcst==0.3.10. After that google-nest-sdm installed properly, and I think I might have had to pip install google-cloud-pubsub as well? Apologies for not capturing this properly when I got it going. I should also mention I have not migrated my "Works with Nest" account to Google in case that makes a difference.

jorbig commented 2 years ago

31 must be the same issue. Could you provide a fix in the next release, @AlexxIT?

AlexxIT commented 2 years ago

This is duplicate for #31

AlexxIT commented 2 years ago

Try latest HassWP version

gambalaya commented 2 years ago

shadowking1443 and jorbig - I was able to confirm that the Nest integration will install into the (now previous) Windows 7 / 32-bit versions after manually running "python.exe -m pip install libcst==0.3.10" (make sure you have run bin\env.bat first so you are installing into your HassWP environment).

AlexxIT - Really appreciate the work you have done to make Hass native Windows compatible and so easy to install! Since my Hass laptop is Windows 7 / 32-bit I can't try out the latest HassWP 64-bit version, but I did notice you had also released v2021.12.10 for 32-bit yesterday and have some feedback: The homekit integration is now failing with "invalid ffmpeg key". I guess you have added support for ffmpeg in camera integrations, which as unfortunately broken homekit? Version v2021.11.5 still works so I am good to stay on that. Besides, Hass has now removed the "Stop" command in Server Controls (no clean way to shutdown anymore?) and has deprecated Python 3.8.9 (outside of your control of course) - thanks again for the great work!

AlexxIT commented 2 years ago

I blocked ffmpeg support because it generate errors. But if you have it installed, disable the lock in this file:

\HassWP_2021.12.10\python-3.8.9\Lib\site-packages\hass_win\__main__.py

https://github.com/AlexxIT/HassWP/blob/4afd53cc56531e390be2d35a6e1e142d64bbff71/hass_win/__main__.py#L65

AlexxIT commented 2 years ago

libcst installed fine on Python 3.9 64-bit. I can't install it on Python 3.8 32-bit