#8 Error loading libturbojpeg

已关闭
由 Ghost 于 3 年之前创建 · 9 条评论
Ghost 评论于 3 年之前

Just got this new error on 2021.9.6. Seems to be another dependency issue:

Logger: homeassistant.components.camera.img_util
Source: components/camera/img_util.py:96
Integration: Camera (documentation, issues)
First occurred: 15:00:11 (1 occurrences)
Last logged: 15:00:11

Error loading libturbojpeg; Cameras may impact HomeKit performance
Traceback (most recent call last):
  File "/snap/home-assistant-snap/385/lib/python3.8/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__
    TurboJPEGSingleton.__instance = TurboJPEG()
  File "/snap/home-assistant-snap/385/lib/python3.8/site-packages/turbojpeg.py", line 147, in __init__
    turbo_jpeg = cdll.LoadLibrary(
  File "/usr/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libturbojpeg.so.0: cannot open shared object file: No such file or directory
Just got this new error on `2021.9.6`. Seems to be another dependency issue: ``` Logger: homeassistant.components.camera.img_util Source: components/camera/img_util.py:96 Integration: Camera (documentation, issues) First occurred: 15:00:11 (1 occurrences) Last logged: 15:00:11 Error loading libturbojpeg; Cameras may impact HomeKit performance Traceback (most recent call last): File "/snap/home-assistant-snap/385/lib/python3.8/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__ TurboJPEGSingleton.__instance = TurboJPEG() File "/snap/home-assistant-snap/385/lib/python3.8/site-packages/turbojpeg.py", line 147, in __init__ turbo_jpeg = cdll.LoadLibrary( File "/usr/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary return self._dlltype(name) File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: libturbojpeg.so.0: cannot open shared object file: No such file or directory ```

Oh, sorry! But this might be caused of a mistake I did by setting content supposed going into the LD_LIBRARY_PATH in the PATH environment variable, when adding the libpulse package.

I'm fixing that now. Wait with submitting a lot of issues. :D

Oh, sorry! But this might be caused of a mistake I did by setting content supposed going into the `LD_LIBRARY_PATH` in the `PATH` environment variable, when adding the `libpulse` package. I'm fixing that now. Wait with submitting a lot of issues. :D
Ghost 评论于 3 年之前
发布者

Hahah I will, I promise!

Just let me know when you'd like me to try again. :)

Hahah I will, I promise! Just let me know when you'd like me to try again. :)

Can you now check if it's fixed again? :) I do not have HomeKit :)

Can you now check if it's fixed again? :) I do not have HomeKit :)
Ghost 评论于 3 年之前
发布者

Still getting the same error, I'm afraid…

Logger: homeassistant.components.camera.img_util
Source: components/camera/img_util.py:96
Integration: Camera (documentation, issues)
First occurred: 18:22:25 (1 occurrences)
Last logged: 18:22:25

Error loading libturbojpeg; Cameras may impact HomeKit performance
Traceback (most recent call last):
  File "/snap/home-assistant-snap/387/lib/python3.8/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__
    TurboJPEGSingleton.__instance = TurboJPEG()
  File "/snap/home-assistant-snap/387/lib/python3.8/site-packages/turbojpeg.py", line 147, in __init__
    turbo_jpeg = cdll.LoadLibrary(
  File "/usr/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libturbojpeg.so.0: cannot open shared object file: No such file or directory

Not sure why it's popping up all of a sudden since I'm also not using HomeKit. I am using a few Wyze cameras, though.

Still getting the same error, I'm afraid… ``` Logger: homeassistant.components.camera.img_util Source: components/camera/img_util.py:96 Integration: Camera (documentation, issues) First occurred: 18:22:25 (1 occurrences) Last logged: 18:22:25 Error loading libturbojpeg; Cameras may impact HomeKit performance Traceback (most recent call last): File "/snap/home-assistant-snap/387/lib/python3.8/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__ TurboJPEGSingleton.__instance = TurboJPEG() File "/snap/home-assistant-snap/387/lib/python3.8/site-packages/turbojpeg.py", line 147, in __init__ turbo_jpeg = cdll.LoadLibrary( File "/usr/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary return self._dlltype(name) File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: libturbojpeg.so.0: cannot open shared object file: No such file or directory ``` Not sure why it's popping up all of a sudden since I'm also not using HomeKit. I am using a few Wyze cameras, though.

I'll add it :) It's building now. A new release with this lib should be out in about 45 minutes for amd64, in the channel latest/edge (not /dev).

Just out of curiosity; Did this integration work pre 2021.9.6?

I'll add it :) It's building now. A new release with this lib should be out in about 45 minutes for amd64, in the channel `latest/edge` (not `/dev`). Just out of curiosity; Did this integration work pre `2021.9.6`?
joachimmg3 年之前 重新开启
Ghost 评论于 3 年之前
发布者

I'm pretty sure that this error wasn't present before 2021.9.6, but I can't remember for sure. I could switch to an earlier channel if you need me to firgure this out.

I'm pretty sure that this error wasn't present before `2021.9.6`, but I can't remember for sure. I could switch to an earlier channel if you need me to firgure this out.

No, if it works now, there's no need to. I wouldn't mind going back to fix all the potential bugs in earlier releases. :) Maybe the day when HA has an Long-term support edition. :p

But it works on the newest?

No, if it works now, there's no need to. I wouldn't mind going back to fix all the potential bugs in earlier releases. :) Maybe the day when HA has an Long-term support edition. :p But it works on the newest?
Ghost 评论于 3 年之前
发布者

Yeah, it seems to be working perfectly now. Thanks!

Yeah, it seems to be working perfectly now. Thanks!
Ghost3 年之前 关闭

Perfect. Thanks for your patience!

Perfect. Thanks for your patience!
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。