Openpose: OpenPose library could not be found: Symbol not found: ___addtf3 – osx

Created on 29 Jan 2019  Â·  4Comments  Â·  Source: CMU-Perceptual-Computing-Lab/openpose

Issue Summary

There exists pyopenpose.cpython-37m-darwin.so when listing ls ../../python/openpose, but still getting "OpenPose library could not be found. Did you enable BUILD_PYTHON in CMake and have this Python script in the right folder?" with error message
ImportError: dlopen(../../python/openpose/pyopenpose.cpython-37m-darwin.so, 2): Symbol not found: ___addtf3 when run python3 3_keypoints_from_images.py

Errors

Error: OpenPose library could not be found. Did you enableBUILD_PYTHONin CMake and have this Python script in the right folder? Traceback (most recent call last): File "3_keypoints_from_images.py", line 27, in <module> raise e File "3_keypoints_from_images.py", line 24, in <module> from openpose import pyopenpose as op File "../../python/openpose/__init__.py", line 1, in <module> from . import pyopenpose as pyopenpose ImportError: dlopen(../../python/openpose/pyopenpose.cpython-37m-darwin.so, 2): Symbol not found: ___addtf3 Referenced from: /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib Expected in: /usr/local/lib/libgcc_s.1.dylib in /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib

Type of Issue

  • Execution error

Your System Configuration

  1. Whole console output (https://pastebin.com/embed_js/dDsanuiF)

  2. OpenPose version: Latest GitHub code

  3. General configuration:

    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?
    • Operating system : osx
    • Release or Debug mode: release
    • Compiler : ``
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no):
    • Any other custom CMake configuration with respect to the default version? (by default: no):
  5. 3rd-party software:

    • Caffe version: 1.0.0
    • CMake version: 3.13.3
    • OpenCV version: 4.0.1
  6. If CPU-only mode issue:

    • CPU brand & model: 3.1 GHz Intel Core i7 16 GB 1867 MHz DDR3
    • Total RAM memory available: 16G
  7. If Python API:

    • Python version: 3.7
    • Numpy version: 1.16.0
Mac OS

Most helpful comment

After running brew config and brew doctor, found out the problem was due to that gcc is not linked. Running sudo chown -R $(whoami) /usr/local/lib/gcc and then brew link gcc solved the problem.

All 4 comments

This seems like an issue with Conda or how your dependencies are setup

I would advise you to try solutions from:

https://github.com/ntucllab/libact/issues/138

https://github.com/OSGeo/homebrew-osgeo4mac/issues/301

This seems like an issue with Conda or how your dependencies are setup

I would advise you to try solutions from:

ntucllab/libact#138

OSGeo/homebrew-osgeo4mac#301

This seems like an issue with Conda or how your dependencies are setup
I would advise you to try solutions from:
ntucllab/libact#138
OSGeo/homebrew-osgeo4mac#301

Thanks! I will try those!

After running brew config and brew doctor, found out the problem was due to that gcc is not linked. Running sudo chown -R $(whoami) /usr/local/lib/gcc and then brew link gcc solved the problem.

Was this page helpful?
0 / 5 - 0 ratings