This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Python package installation

Part Number: AM5728

Tool/software: Linux

Hello,

I am trying to bring-up AM5728 on Linux and run a bunch of python scripts but facing challenges and looking forward to your quick support. 

Basically, I have followed the procedure to create the Linux build setup on Ubuntu 16.04, created micro-sd etc.  

I needed python 3.6 (default was 2.7) and so installed manually. 

Installed pip by using the following command -

root@am57xx-evm:/opt # python3.6 -m ensurepip --default-pip 

root@am57xx-evm:/opt # pip3.6 --version
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)

 

But I could not able to install using pip3.6 and it's throwing connection error.   

root@am57xx-evm:/opt # pip3.6 install zmq
Collecting zmq
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5dbbc30>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/zmq/

Do I need to specify TI server details somewhere?

Could you please help?

I am looking forward to install the following packages -

root@am57xx-evm:/opt # cat requirements.txt
boto3==1.4.4
python-dotenv==0.6.4
zmq
pyyaml
appdirs==1.4.3
backports-abc==0.5
certifi==2017.4.17
matrix_io-proto==0.0.10
packaging==16.8
protobuf==3.3.0
pyparsing==2.2.0
pyzmq==16.0.2
singledispatch==3.4.0.3
six==1.10.0
tornado==4.5.1
pyserial
pypozyx==1.0.0
python-osc
numpy
opencv-python
matplotlib
lz4==0.10.1
pynput
requests
AWSIoTPythonSDK
multiprocess==0.70.5

Appreciate your quick response.

-Rj

  • Hello Rj,

    I have already explained the python module installation here.
    There are no TI provided package feeds for python modules installation.

    You will build the python-pyzmq module for example in this way:

    Do this in your host machine.
    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    $ sudo dpkg-reconfigure dash
    # Select "No" when prompted.

    $ wget https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm bitbake python-pyzmq

    Then transfer and install the needed ipks and their dependencies to your AM5728 board.

    This procedure is explained in this wiki page.

    Best regards,
    Kemal