Forums - cannot find snpe-tensorflow-to-dlc

2 posts / 0 new
Last post
cannot find snpe-tensorflow-to-dlc
randy.gaul
Join Date: 7 Oct 19
Posts: 8
Posted: Mon, 2019-10-07 13:10

I'm using Ubuntu (WSL). I'm running through the inception tutorial. I'm using Python 3.6, and have done the setup step.

Quote:

sudo update-alternatives --config python

Once I run this next command (below) I get an odd error.

Quote:

sudo -E python $SNPE_ROOT/models/inception_v3/scripts/setup_inceptionv3.py -a ./inception_v3/ -d -r cpu

With the error message.

Quote:

ERROR: [Errno 2] No such file or directory: 'snpe-tensorflow-to-dlc': 'snpe-tensorflow-to-dlc'

However, I have already run the environment script. This is verified by echo $PATH. It shows "/mnt/c/work/snpe/snpe_sdk/bin/x86_64-linux-clang".

Furthermore, if I type in snpe-tensorflow-to-dlc to the command line directly, I get another weird error. This shows snpe-tensorflow-to-dlc is on the path, but seems to not work.

Quote:

Failed to find necessary package:
libpython3.4m.so.1.0: cannot open shared object file: No such file or directory
Please ensure that $SNPE_ROOT/lib/python is in your PYTHONPATH

If I check python path with echo $PYTHONPATH the SNPE root is clearly on the path, however I did not install python 3.4, so I don't have libpython3.4m.so.1.0.

However, if I install Python 3.4, then ONNX setup fails saying the Python version is too old.

So then what should we do?

  • Up0
  • Down0
randy.gaul
Join Date: 7 Oct 19
Posts: 8
Posted: Mon, 2019-10-14 16:42

Was able to install dependencies with:

sudo apt install python-numpy python-scipy python-sphinx python-matplotlib python-skimage python-yaml

Also needed to chown the downloaded SNPE SDK, and chmod the executables in the SDK.

  • 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.