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.

AM437X: Qt Creator debug error



Hello.

I'm using Processor SDK 4.1.0.6. The qtcreator at debugging writes:

> & "python from gdbbridge import * \ n"
> & "Traceback (most recent recent call last): \ n"
> & "File \" <string> \ ", line 1, in <module> \ n"
> & "File \" / home / sashca / qtcreator / share / qtcreator / debugger / gdbbridge.py \ ", line 36, in <module> \ n"
> & "import tempfile \ n"
> & "File \" / home / sashca / sdk-4 / linux-devkit / sysroots / x86_64-arago-linux / usr / lib / python3.5 / tempfile.py \ ", line 43, in <module> \ n "
> & "import shutil as _shutil \ n"
> & "ImportError: No module named 'shutil' \ n"
> & "Error while executing Python code. \ N"
> 11 ^ error, msg = "Error while executing Python code."

  • What processor is this? Please fill the required Device and Software fields when opening a new thread, otherwise your request may not be processed.
  • Hello Алексан&,

    You are missing 'shutil' module. Please, read the error log carefully.

    Best regards,
    Kemal
  • Yes, it is not in the / home / sashca / sdk-4 / linux-devkit / sysroots / x86_64-arago-linux / usr / lib / python3.5 directory. But this is the official SDK
  • You can import the 'shutil' module to the official Processor SDK by this way:

    $ 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=am437x-evm bitbake python3-native

    $ cp -r <tisdk>/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/python3-native/3.5.2-r1.0/image/<tisdk-build-path>/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/ <Processor SDK>/linux-devkit/sysroots/x86_64-arago-linux/usr/