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

Receiving following error after installation from HACS #6

Open
mkopnsrc opened this issue Mar 30, 2020 · 5 comments
Open

Receiving following error after installation from HACS #6

mkopnsrc opened this issue Mar 30, 2020 · 5 comments

Comments

@mkopnsrc
Copy link

After installing this hdhomerun plugin and adding code to configuration.yaml
hdhomerun:
sensor:
- host: 192.168.1.10
Restarted entire HomeAssistant server but sensor doesn't show up. After looking at logs, this is what I saw below. Let me know if I can help in anyway. Thanks.

Logger: homeassistant.core
Source: custom_components/hdhomerun/config_flow.py:5
First occurred: 12:16:16 AM (1 occurrences)
Last logged: 12:16:16 AM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 100, in async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_create_flow
integration.get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 277, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/hdhomerun/config_flow.py", line 5, in
from hdhr.adapter import HdhrUtility
File "/usr/local/lib/python3.7/site-packages/hdhr/adapter.py", line 13, in
from hdhr.externals import *
File "/usr/local/lib/python3.7/site-packages/hdhr/externals.py", line 5, in
import hdhr.libhdhr
File "/usr/local/lib/python3.7/site-packages/hdhr/libhdhr.py", line 14, in
library = cdll.LoadLibrary(_FILEPATH)
File "/usr/local/lib/python3.7/ctypes/init.py", line 442, in LoadLibrary
return self._dlltype(name)
File "/usr/local/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: Error loading shared library libhdhomerun.so: No such file or directory

@burnnat
Copy link
Owner

burnnat commented Apr 1, 2020

Thanks for the report. From this error it looks like the libhdhomerun library was not found on your system:

OSError: Error loading shared library libhdhomerun.so: No such file or directory

Are you running Home Assistant Core or a full Home Assistant installation (formerly Hassio)? Per the installation instructions you'll need to get libhdhomerun set up in order for the integration to function.

@mkopnsrc
Copy link
Author

mkopnsrc commented Apr 1, 2020

@burnnat I'm using the full hassio image on Pi3b. I did ran "apk add libhdhomerun" first then added hdhomerun config in configuration.yaml

@k-rock
Copy link

k-rock commented Apr 3, 2020

I also ran 'apk add libhdhomerun', added config in configuration.. I see the following in my logs:
Annotation 2020-04-03 082108

@disturbed-pixel
Copy link

disturbed-pixel commented Apr 15, 2020

I'm getting the same as @k-rock and @mkopnsrc (yes the lib is installed) on Ubuntu - hassio

image

@Nils154
Copy link

Nils154 commented Oct 10, 2022

If you are running homeassistant core, you need to do something like this:
sudo docker exec -it homeassistant apk add libhdhomerun
It installs the library in the docker image.

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

5 participants