Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stasm erro #41

Open
orangelewis opened this issue Jun 28, 2018 · 3 comments
Open

stasm erro #41

orangelewis opened this issue Jun 28, 2018 · 3 comments

Comments

@orangelewis
Copy link

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_5Size_IiEESB
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
Copy link
Owner

alyssaq commented Jul 1, 2018

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
Copy link
Author

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
Copy link
Owner

alyssaq commented Jul 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants