Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

cannot install SDK/API on RasPi 3

idata
Employee
1,445 Views

I'm at my wit's end, how does one install this API on a RasPi? I have also tried the API-only installation: https://movidius.github.io/blog/ncs-apps-on-rpi/

 

How is it even possible that the make file is so… wrong? What's the secret?

 

pi@movidius-pi:~/may7 $ git clone -b ncsdk2 https://github.com/movidius/ncsdk.git Cloning into 'ncsdk'... remote: Counting objects: 734, done. remote: Compressing objects: 100% (141/141), done. remote: Total 734 (delta 133), reused 235 (delta 120), pack-reused 463 Receiving objects: 100% (734/734), 129.64 MiB | 3.71 MiB/s, done. Resolving deltas: 100% (342/342), done. pi@movidius-pi:~/may7 $ cd ncsdk/ pi@movidius-pi:~/may7/ncsdk $ make install ./uninstall-opencv.sh ./uninstall-opencv.sh: line 10: /usr/bin/dirname: cannot execute binary file: Exec format error ./uninstall-opencv.sh: line 10: /install-utilities.sh: No such file or directory OpenCV uninstall starting ./uninstall-opencv.sh: line 19: set_error_handling: command not found ./uninstall-opencv.sh: line 21: initialize_constants: command not found ./uninstall-opencv.sh: line 23: read_ncsdk_config: command not found ./uninstall-opencv.sh: line 25: ask_sudo_permissions: command not found ************************ Please confirm ******************************* As of NCSDK 1.11, installation requires that previous installations of openCV be uninstalled before proceeding with NCSDK installation. Note that if you installed opencv via pip3 or from source into the home directory, it will be uninstalled. Continue uninstalling OpenCV (y/n) ? y ./uninstall-opencv.sh: line 72: check_and_remove_pip_pkg: command not found ./uninstall-opencv.sh: line 73: check_and_remove_pip_pkg: command not found Looking for opencv source installation opencv-3.3.0 directory exists opencv-3.3.0 Makefile exists, attempting to uninstall opencv-3.3.0 done. OpenCV uninstall finished make install starting. ./install.sh ./install.sh: line 16: /usr/bin/dirname: cannot execute binary file: Exec format error ./install.sh: line 16: /install-utilities.sh: No such file or directory Movidius Neural Compute Toolkit Installation ./install.sh: line 117: set_error_handling: command not found ./install.sh: line 120: initialize_constants: command not found Installer NCSDK version: 2.04.00.06 ./install.sh: line 133: read_ncsdk_config: command not found ./install.sh: line 136: ask_sudo_permissions: command not found ./install.sh: line 804: detect_and_move_ncsdk1: command not found ./install.sh: line 808: find_previous_install: command not found ./install.sh: line 230: [: 2.04.00.06: unary operator expected Previously installed version is more recent than installer version, downgrading... ./install.sh: line 810: remove_previous_install: command not found mkdir: missing operand Try 'mkdir --help' for more information. chown: cannot access '': No such file or directory Downloading NCSDK-2.04.00.06.tar.gz ./install.sh: line 191: exec_and_search_errors: command not found cp: cannot stat './NCSDK-2.04.00.06.tar.gz': No such file or directory tar (child): ./ncsdk.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now mv: cannot stat 'NCSDK-2.04.00.06*': No such file or directory ./install.sh: line 215: cd: /home/pi/NCSDK: No such file or directory ./install.sh: line 264: exec_and_search_errors: command not found cat: /NCSDK/requirements_apt.txt: No such file or directory ./install.sh: line 265: exec_and_search_errors: command not found ./install.sh: line 266: exec_and_search_errors: command not found ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied chown: changing ownership of '/NCSDK/setup-logs': Operation not permitted Saving installation log file in /NCSDK/setup-logs/setup_18-05-07-10-56.log tee: /NCSDK/setup-logs/setup_18-05-07-10-56.log: Permission denied Installing python dependencies cat: /NCSDK/requirements_apt_raspbian.txt: No such file or directory ./install.sh: line 355: exec_and_search_errors: command not found ./install.sh: line 356: exec_and_search_errors: command not found ./install.sh: line 357: exec_and_search_errors: command not found ./install.sh: line 358: exec_and_search_errors: command not found ./install.sh: line 360: exec_and_search_errors: command not found ./install.sh: line 361: exec_and_search_errors: command not found cp: cannot stat '/NCSDK/ncsdk-armv7l/fw/MvNCAPI-*.mvcmd': No such file or directory cp: cannot stat '/NCSDK/ncsdk-armv7l/api/c/mvnc.h': No such file or directory cp: cannot stat '/NCSDK/ncsdk-armv7l/api/c/libmvnc.so.0': No such file or directory cp: cannot stat '/NCSDK/ncsdk-armv7l/api/c/libmvnc_highclass.so.0': No such file or directory NCS Include files have been installed in /usr/local/include ./install.sh: line 686: check_and_remove_file: command not found ln: failed to create symbolic link '/usr/local/include/mvnc.h': File exists ./install.sh: line 689: check_and_remove_file: command not found ./install.sh: line 690: check_and_remove_file: command not found ./install.sh: line 691: check_and_remove_file: command not found ln: failed to create symbolic link '/usr/local/lib/libmvnc.so.0': Permission denied ln: failed to create symbolic link '/usr/local/lib/libmvnc.so': File exists ln: failed to create symbolic link '/usr/local/lib/libmvnc_highclass.so': File exists ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied cp: cannot stat '/NCSDK/version.txt': No such file or directory cp: cannot stat '/NCSDK/ncsdk-armv7l/LICENSE': No such file or directory ./install.sh: line 703: exec_and_search_errors: command not found ./install.sh: line 704: exec_and_search_errors: command not found NCS Python API has been installed in /home/pi, and PYTHONPATH environment variable updated NCS Libraries have been installed in /usr/local/lib ./install.sh: line 718: /home/pi/: Is a directory ./install.sh: line 719: /home/pi/: Is a directory ./install.sh: line 720: /home/pi/: Is a directory Updating udev rules... cp: cannot stat '/NCSDK/ncsdk-armv7l/udev/97-usbboot.rules': No such file or directory root privileges required Warning udevadm control --reload-rules reported an return code = 1 Adding user 'pi' to 'users' group usermod: Permission denied. usermod: cannot lock /etc/passwd; try again later. Installation is complete. Please provide feedback in our support forum if you encountered difficulties.
0 Kudos
1 Reply
idata
Employee
1,159 Views

@tyoungNIO Hi thanks for reporting this. Are you using Raspbian Stretch out of the box? It seems like you might be using a different shell or OS. Or maybe a corrupted version of the NCSDK. I recommend installing a fresh copy of Raspbian Stretch along with a fresh installation of the NCSDK on your Pi to rule out any underlying issues related to OS or a corrupted NCSDK.

 

If you need to put a fresh copy of Raspbian Stretch on your SD card and install the NCSDK, you can use the instructions at https://ncsforum.movidius.com/discussion/comment/1867/#Comment_1867.

0 Kudos
Reply