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:
Will try the suggestion but I think it should not make a difference as "IMAGE_INSTALL_append_pn-mdm9x28-image-minimal mentions the correct target to add the recipe.
Yes looking for Modbus master this one looks to be helpful the implementation seems to be based on Minimal Modbus which supports only RTU any suggestions for modbus TCP.
The download page of PyRTE looks not ready. If you’d need it now, please message me your email, with your FX30/WP model and firmware version, I’d be happy to arrange you the installers.
I searched for a long time and have no clue where this error could come from as even when I manually Image_install_append six, it still says that I cannot be found. I am not really used to building yocto images yet so I would be really grateful if you could help me understand what I missmade
@jyijyi I don’t have a bb file for PyModbus but I can try to give a fix. @yuser
Can you please try to add below line in you bb and give it a go?
DEPENDS += “python3-six-native”