#8 Error loading libturbojpeg

Closed
opened 2 years ago by Ghost · 9 comments
Ghost commented 2 years ago

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 commented 2 years ago
Poster

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 commented 2 years ago
Poster

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`?
Ghost commented 2 years ago
Poster

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 commented 2 years ago
Poster

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

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

Perfect. Thanks for your patience!

Perfect. Thanks for your patience!
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.