Facing error building pymodbus:
Initialising tasks: 100% |#######################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pymodbus-2.5+gitAUTOINC+731b080df0-r0 do_compile: python setup.py build execution failed.
ERROR: pymodbus-2.5+gitAUTOINC+731b080df0-r0 do_compile: Function failed: do_compile (log file is located at /home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/temp/log.do_compile.15160)
ERROR: Logfile of failure stored in: /home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/temp/log.do_compile.15160
Log data follows:
| DEBUG: Executing shell function do_compile
| Traceback (most recent call last):
| File “setup.py”, line 28, in
| from pymodbus.utilities import IS_PYTHON3
| File “/home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/git/pymodbus/utilities.py”, line 8, in
| from pymodbus.compat import int2byte, byte2int, IS_PYTHON3
| File “/home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/git/pymodbus/compat.py”, line 15, in
| import six
| ImportError: No module named six
| ERROR: python setup.py build execution failed.
| WARNING: /home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/temp/run.do_compile.15160:1 exit 1 from ‘exit 1’
| ERROR: Function failed: do_compile (log file is located at /home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/pymodbus/2.5+gitAUTOINC+731b080df0-r0/temp/log.do_compile.15160)
ERROR: Task (/home/pankaj/Documents/wp76xx-linuxsrc-rel13.1/yocto/meta-openembedded/meta-python/recipes-devtools/python/pymodbus_2.5.2.bb:do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 655 tasks of which 654 didn’t need to be rerun and 1 failed.
Python six is already installed in the image though local.conf
IMAGE_INSTALL_append_pn-mdm9x28-image-minimal = " python-six python-paho-mqtt"
pymodbus recipe is created using the recipetool in Bitbake command:
recipetool -d create -o yocto/meta-openembedded/meta-python/recipes-devtools/python/pymodbus_2.5.2.bb GitHub - riptideio/pymodbus: A full modbus protocol written in python
Attached is the recipe which is giving error .
looking for any modifications required to build the recipe
pymodbus_2.5.2.bb (4.1 KB)