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

docker on raspberry pi 3 ( - Cannot find device




I am trying to use movidius sdk and usb on an (docker) rpi3 container. I used the latest version of ncsdk2 on a resin/rpi-raspbian:stretch image which attempts to run Both failed for the same reason: "failed to find device"


Here is the Dockerfile:


FROM resin/raspberrypi3-debian:stretch


RUN apt-get update && apt-get install -yq \


unzip coreutils curl git python3 \


libprotobuf-dev libleveldb-dev \


libsnappy-dev libopencv-dev libhdf5-serial-dev \


protobuf-compiler libatlas-base-dev git \


python3-dev python-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 python3-numpy python3-tk \


python3-pip python-pip tar wget libgraphviz-dev \


python3-markdown python3-h5py python3-lxml python3-matplotlib \


python3-protobuf python3-dateutil python3-scipy python3-six \


libatlas-base-dev libqt4-test libjasper-dev libqtgui4 python3-pyqt5 gstreamer-1.0 libgtk-3-dev \


python3-networkx make wget python3-setuptools python-setuptools && \


apt-get clean && rm -rf /var/lib/apt/lists/*


COPY pip.conf /etc/pip.conf


RUN pip3 install -U Cython


RUN wget --no-check-certificate


RUN pip3 install graphviz scikit_image-0.9.3-cp35-cp35m-linux_armv7l.whl


RUN pip3 install --upgrade numpy==1.13.1


RUN pip3 install pygraphviz Enum34>=1.1.6 networkx>=2.1


Copy over ncsdk2


COPY . .


copy modified ncsdk.conf file


COPY ncsdk.conf ./ncsdk/ncsdk.conf


install ncsdk2


RUN cd ncsdk && make install


Run post ncsdk install pip installs


RUN pip3 install imutils picamera opencv-python opencv-contrib-python


WORKDIR /ncsdk/examples/apps/hello_ncs_py


CMD ["python3", ""]


and this is what I am getting following a successful built of the container image.


Successfully built 11b89652086f


Successfully tagged local-app:latest



  • Creating 'local-app' container

  • Starting 'local-app' container


Push completed successfully!



  • Streaming application logs..


    D: [ 0] ncDeviceCreate:307 ncDeviceCreate index 0


D: [ 0] ncDeviceCreate:307 ncDeviceCreate index 1


D: [ 0] ncDeviceOpen:501 File path /usr/local/lib/mvnc/MvNCAPI-ma2450.mvcmd


I: [ 0] ncDeviceOpen:507 ncDeviceOpen() XLinkBootRemote returned success 0


W: [ 0] ncDeviceOpen:533 failed to find device


Error - Could not open NCS device.


The container cannot find the movidius usb but running lsusb on the host gave me this


root@2d6ae06:~# lsusb


Bus 001 Device 057: ID 03e7:f63b Intel


Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter


Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Am I missing something on the container or host setup? I am suspecting that the custom udev rules at the end of the ncsdk install are failing.





0 Kudos
0 Replies