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
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
Whole console output (https://pastebin.com/embed_js/dDsanuiF)
OpenPose version: Latest GitHub code
General configuration:
Non-default settings:
3rd-party software:
If CPU-only mode issue:
If Python API:
This seems like an issue with Conda or how your dependencies are setup
I would advise you to try solutions from:
This seems like an issue with Conda or how your dependencies are setup
I would advise you to try solutions from:
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.
Most helpful comment
After running
brew configandbrew doctor, found out the problem was due to thatgccis not linked. Runningsudo chown -R $(whoami) /usr/local/lib/gccand thenbrew link gccsolved the problem.