- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am starting a new thread for this, because I was able to collect additional information and pinpoint the error to a specific line of code in the bash script.
After installing Raspbian Stretch on a Raspberry Pi 3B, I clone the NCSDK repository and run make install
.
It does not matter if I run it normally or using
sudo
, I always get the same error: Error in line 170.
By stopping script execution and adding some debug echoes, I was able to verify that indeed the following line of code is responsible for the error:
PREV_INSTALL_INFO='$SUDO_PREFIX find /opt /home -name $INSTALL_INFO_FILENAME -print 2> /dev/null'
Running something like
sudo find /opt /home -name .ncsdk_install.info -print 2> /dev/null
in the console does not generate any kind of error.
Deleting this line and the following if-fi statement before continuing execution will make the script run normally until it is finished, so in my eyes this is an actual bug, but I wouldn't know where to add a bug report.
I'm looking forward to any kind of help.
Note: Please keep in mind I only have little experience with Linux.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MarkusA380
OK, Let's calm down and step by step.
I think that if you are logged in as "pi" for general users it will work.
I installed it over 5 times and I never failed, so I think it's not a NCSDK's bug.
Execute the following command at the terminal.
What is displayed on ???
$ whoami
??? <--- What is displayed?
$ echo $EUID
??? <--- What is displayed?
And, Execute the following command at the terminal.
What is displayed on ???
$ sudo -V
Point is an if statement of "/opt/movidius/NCSDK/install-ncsdk.sh" line 117.
The "if" statement should be TRUE.
When it is 「$EUID = 0」<--- Already super user
other than that 「$EUID != 0」 <--- General user or Other
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does this tell me?
By the way, it's line 170, not 117.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MarkusA380
Thank you for your reply.
By the way, it's line 170, not 117.
Yes, I know.
The 170th line is a script that expects "SUDO_PREFIX =" sudo "" in line 118 to be stored.
PREV_INSTALL_INFO=`$SUDO_PREFIX find /opt /home -name $INSTALL_INFO_FILENAME -print 2> /dev/null`
$INSTALL_INFO_FILENAME /opt/movidius/.ncsdk_install.info
ncsdk_path=/opt/movidius
ncs_lib_path=/usr/local/lib
ncs_inc_path=/usr/local/include
ncs_bin_path=/usr/local/bin
I checked whether the parameters were assigned properly or not.
Umm…It seems there is no problem.
I'm sorry.
A good idea does not come out soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I hope someone will find a fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PINTO, @Tome_at_Intel , because I use this Raspberry for nothing else, I could offer a RDP connection so one of you or someone else could see the problem live and do some research on why it happens. I would reset the device to a fresh install and exactly to the point where the error occurs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MarkusA380
Can I check only one at the last if allowed.
Could you tell us the result of the command below?
$ echo $LANG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PINTO Of course, today I fubar'd my Raspbian-installation (partially on purpose), so it will take about one more day until I have reset the installation and test it. At that point I can provide ip and login credentials for XRDP, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm just getting started. I've cloned the latest and end up with the same message on Ubuntu 16.04.
Quite annoying right out of the gate with this:
--2018-03-13 15:57:36-- http://ncs-forum-uploads.s3.amazonaws.com/ncsdk/ncsdk_01_12/NCSDK-1.12.00.01.tar.gz
Resolving ncs-forum-uploads.s3.amazonaws.com (ncs-forum-uploads.s3.amazonaws.com)… 52.219.24.2
Connecting to ncs-forum-uploads.s3.amazonaws.com (ncs-forum-uploads.s3.amazonaws.com)|52.219.24.2|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 975174 (952K) [application/octet-stream]
Saving to: ‘NCSDK-1.12.tar.gz’
NCSDK-1.12.tar.gz 100%[===================>] 952.32K 539KB/s in 1.8s
2018-03-13 15:57:38 (539 KB/s) - ‘NCSDK-1.12.tar.gz’ saved [975174/975174]
NCSDK-1.12.00.01/
NCSDK-1.12.00.01/ncsdk-x86_64/
NCSDK-1.12.00.01/ncsdk-x86_64/udev/
NCSDK-1.12.00.01/ncsdk-x86_64/udev/97-usbboot.rules
NCSDK-1.12.00.01/ncsdk-x86_64/api/
NCSDK-1.12.00.01/ncsdk-x86_64/api/c/
NCSDK-1.12.00.01/ncsdk-x86_64/api/c/mvnc.h
NCSDK-1.12.00.01/ncsdk-x86_64/api/c/libmvnc.so.0
NCSDK-1.12.00.01/ncsdk-x86_64/api/c/mvnc_deprecated.h
NCSDK-1.12.00.01/ncsdk-x86_64/api/setup.py
NCSDK-1.12.00.01/ncsdk-x86_64/api/python/
NCSDK-1.12.00.01/ncsdk-x86_64/api/python/mvnc/
NCSDK-1.12.00.01/ncsdk-x86_64/api/python/mvnc/mvncapi.py
NCSDK-1.12.00.01/ncsdk-x86_64/api/python/mvnc/init.py
NCSDK-1.12.00.01/ncsdk-x86_64/LICENSE
NCSDK-1.12.00.01/ncsdk-x86_64/tk/
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/FileIO.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/TensorFlowPreproc.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/CaffeParser.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/DataTransforms.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/Args.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/Metrics.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/TensorFlowParser.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/EnumController.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/MiscIO.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Controllers/CaffeEnumController.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/Blob.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/MyriadParam.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/CaffeEnumDeclarations.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/EnumDeclarations.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/Network.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Models/NetworkStage.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/mvNCCompile.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/mvNCProfile.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Views/
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Views/Validate.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Views/Graphs.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/Views/Summary.py
NCSDK-1.12.00.01/ncsdk-x86_64/tk/mvNCCheck.py
NCSDK-1.12.00.01/ncsdk-x86_64/MovidiusLogo.png
NCSDK-1.12.00.01/ncsdk-x86_64/fw/
NCSDK-1.12.00.01/ncsdk-x86_64/fw/MvNCAPI.mvcmd
NCSDK-1.12.00.01/requirements.txt
NCSDK-1.12.00.01/install-ncsdk.sh
NCSDK-1.12.00.01/uninstall-ncsdk.sh
NCSDK-1.12.00.01/ncsdk-armv7l/
NCSDK-1.12.00.01/ncsdk-armv7l/udev/
NCSDK-1.12.00.01/ncsdk-armv7l/udev/97-usbboot.rules
NCSDK-1.12.00.01/ncsdk-armv7l/api/
NCSDK-1.12.00.01/ncsdk-armv7l/api/c/
NCSDK-1.12.00.01/ncsdk-armv7l/api/c/mvnc.h
NCSDK-1.12.00.01/ncsdk-armv7l/api/c/libmvnc.so.0
NCSDK-1.12.00.01/ncsdk-armv7l/api/c/mvnc_deprecated.h
NCSDK-1.12.00.01/ncsdk-armv7l/api/setup.py
NCSDK-1.12.00.01/ncsdk-armv7l/api/python/
NCSDK-1.12.00.01/ncsdk-armv7l/api/python/mvnc/
NCSDK-1.12.00.01/ncsdk-armv7l/api/python/mvnc/mvncapi.py
NCSDK-1.12.00.01/ncsdk-armv7l/api/python/mvnc/init.py
NCSDK-1.12.00.01/ncsdk-armv7l/LICENSE
NCSDK-1.12.00.01/ncsdk-armv7l/tk/
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/FileIO.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/TensorFlowPreproc.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/CaffeParser.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/DataTransforms.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/Args.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/Metrics.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/TensorFlowParser.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/EnumController.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/MiscIO.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Controllers/CaffeEnumController.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/Blob.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/MyriadParam.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/CaffeEnumDeclarations.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/EnumDeclarations.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/Network.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Models/NetworkStage.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/mvNCCompile.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/mvNCProfile.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Views/
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Views/Validate.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Views/Graphs.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/Views/Summary.py
NCSDK-1.12.00.01/ncsdk-armv7l/tk/mvNCCheck.py
NCSDK-1.12.00.01/ncsdk-armv7l/MovidiusLogo.png
NCSDK-1.12.00.01/ncsdk-armv7l/fw/
NCSDK-1.12.00.01/ncsdk-armv7l/fw/MvNCAPI.mvcmd
NCSDK-1.12.00.01/version.txt
NCSDK-1.12.00.01/tests/
NCSDK-1.12.00.01/tests/Makefile
NCSDK-1.12.00.01/tests/api-check/
NCSDK-1.12.00.01/tests/api-check/Makefile
NCSDK-1.12.00.01/tests/api-check/ncs-python2-check.py
NCSDK-1.12.00.01/tests/api-check/ncs-python3-check.py
NCSDK-1.12.00.01/tests/api-check/ncs-c-check.c
NCSDK-1.12.00.01/tests/sdk-check/
NCSDK-1.12.00.01/tests/sdk-check/Makefile
NCSDK-1.12.00.01/tests/sdk-check/img/
NCSDK-1.12.00.01/tests/sdk-check/img/512_Phone.jpg
NCSDK-1.12.00.01/tests/sdk-check/data/
NCSDK-1.12.00.01/tests/sdk-check/data/alexnet.prototxt
NCSDK-1.12.00.01/tests/sdk-check/data/googlenet.prototxt
NCSDK-1.12.00.01/tests/sdk-check/data/readme.txt
NCSDK-1.12.00.01/tests/sdk-check/data/squeezenet.prototxt
NCSDK-1.12.00.01/tests/sdk-check/test_install.py
NCSDK-1.12.00.01/ncsdk.conf
NCSDK-1.12.00.01/requirements_apt.txt
Movidius Neural Compute Toolkit Setup.
Checking OS and version…
Installing on Ubuntu 16.04
Installer NCSDK version: 1.12.00.01
Installation failed. Error on line 170
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The NCSDK git repo 'make install' pulls down a file to /opt/movidius and runs an installer there. I dug into the installer found at /opt/movidius/NCSDK/install-ncsdk.sh
Line 170 dealt with previous installs of the SDK which I didn't have, so I forged ahead with commenting this chunk out.
It at least got through the installation process. I haven't tried examples yet to prove it worked.
#PREV_INSTALL_INFO=`$SUDO_PREFIX find /opt /home -name $INSTALL_INFO_FILENAME -print 2> /dev/null`
#if [[ ! -z $PREV_INSTALL_INFO ]]; then
# PREV_OWNER=$(ls -l $PREV_INSTALL_INFO | awk '{print $3}')
# if [ $PREV_OWNER != $USER ]; then
# echo "Previous installation not owned by current user, continue at your own risk"
# fi
# PREV_INSTALL_DIR=${PREV_INSTALL_INFO%/*}
# PREV_NCSDK_VER=`cat $PREV_INSTALL_DIR/version.txt`
# echo "NCSDK version $PREV_NCSDK_VER previously installed at $PREV_INSTALL_DIR"
# compare_versions $PREV_NCSDK_VER $INSTALLER_NCSDK_VER
# #TODO: remove older version, or update as necessary
# if [[ $VERCOMP_RETVAL == 0 ]]; then
# echo "Previously installed version is the same as installer version, overwriting..."
# elif [[ $VERCOMP_RETVAL == 1 ]]; then
# echo "Previously installed version is older than installer version, upgrading..."
# else
# echo "Previously installed version is more recent than installer version, downgrading..."
# fi
#fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got exactly the same error when installing on RPI3B+
pi@raspberrypi:~ $ whoami
pi
pi@raspberrypi:~ $ echo $EUID
1000
pi@raspberrypi:~ $ sudo -V
Sudo version 1.8.19p1
Sudoers policy plugin version 1.8.19p1
Sudoers file grammar version 45
Sudoers I/O plugin version 1.8.19p1
pi@raspberrypi:~ $ echo $LANG
en_HK.UTF-8
Can anyone help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @xou822
You might have other _unsuccessful_ installations of the NCSDK on the Pi - is this the first time you've attempted to install the NCSDK?
Best Regards,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also encountered this problem while installing NCSDK.
If you execute the line as it is written, 2> /dev/null/ will suppress any errors that arise (by sending them to /dev/null). Try executing the line of code responsible for the error (i.e. line 170 in /opt/movidius/NCSDK/install-ncsdk.sh
) but without redirecting stderr to /dev/null.
sudo find /opt /home -name .ncsdk_install.info -print
Examine any errors which arise from executing this command and resolve them.
In my case it was a corrupted directory path in /home
which was causing the find
command to give an "Input/output error". I rebooted (which somehow fixed the corrupted path) and removed the directory which was causing the issue (although I might not have needed to, I didn't think to test it). Then I executed sudo make install
again in the ncsdk directory cloned from GitHub and install was successful.
Hope this helps
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page