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

emporia_vue fails to initialize under home-assistant-snap; can't install pyemvue dependency #271

Open
curtisgalloway opened this issue Apr 10, 2024 · 0 comments

Comments

@curtisgalloway
Copy link

I am running Home Assistant under Snap (home-assistant-snap) and trying to use emporia_vue through HACS. This worked until the most recent update that requires pyemvue version 0.18.4; now I get the following error when Home Assistant starts up:

2024-04-09 12:48:36.799 INFO (SyncWorker_10) [homeassistant.util.package] Attempting install of pyemvue==0.18.4
2024-04-09 12:48:47.312 ERROR (SyncWorker_10) [homeassistant.util.package] Unable to install package pyemvue==0.18.4: ERROR: Will not install to the user site because it will lack sys.path precedence to pycognito in /snap/home-assistant-snap/592/lib/python3.12/site-packages
2024-04-09 12:48:47.315 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'emporia_vue': Requirements for emporia_vue not found: ['pyemvue==0.18.4'].

The pip command it's trying when installing pyemvue is this:

2024-03-21 10:46:20.926 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of pyemvue==0.18.4
2024-03-21 10:46:20.926 DEBUG (SyncWorker_1) [homeassistant.util.package] Running pip command: args=['/snap/home-assistant-snap/585/bin/python3', '-m', 'pip', 'install', '--quiet', 'pyemvue==0.18.4', '--timeout', '60', '--upgrade', '--constraint', '/snap/home-assistant-snap/585/lib/python3.11/site-packages/homeassistant/package_constraints.txt']

I'm assuming this is something to do with the virtual environment when running under snap, but I haven't been able to reproduce the failure by hand yet running in a shell in the snap environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant