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.
6403 Discussions

Failed to install ncsdk on Raspberry Pi 3B with Raspbian Stretch

idata
Employee
1,615 Views

My Raspberry Pi

$ uname -r 4.14.70-v7+ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch $ python --version Python 3.5.3

 

 

I tried to install ncsdk but got the following ERROR messages:

 

After this operation, 0 B of additional disk space will be used. Setting up python-gobject-2 (2.28.6-13) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package python-gobject-2 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up python-cairo (1.8.8-2.2) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package python-cairo (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python-gobject: python-gobject depends on python-gobject-2; however: Package python-gobject-2 is not configured yet. dpkg: error processing package python-gobject (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-gtk2: python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however: Package python-cairo is not configured yet. python-gtk2 depends on python-gobject-2 (>= 2.21.3); however: Package python-gobject-2 is not configured yet. dpkg: error processing package python-gtk2 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of lxkeymap: lxkeymap depends on python-gtk2; however: Package python-gtk2 is not configured yet. dpkg: error processing package lxkeymap (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-xklavier: python-xklavier depends on python-gobject; however: Package python-gobject is not configured yet. dpkg: error processing package python-xklavier (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.24-11+deb9u3) ... Errors were encountered while processing: python-gobject-2 python-cairo python-gobject python-gtk2 lxkeymap python-xklavier E: Sub-process /usr/bin/dpkg returned an error code (1) Installation failed: Command ' apt-get install -y unzip coreutils curl git python3 libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev git python3-dev python3-numpy automake cmake make byacc lsb-release python3-scipy libgflags-dev libgoogle-glog-dev liblmdb-dev swig3.0 graphviz libxslt-dev libxml2-dev gfortran python3-yaml python3-nose python-numpy python3-tk python3-pip python-pip tar wget libgraphviz-dev' return code=100. Error on line 308 in ./install-utilities.sh. Will exit

 

Any suggestions please?

CheersPei

0 Kudos
7 Replies
idata
Employee
1,278 Views

@jiapei100, can you try running sudo apt update prior to running make install?

0 Kudos
idata
Employee
1,278 Views

@AshwinVijayakumar

 

I tried already….

 

$ sudo apt update Hit:1 http://deb.nodesource.com/node_9.x stretch InRelease Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB] Hit:3 http://archive.raspberrypi.org/debian stretch InRelease Fetched 15.0 kB in 6h 54min 48s (0 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
0 Kudos
idata
Employee
1,278 Views

@jiapei100

 

Please try below.

 

$ sudo apt update $ sudo apt upgrade $ sudo apt install python-configparser $ echo $PATH $ echo $PYTHONPATH $ echo $LD_LIBRARY_PATH $ python -V
0 Kudos
idata
Employee
1,278 Views
$ sudo apt install python-configparser Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python-configparser 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 6 not fully installed or removed. Need to get 62.1 kB of archives. After this operation, 410 kB of additional disk space will be used. Get:1 http://raspbian.mirror.colo-serv.net/raspbian stretch/main armhf python-configparser all 3.3.0r2-2 [62.1 kB] Fetched 62.1 kB in 10s (5,821 B/s) Selecting previously unselected package python-configparser. (Reading database ... 166673 files and directories currently installed.) Preparing to unpack .../python-configparser_3.3.0r2-2_all.deb ... Unpacking python-configparser (3.3.0r2-2) ... Setting up python-gobject-2 (2.28.6-13) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in <module> from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package python-gobject-2 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up python-configparser (3.3.0r2-2) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in <module> from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package python-configparser (--configure): subprocess installed post-installation script returned error exit status 1 Setting up python-cairo (1.8.8-2.2) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in <module> from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package python-cairo (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python-gobject: python-gobject depends on python-gobject-2; however: Package python-gobject-2 is not configured yet. dpkg: error processing package python-gobject (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-gtk2: python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however: Package python-cairo is not configured yet. python-gtk2 depends on python-gobject-2 (>= 2.21.3); however: Package python-gobject-2 is not configured yet. dpkg: error processing package python-gtk2 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of lxkeymap: lxkeymap depends on python-gtk2; however: Package python-gtk2 is not configured yet. dpkg: error processing package lxkeymap (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-xklavier: python-xklavier depends on python-gobject; however: Package python-gobject is not configured yet. dpkg: error processing package python-xklavier (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.24-11+deb9u3) ... Errors were encountered while processing: python-gobject-2 python-configparser python-cairo python-gobject python-gtk2 lxkeymap python-xklavier ^[[A^[[A^[[A^[[A^[[AE: Sub-process /usr/bin/dpkg returned an error code (1)
0 Kudos
idata
Employee
1,278 Views

@jiapei100

 

$ sudo cat /etc/apt/sources.list
0 Kudos
idata
Employee
1,278 Views

@jiapei100

 

https://stackoverflow.com/questions/14087598/python-3-importerror-no-module-named-configparser

 

It will not work if the python command is redirected to python3.

 

$ alias python=python2

 

$ python -V
0 Kudos
idata
Employee
1,278 Views
$ sudo cat /etc/apt/sources.list deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
0 Kudos
Reply