JustinhoCHN opened a new issue #17923: can not install mxnet on jetson nano, jetpack 4.3, mxnet 1.4 URL: https://github.com/apache/incubator-mxnet/issues/17923 ## Description Try to install mxnet on jetson nano, according to mxnet [jetson_setup guide](http://mxnet.incubator.apache.org/get_started/jetson_setup), during installation, no error raised, but when I import mxnet in python3, "Segmentation fault (core dumped)" ### Error Message ``` root@jetbot:/home/jetbot/Downloads# python3 Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import mxnet Segmentation fault (core dumped) ``` ## To Reproduce My installation procedure: 1. install dependencies: ``` sudo apt update sudo apt -y install \ build-essential \ git \ graphviz \ libatlas-base-dev \ libopencv-dev \ python-pip sudo pip3 install --upgrade \ pip \ setuptools sudo pip3 install \ graphviz==0.8.4 \ jupyter \ numpy==1.18.2 ``` a little different form official guide, which I use pip3 because I need to use python3, and the numpy version is 1.18.2 rather than 1.15.2 because the later pip install suggested to do so. 2. clone the repo ``` git clone --recursive https://github.com/apache/incubator-mxnet.git mxnet ``` 3. environment ``` export PATH=/usr/local/cuda/bin:$PATH export MXNET_HOME=$HOME/mxnet/ export PYTHONPATH=$MXNET_HOME/python:$PYTHONPATH ``` 4. check cuda version ``` nvcc --version ``` we can get: ``` Copyright (c) 2005-2019 NVIDIA Corporation Built on Mon_Mar_11_22:13:24_CDT_2019 Cuda compilation tools, release 10.0, V10.0.326 ``` 5. download the whl file and libmxnet.so ``` wget -c https://s3.us-east-2.amazonaws.com/mxnet-public/install/jetson/1.4.0/mxnet-1.4.0-cp36-cp36m-linux_aarch64.whl # I'm using python3.6 wget -c https://s3.us-east-2.amazonaws.com/mxnet-public/install/jetson/1.4.1/libmxnet.so mkdir mxnet/lib mv libmxnet.so mxnet/lib # put this file in lib ``` 6. install the whl ``` sudo pip install mxnet-1.4.0-cp27-cp27mu-linux_aarch64.whl ``` 7. try to import ``` root@jetbot:/home/jetbot/Downloads# python3 Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import mxnet Segmentation fault (core dumped) ``` ## What have you tried to solve it? 1. try build from source, it took me 2 hours and exited with error (sorry I forget to log the error info) 2. reinstall the os, reflash the image, and try the jetson_setup guide again. ## Environment We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below: ``` curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python ``` outputs here ``` ----------Python Info---------- Version : 3.6.9 Compiler : GCC 8.3.0 Build : ('default', 'Nov 7 2019 10:44:02') Arch : ('64bit', 'ELF') ------------Pip Info----------- Version : 20.0.2 Directory : /usr/local/lib/python3.6/dist-packages/pip ----------MXNet Info----------- Hashtag not found. Not installed from pre-built package. ----------System Info---------- Platform : Linux-4.9.140-tegra-aarch64-with-Ubuntu-18.04-bionic system : Linux node : jetbot release : 4.9.140-tegra version : #1 SMP PREEMPT Mon Dec 9 22:47:42 PST 2019 ----------Hardware Info---------- machine : aarch64 processor : aarch64 Architecture: aarch64 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: 1 Model name: Cortex-A57 Stepping: r1p1 CPU max MHz: 1479.0000 CPU min MHz: 102.0000 BogoMIPS: 38.40 L1d cache: 32K L1i cache: 48K L2 cache: 2048K Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0066 sec, LOAD: 1.6708 sec. Timing for GluonNLP GitHub: https://github.com/dmlc/gluon-nlp, DNS: 0.0013 sec, LOAD: 1.3129 sec. Timing for GluonNLP: http://gluon-nlp.mxnet.io, DNS: 0.0048 sec, LOAD: 0.5813 sec. Timing for D2L: http://d2l.ai, DNS: 0.0032 sec, LOAD: 0.3769 sec. Timing for D2L (zh-cn): http://zh.d2l.ai, DNS: 0.0027 sec, LOAD: 0.2090 sec. Timing for FashionMNIST: https://repo.mxnet.io/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0038 sec, LOAD: 0.3148 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0026 sec, LOAD: 4.6375 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0038 sec, LOAD: 3.1302 sec. ``` ### Another info: - image version: jetpack 4.3 - cuda: 10.0 - python: 3.6
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services