question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually

See original GitHub issue

Followed the installation instruction on Mac 11.0.1.

  1. /usr/local/lib/libturbojpeg.dylib does not exist
  2. jpeg = TurboJPEG() throws exception

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lilohuangcommented, Dec 15, 2020

Could you try to remove jpeg-turbo and install it again?

% brew uninstall jpeg-turbo % brew install jpeg-turbo

Here is my lib folder content.

MacBook-Pro:lib lilohuang$ ls -al /usr/local/opt/jpeg-turbo/lib/
total 5168
drwxr-xr-x  11 lilohuang  staff     352 11 17 07:38 .
drwxr-xr-x  11 lilohuang  staff     352 12 15 17:56 ..
-r--r--r--   1 lilohuang  staff  584688 12 15 17:56 libjpeg.8.2.2.dylib
lrwxr-xr-x   1 lilohuang  staff      19 11 17 07:38 libjpeg.8.dylib -> libjpeg.8.2.2.dylib
-r--r--r--   1 lilohuang  staff  659800 11 17 07:38 libjpeg.a
lrwxr-xr-x   1 lilohuang  staff      15 11 17 07:38 libjpeg.dylib -> libjpeg.8.dylib
-rw-r--r--   1 lilohuang  staff  639896 12 15 17:56 libturbojpeg.0.2.0.dylib
lrwxr-xr-x   1 lilohuang  staff      24 11 17 07:38 libturbojpeg.0.dylib -> libturbojpeg.0.2.0.dylib
-r--r--r--   1 lilohuang  staff  752608 11 17 07:38 libturbojpeg.a
lrwxr-xr-x   1 lilohuang  staff      20 11 17 07:38 libturbojpeg.dylib -> libturbojpeg.0.dylib
drwxr-xr-x   4 lilohuang  staff     128 12 15 17:56 pkgconfig

0reactions
372046933commented, Dec 16, 2020

@lilohuang Uninstall and then install jpeg-turbo. lib folder appears. Thanks a million

➜  ~ ls /usr/local/opt/jpeg-turbo/
ChangeLog.md         INSTALL_RECEIPT.json LICENSE.md           README.md            bin                  include              lib                  share
➜  ~ 

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Unable to locate turbojpeg library automatically. ' 'You may ...
'Unable to locate turbojpeg library automatically. ' 'You may specify the turbojpeg library path manually.\n' 'e.g. jpeg = TurboJPEG(lib_path)' #27.
Read more >
TurboJPEG error after installation - Home Assistant Community
You may specify the turbojpeg library path manually. e.g. jpeg = TurboJPEG(lib_path). I am pretty sure that the installation ran TurboJPEG.
Read more >
RuntimeError: Unable to locate turbojpeg library automatically ...
RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually.
Read more >
PyTurboJPEG - PyPI
A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
Read more >
Fast loading and display of images in python (Utilizing Libjpeg ...
from turbojpeg import TurboJPEG # specifying library path explicitly # jpeg = TurboJPEG(r'D:\turbojpeg.dll') # jpeg ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found