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.

ImportError: dlib v19.16.0 is missing cblas_dtrsm symbol

See original GitHub issue
  • face_recognition version:

Click==7.0 dlib==19.16.0 face-recognition==1.2.3 face-recognition-models==0.3.0 numpy==1.16.0 Pillow==5.4.1

  • Python version: 3.7.2
  • Pip version: 19.0.1
  • Operating System: Linux archlinux 4.19.18-1-lts

Description

The pip installation gave me an undefined symbol: cblas_dtrsm.

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import face_recognition
  File "/home/s0h3ck/.virtualenvs/test/lib/python3.7/site-packages/face_recognition/__init__.py", line 7, in <module>
    from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
  File "/home/s0h3ck/.virtualenvs/test/lib/python3.7/site-packages/face_recognition/api.py", line 4, in <module>
    import dlib
ImportError: /home/s0h3ck/.virtualenvs/test/lib/python3.7/site-packages/dlib.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cblas_dtrsm

What I Did

workon test (or mkvirtualenv test before)
pip install face_recognition

dlib (19.16.0) md5sum : 96ff1db547ab5d289d049e58f823ae46

Temporary solution

Install dlib version 19.15.0

pip install dlib=19.15.0

dlib (19.15.0) md5sum : e0ea6c4c6e7c1f445a11fae2733cb9b6

Additional comments

A word about Archlinux, if you do yay -S python-face_recognition, it will work, but it won’t be in a virtualenv. Please do not close this issue if we can’t do pip install face_recognition normally to his latest version. Thanks.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:14
  • Comments:6

github_iconTop GitHub Comments

16reactions
ShadowProgrcommented, Mar 29, 2019

I encountered the same problem on antergos with dlib 19.17.0. The solution for me was installing cblas via pacman

1reaction
DDuskycommented, Jul 31, 2021

pip install dlib==19.15.0 work

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: dlib v19.16.0 is missing cblas_dtrsm symbol
Coming soon: A brand new website interface for an even better experience!
Read more >
import dlib ImportError Symbol not found: _PyClass_Type
My hack solution was to go into /usr/local/opt/boost-python/lib/ and swap all of the files around, so that the Python3 files replaced the ...
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