ageitgey / ageitgey/face_recognition

dlib's problem with libjpeg

Open
#216 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Description

Python - 3.5
Ubuntu 17.04

I have face-recognition working in docker, but I'd like to run the latest version outside of that. After what appears to be a successful install, I get the following when I attempt to run it:

gpp8p@woozel:/media/gpp8p/ExtraDrive1/frecog_1028/face_recognition$ python3 ./examples/recognize_faces_in_pictures.py
Traceback (most recent call last):
File "./examples/recognize_faces_in_pictures.py", line 1, in
import face_recognition
File "/home/gpp8p/.local/lib/python3.5/site-packages/face_recognition/init.py", line 7, in
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/home/gpp8p/.local/lib/python3.5/site-packages/face_recognition/api.py", line 4, in
import dlib
File "/home/gpp8p/.local/lib/python3.5/site-packages/dlib/init.py", line 1, in
from .dlib import *
ImportError: libjpeg.so.9: cannot open shared object file: No such file or directory

Checking my libraries, I notice that I have libjpeg.so.8
gpp8p@woozel:/media/gpp8p/ExtraDrive1/frecog_1028/face_recognition$ ldconfig -p | grep -i libjp
libjpeg.so.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libjpeg.so.8

Is this a Ubuntu 17.04 issue that might be resolved by upgrading to 17.10, or is there a way I can upgrade this specific library only ?

-George Pipkin
Afton, Va.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the import failure from examples/recognize_faces_in_pictures.py under Python 3.5 on Ubuntu 17.04, following the reported dlib import path. Investigate the libjpeg.so.9 dependency versus the installed libjpeg.so.8, and consider the issue resolved only when the supported installation or dependency behavior is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.