alyssaq / face_morpher

:angel: Morph faces with Python, Numpy, Scipy
886 stars 233 forks source link

stasm erro #41

Open orangelewis opened 6 years ago

orangelewis commented 6 years ago

Hi Alyssa,

I am trying to use the averager but I get the following error (MacOS 10.13.5 with python3.6.3): Traceback (most recent call last): File "/Users/orangelewis/Spider/test.py", line 3, in import stasm File "/Users/orangelewis/djiangoTest/lib/python3.6/site-packages/stasm/init.py", line 3, in from _stasm import doc ImportError: dlopen(/Users/orangelewis/djiangoTest/lib/python3.6/site-packages/_stasm.cpython-36m-darwin.so, 2): Symbol not found: __ZN2cv17CascadeClassifier16detectMultiScaleERKNS_11_InputArrayERSt6vectorINS_5Rect_IiEESaIS6_EEdiiNS_5SizeIiEESB Referenced from: /Users/orangelewis/djiangoTest/lib/python3.6/site-packages/_stasm.cpython-36m-darwin.so Expected in: flat namespace in /Users/orangelewis/djiangoTest/lib/python3.6/site-packages/_stasm.cpython-36m-darwin.so Thank you!

alyssaq commented 6 years ago

What version of opencv are you running? import cv2; cv2.__version__ Perhaps its not picking up the opencv libs. Could you run: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

orangelewis commented 6 years ago

I am sorry that I am not reply immediately.The version is'3.4.1'. And it is also not work export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib But I have run it successfully in WIN10. Thank you!

alyssaq commented 6 years ago

Hmm I have the same environment as your Mac but cant reproduce the error. Glad it runs successfully on Windows!