Added DEPENDS += "python3-pkgconfig python3 python3-pip" but still face the same error. I can see its recipe in meta-python. Also, in the work directory recipe-sysroot/usr/lib pkgconfig directory is there with multiple .pc files. I can also see pkgconfig in recipe-syysroot/usr/lib/python3.8/site-packages/pkgconfig. pkgconfig here has _pycache_ directory, __init__.py and pkgconfig.py Still setup.py is not able to find pkgconfig
On Thu, Mar 14, 2024 at 11:59 PM Tim Orling <ticot...@gmail.com> wrote: > > > On Thu, Mar 14, 2024 at 11:21 AM Ross Burton <ross.bur...@arm.com> wrote: > >> On 14 Mar 2024, at 14:40, ashujoshi35 via lists.yoctoproject.org >> <ashujoshi35=gmail....@lists.yoctoproject.org> wrote: >> > >> > Trying to install wirepas_gateway package from pypi. It fails with >> error no module named pkgconfig. Below is the error >> > >> > File "setup.py", line 17, in <module> >> > | import pkgconfig >> > | ModuleNotFoundError: No module named 'pkgconfig' >> > >> > SUMMARY = "Recipe to install Python PiP Package wirepas_gateway" >> > LICENSE = "Apache-2.0" >> > LIC_FILES_CHKSUM = "file://LICENSE;md5=cb6bb17b0d0cca188339074207e9f4d8" >> > inherit pypi setuptools3 >> > PYPI_PACKAGE = "wirepas_gateway" >> > SRC_URI[md5sum] = "941a4407513445c64f16b57a1474fc43" >> > >> > It is not able to locate pkgconfig. tried to export the path as found >> in one of the link using below, even that didn't worked out: >> > export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config" >> > >> > Any idea how to make pkgconfig available to the setup.py file >> > >> >> That’s python code trying to import pkgconfig, so you’ll need to DEPEND >> on python3-pkgconfig (there’s a recipe for that in meta-python). >> >> > `devtool add <url to the git repository or pypi tarball>` > should have caught the dependency and mentioned it. It only knows about > what has already been built, however. > > >> Ross >> >> >>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62765): https://lists.yoctoproject.org/g/yocto/message/62765 Mute This Topic: https://lists.yoctoproject.org/mt/104927594/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-