Hi ,
I have followed the doc to explore the SNPE SDK ,
While excuting the "python2.7 ./models/alexnet/scripts/setup_alexnet.py -a ./temp-assets-cache -d" to Download and convert a pre-trained Alexnet example in Caffe format. However it is giving the followig error:
Creating DLC
Traceback (most recent call last):
File "/home/tcs/caffe/snpe-sdk/snpe-1.22.0.212/bin/x86_64-linux-clanCreating DLC
Traceback (most recent call last):
File "/home/tcs/caffe/snpe-sdk/snpe-1.22.0.212/bin/x86_64-linux-clang/snpe-caffe-to-dlc", line 18, in <module>
from snpe import snpe_utils
File "/home/tcs/caffe/snpe-sdk/snpe-1.22.0.212/lib/python/snpe/__init__.py", line 11, in <module>
from . import libDlModelToolsPy3 as modeltools
ImportError: libpython3.4m.so.1.0: cannot open shared object file: No such file or directoryg/snpe-caffe-to-dlc", line 18, in <module>
from snpe import snpe_utils
File "/home/tcs/caffe/snpe-sdk/snpe-1.22.0.212/lib/python/snpe/__init__.py", line 11, in <module>
from . import libDlModelToolsPy3 as modeltools
ImportError: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory
I Request your help to resolve the issue.
Thanks,
Narendar.
I fixed it by installing Python 3.4. I think that the description with reference guide 2.7 is probably wrong
Hi bnarendar89,
It seems your python environment has issues. While your command is python2.7, the error message is related to python3.4. It's weird situation. How about installing python 3.4 and trying again with it?
Thanks,
Jihoon
HI ,
Thanks for your reply.
I have used the command as python3.4 or python3.7 , i am getting following error:
Traceback (most recent call last):
File "./models/alexnet/scripts/setup_alexnet.py", line 10, in <module>
import caffe
File "/home/tcs/caffe/build/install/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/tcs/caffe/build/install/python/caffe/pycaffe.py", line 11, in <module>
import numpy as np
ImportError: No module named 'numpy'
Thanks,
Narendar.
Hi Narendar,
The error is because of unavailability of “numpy” library.
You can install with the help of below mentioned commands,
For python2:
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python2 get-pip.py
$ sudo pip2 install numpy
For python3:.
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py
$ sudo pip3 install numpy