diegobernardes opened a new issue #16379: Fail to run example code with Raspberry Pi URL: https://github.com/apache/incubator-mxnet/issues/16379 ## Description With a fresh Raspbian install on a Raspberry Pi 4 I'm not able to run [this](https://gluon-cv.mxnet.io/build/examples_detection/demo_yolo.html) example. Would be nice to have a pre compiled wheel for Raspberry that includes the OpenCV. I tried to build the MXNet from the source, but I'm having an error as well. ## Environment info ``` ----------Python Info---------- Version : 3.7.3 Compiler : GCC 8.2.0 Build : ('default', 'Apr 3 2019 05:39:12') Arch : ('32bit', 'ELF') ------------Pip Info----------- Version : 18.1 Directory : /usr/lib/python3/dist-packages/pip ----------MXNet Info----------- Version : 1.5.0 Directory : /home/pi/.local/lib/python3.7/site-packages/mxnet Commit hash file "/home/pi/.local/lib/python3.7/site-packages/mxnet/COMMIT_HASH" not found. Not installed from pre-built package or built from source. Library : ['/home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so'] Build features: No runtime build feature info available ----------System Info---------- Platform : Linux-4.19.57-v7l+-armv7l-with-debian-10.0 system : Linux node : raspberrypi release : 4.19.57-v7l+ version : #1244 SMP Thu Jul 4 18:48:07 BST 2019 ----------Hardware Info---------- machine : armv7l processor : Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 BogoMIPS: 270.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0327 sec, LOAD: 0.5603 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0068 sec, LOAD: 0.2168 sec. Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0319 sec, LOAD: 0.6907 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0062 sec, LOAD: 0.3093 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.1843 sec, LOAD: 0.5646 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0092 sec, LOAD: 0.1116 sec. ----------Environment---------- ``` ## Error Message: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pi/.local/lib/python3.7/site-packages/gluoncv/data/transforms/presets/yolo.py", line 99, in load_test imgs = [mx.image.imread(f) for f in filenames] File "/home/pi/.local/lib/python3.7/site-packages/gluoncv/data/transforms/presets/yolo.py", line 99, in <listcomp> imgs = [mx.image.imread(f) for f in filenames] File "/home/pi/.local/lib/python3.7/site-packages/mxnet/image/image.py", line 83, in imread return _internal._cvimread(filename, *args, **kwargs) File "<string>", line 35, in _cvimread File "/home/pi/.local/lib/python3.7/site-packages/mxnet/_ctypes/ndarray.py", line 92, in _imperative_invoke ctypes.byref(out_stypes))) File "/home/pi/.local/lib/python3.7/site-packages/mxnet/base.py", line 252, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [00:10:34] /work/mxnet/src/io/image_io.cc:249: Build with USE_OPENCV=1 for image io. Stack trace returned 8 entries: [bt] (0) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(dmlc::StackTrace()+0x34) [0xadf0aacc] [bt] (1) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x30) [0xadf0adb0] [bt] (2) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(mxnet::io::Imread(nnvm::NodeAttrs const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> > const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> >*)+0x3c) [0xae059d38] [bt] (3) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(mxnet::Imperative::Invoke(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&)+0x1b4) [0xae0389a0] [bt] (4) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(MXImperativeInvokeImpl(void*, int, void**, int*, void***, int, char const**, char const**)+0x3b4) [0xadf31314] [bt] (5) /home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so(MXImperativeInvokeEx+0x80) [0xadf32240] [bt] (6) /usr/lib/arm-linux-gnueabihf/libffi.so.6(ffi_call_VFP+0x54) [0xb64d8cc0] [bt] (7) /usr/lib/arm-linux-gnueabihf/libffi.so.6(ffi_call+0x154) [0xb64d96cc] ``` ## Minimum reproducible example I've followed [this](https://mxnet.apache.org/index.html) installation guide. <img width="811" alt="image" src="https://user-images.githubusercontent.com/14483/66261908-dcc94280-e7cd-11e9-8913-661ae7222d1d.png"> ## Steps to reproduce 1. Execute [this](https://gluon-cv.mxnet.io/build/examples_detection/demo_yolo.html) example. ## What have you tried to solve it? 1. Tried to build from source, but without success as well.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
