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

Some import errors #11

Open
flatsiedatsie opened this issue Mar 12, 2019 · 1 comment
Open

Some import errors #11

flatsiedatsie opened this issue Mar 12, 2019 · 1 comment

Comments

@flatsiedatsie
Copy link

flatsiedatsie commented Mar 12, 2019

(cv) pi@gateway:~/libfaceid $ python3 agegenderemotion_webcam.py --detector 4 --webcam 0 --resolution 0
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
  File "agegenderemotion_webcam.py", line 3, in <module>
    import cv2
  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/cv2/__init__.py", line 3, in <module>
    from .cv2 import *
**ImportError: numpy.core.multiarray failed to import**
(cv) pi@gateway:~/libfaceid $ pip3 install -U numpy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting numpy
Installing collected packages: numpy
  Found existing installation: numpy 1.15.4
    Uninstalling numpy-1.15.4:
      Successfully uninstalled numpy-1.15.4
Successfully installed numpy-1.16.2
(cv) pi@gateway:~/libfaceid $ python3 agegenderemotion_webcam.py --detector 4 --webcam 0 --resolution 0
Traceback (most recent call last):
  File "agegenderemotion_webcam.py", line 6, in <module>
    from libfaceid.encoder  import FaceEncoderModels, FaceEncoder
  File "/home/pi/libfaceid/libfaceid/encoder.py", line 8, in <module>
    from libfaceid.classifier import FaceClassifierModels, FaceClassifier
  File "/home/pi/libfaceid/libfaceid/classifier.py", line 2, in <module>
    from sklearn.svm import SVC
  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/sklearn/svm/__init__.py", line 13, in <module>
    from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \
  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/sklearn/svm/classes.py", line 4, in <module>
    from .base import _fit_liblinear, BaseSVC, BaseLibSVM
  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/sklearn/svm/base.py", line 8, in <module>
    from . import libsvm, liblinear
**ImportError: /home/pi/.virtualenvs/cv/lib/python3.5/site-packages/sklearn/svm/liblinear.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: cblas_dnrm2**
@richmondu
Copy link
Owner

Seems there is issue with your scikit-learn version.
Please install requirements.txt to get the correct versions.
pip install -r requirements.txt

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