Closed MickaelDelanoe closed 1 year ago
I don't know what Isar
is and I can't even find anything relevant. But from your recepie, it looks like some Buildroot/Yocto based system.
From the error message there is no way how to build python-pyserial
because you have no package which provides it.
So just add recipe for pyserial.
It can also be similar problem to #79 so you should try e.g. python3-pyserial
and update the overall dependency to python
-> python3
.
Hi,
this is the recipe I used for pyserial:
SUMMARY = "Python Serial Port Extension"
HOMEPAGE = "https://github.com/pyserial/pyserial"
AUTHOR = "Chris Liechti <cliechti@gmx.net>"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=520e45e59fc2cf94aa53850f46b86436"
SRC_URI = "https://files.pythonhosted.org/packages/1e/7d/ae3f0a63f41e4d2f6cb66a5b57197850f919f59e558159a4dd3a818f5082/pyserial-3.5.tar.gz"
SRC_URI[md5sum] = "1cf25a76da59b530dbfc2cf99392dc83"
SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb
S = "${WORKDIR}/pyserial-3.5"
RDEPENDS_${PN} = ""
inherit setuptools3
This worked for me. Is your minimalmodbus recipe working after using my pyserial recipe?
If it is bitbake based distro, package name depends on bb filename. So, if the filename is e.g. python3-serial_something.bb
then you should depend on python3-serial
and not python-pyserial
.
Thanks for your replies.
I don't know what Isar is and I can't even find anything relevant.
Well, firstable I built an image with Yocto, but to use my image on a new Hardware I have to move to Isar Project. I'm not an Isar
Expert, but basically, Isar
is like an overlay of Yocto to help the build/dev/...
isar - Integration System for Automated Root filesystem generation (https://github.com/ilbers/isar)
because you have no package which provides it
Yes, I was confused because in my previous image I do not add recipe for pyserial. But I understand now, it's because I used meta-openembedded
(who integrate pyserial) in my previous Yocto Project.
So yes, I will try to add pyserial recipe. Thanks @lemmi25 for your recipe.
Hi @lemmi25, For now, I can't tel you if my minimalmodbus recipe work with your pyserial recipe because after build I got a new error
2021-12-02 10:10:52 - INFO - /build$ /work/isar/bitbake/bin/bitbake -c build iot2050-image-aquassay
Loading cache: 100% |#####################################################################################################################################################################| Time: 0:00:00
Loaded 60 entries from dependency cache.
ERROR: ParseError at /repo/recipes-aquassay/python-pyserial/python-pyserial_3.0.1.bb:32: Could not inherit file classes/setuptools3.bbclass | ETA: --:--:--
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
So I added setuptools3.bbclass
, but I got a new error
Loaded 60 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################################################| Time: 0:00:00
Parsing of 60 .bb files complete (59 cached, 1 parsed). 60 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'python3-setuptools-native' (but /repo/recipes-aquassay/python-pyserial/python-pyserial_3.0.1.bb DEPENDS on or otherwise requires it)
ERROR: Required build target 'iot2050-image-aquassay' has no buildable providers.
Missing or unbuildable dependency chain was: ['iot2050-image-aquassay', 'python-pyserial', 'python3-setuptools-native']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
2021-12-02 08:19:58 - ERROR - Command returned non-zero exit status 1
aquassay@debian-plasma:~/meta-iot2050$
And I don't know how provide python3-setuptools-native
...
I tried : IMAGE_PREINSTALL += "python3-setuptools" but not better ...
There is a tool to generate Yocto recipes for Python packages that are available on Pypi. See https://github.com/NFJones/pipoe I have not tried it my self, but it seems useful,
Hi,
I am trying also to make yocto recipe. I have tried pipoe but it is not working. Did you find a solution?
Thanks,
Hi,
Unfortunately no. My project is in standby, I have no idea. Sorry to can't help you.
Good luck, -- Mickaël Delanoë Ingénieur d'études | Design Engineer T. +33 (0)5 87 03 80 59 E. @.*** A. 31 rue du Châtenet 87410 Le Palais-sur-Vienne
https://aquassay.com/partnership-nestle-waters-aquassay/?lang=en
Le jeu. 9 mars 2023 à 10:25, Panos @.***> a écrit :
Hi,
I am trying also to make yocto recipe. I have tried pipoe but it is not working. Did you find a solution?
Thanks,
— Reply to this email directly, view it on GitHub https://github.com/pyhys/minimalmodbus/issues/81#issuecomment-1461643756, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3BQ5KCTGN3I4PAE6FU6I3W3GOXXANCNFSM5JCF5WUA . You are receiving this because you authored the thread.Message ID: @.***>
The documentation on Yocto is now updated: https://minimalmodbus.readthedocs.io/en/stable/advancedusage.html#including-minimalmodbus-in-a-yocto-build
Hello,
I try to add minimalmodbus lib to my image with Isar Project.
So I do my recipe like follow
But when I build, I got the following error:
Do you have an idea why
python-pyserial
is a trouble ?Note that I my recipe is not in
ecipes-connectivity/minimalmodbus/
as write in documentation, I do not know if it can be a trouble ...Best Regards,