Forums - SNPE setup(unable to import caffe)

3 posts / 0 new
Last post
SNPE setup(unable to import caffe)
ashwin0
Join Date: 27 Jan 15
Posts: 1
Posted: Thu, 2017-11-02 23:01

Hi,

I'm unable to import caffe. I'm using ubuntu 14.04 and python2.7. I get the following error message while importing caffe.

>>> import caffe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/inforce-ashwin/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
  File "/home/inforce-ashwin/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libcaffe.so.1.0.0-rc4: cannot open shared object file: No such file or directory

I get the following when running check_python_depends.sh

inforce-ashwin@inforceashwin-desktop:~/snpe-1.6.0/bin$ ./check_python_depends.sh
Supported version of Python found: 2.7
Checking for python-numpy: install ok installed
WARNING: It appears the python module numpy is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
dpkg-query: no packages found matching python-sphinx
Checking for python-sphinx:
dpkg-query: no packages found matching python-scipy
Checking for python-scipy:
dpkg-query: no packages found matching python-matplotlib
Checking for python-matplotlib:
dpkg-query: no packages found matching python-skimage
Checking for python-skimage:
dpkg-query: no packages found matching python-protobuf
Checking for python-protobuf:
Checking for python-yaml: install ok installed
WARNING: It appears the python module pyyaml is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
 

And i'm unable to install these packages via pip.

Please help!

  • Up0
  • Down0
SRK Reddy
Join Date: 15 Apr 15
Posts: 3
Posted: Tue, 2018-03-13 09:06

Check caffe installation properly. Nothing to do with SNPE setup.

  • Up0
  • Down0
nmthinh0103
Join Date: 24 Sep 19
Posts: 1
Posted: Thu, 2019-09-26 19:09
(qualcomm) thinhnm@thinhnm-VirtualBox:~/Android/Sdk/sources/snpe-1.30.0.480/bin$ ./check_python_depends.sh
Supported version of Python found: 2.7
Checking for python-numpy:
dpkg-query: no packages found matching python-sphinx
Checking for python-sphinx:
dpkg-query: no packages found matching python-scipy
Checking for python-scipy:
dpkg-query: no packages found matching python-matplotlib
Checking for python-matplotlib:
dpkg-query: no packages found matching python-skimage
Checking for python-skimage:
dpkg-query: no packages found matching python-protobuf
Checking for python-protobuf:
dpkg-query: no packages found matching python-yaml
Checking for python-yaml:

Why? I installed numpy v1.8.1, sphinx v1.2.2, scipy v0.13.3, matplotlib v1.3.1, skimage 0.9.3, protobuf 2.5.0, pyyaml 3.10.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.