AnsweredAssumed Answered

MX6ULLEVK : "pip3 install spidev" error

Question asked by タイ チャン on Sep 10, 2019
Latest reply on Sep 11, 2019 by karan gajjar

Hello community
I get the following error when trying to install python spidev with pip command.

/**********************************/

root@imx6ull14x14evk:~# pip3 install spidev
Collecting spidev
Using cached https://files.pythonhosted.org/packages/fb/14/4c2e1640f0cb04862c76d9d76ed7c945b0f67876e503ac02f7f675fe86a0/spidev-3.4.tar.gz
Installing collected packages: spidev
Running setup.py install for spidev ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/var/volatile/tmp/pip-install-yjrykylr/spidev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /var/volatile/tmp/pip-record-ct140vcz/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'spidev' extension
creating build
creating build/temp.linux-armv7l-3.5
arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -DNDEBUG -fno-inline --sysroot=/home/hinoeng/yocto/fsl-release-bsp/buildull/tmp/sysroots/imx6ull14x14evk -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hinoeng/yocto/fsl-release-bsp/buildull/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/python3/3.5.1-r1.0=/usr/src/debug/python3/3.5.1-r1.0 -fdebug-prefix-map=/home/hinoeng/yocto/fsl-release-bsp/buildull/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hinoeng/yocto/fsl-release-bsp/buildull/tmp/sysroots/imx6ull14x14evk= -fPIC -I/usr/include/python3.5m -c spidev_module.c -o build/temp.linux-armv7l-3.5/spidev_module.o
unable to execute 'arm-poky-linux-gnueabi-gcc': No such file or directory
error: command 'arm-poky-linux-gnueabi-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/var/volatile/tmp/pip-install-yjrykylr/spidev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /var/volatile/tmp/pip-record-ct140vcz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/volatile/tmp/pip-install-yjrykylr/spidev/

/**********************************/
This is first time with python so I don't know how to fix this problem. Can someone help me?
Thank you

Outcomes