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

Camera error: Unable to locate turbojpeg library automatically #109255

Closed
luca-angemi opened this issue Jan 31, 2024 · 4 comments · Fixed by #109329
Closed

Camera error: Unable to locate turbojpeg library automatically #109255

luca-angemi opened this issue Jan 31, 2024 · 4 comments · Fixed by #109329
Assignees
Milestone

Comments

@luca-angemi
Copy link
Contributor

The problem

2024-02-01 00:02:51.394 ERROR (MainThread) [homeassistant.components.camera.img_util] Error loading libturbojpeg; Cameras may impact HomeKit performance
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/img_util.py", line 98, in __init__
TurboJPEGSingleton.__instance = TurboJPEG()
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/turbojpeg.py", line 298, in __init__
self.__find_turbojpeg() if lib_path is None else lib_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/turbojpeg.py", line 928, in __find_turbojpeg
raise RuntimeError(
RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually.
e.g. jpeg = TurboJPEG(lib_path)

What version of Home Assistant Core has the issue?

2024.2.0b0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

camera

Link to integration documentation on our website

https://www.home-assistant.io/integrations/camera/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (camera) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of camera can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign camera Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


camera documentation
camera source
(message by IssueLinks)

@frenck frenck changed the title Camera error in logs in 2024.2.0b0 Camera error: Unable to locate turbojpeg library automatically Feb 1, 2024
@frenck frenck added this to the 2024.2.0 milestone Feb 1, 2024
@frenck frenck self-assigned this Feb 1, 2024
@frenck
Copy link
Member

frenck commented Feb 1, 2024

Assigning myself. Found this issue on this one.

We updates to Python 3.12 this release, which also came with an new Alpine Linux 3.19.

It seems that the lib was extracted from libjpeg-turbo into libturbojpeg 🤔

So we need a different package in our base images.

../Frenck

@bdraco
Copy link
Member

bdraco commented Feb 1, 2024

@frenck
Copy link
Member

frenck commented Feb 1, 2024

LOL! Beaten to it... got to see the same conclusion though, that review easier :)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants