<div dir="ltr">I guess you could start by looking at <a href="http://configure.ac">configure.ac</a> in the failing component's source code and specifically which m4 macro it is using to find the python module, then look at the definition of that macro and what it does. Sadly, this kind of thing - working your way through large, unfamiliar code base to debug a build failure - is typical when working with Yocto, and is pretty much a required skill.<div><br></div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 May 2019 at 21:08, Serkan Türker <<a href="mailto:serkan.tuerker@gmail.com">serkan.tuerker@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Alexander,<div><br></div><div>thank you for the quick reply. Doing the ./configure part on the host machine for host (basically, compiling tizonia on Ubuntu) works fine, there it can find the soundcloud module. I just don't understand where autotools (during bitbake) is looking for the soundcloud module and what I have to do to make it work.</div><div><br></div><div>Cheers,</div><div>Serkan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 30, 2019 at 11:46 AM Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">This is really an autotools question, not a yocto question. Specifically, what happens at this point?<div><i>| checking python module: soundcloud... no</i><br></div><div><i><br></i></div><div>Quite likely, the autotools script runs native python and asks it to import soundcloud, which fails. You need a different approach, maybe checking for the module file in the target sysroot.</div><div><br></div><div>Also, do not use python 2.7. All upstream support for it ends in 6 months.</div><div><br></div><div>Alex</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 May 2019 at 04:37, Serkan Türker <<a href="mailto:serkan.tuerker@gmail.com" target="_blank">serkan.tuerker@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am trying to write a bitbake file for a project. The project uses autotools for configuring the project before building it.</div><div>While configuring it, it searches for several python modules, where some of them are custom modules I wrote the bitbake recipe for.</div><div>Even though the python module builds and installs correctly to the sysroot directory, it is not found in the configure step.</div><div><br></div><div>====================================================================</div><div><a href="http://python-soundcloud_0.5.0.bb" target="_blank">python-soundcloud_0.5.0.bb</a></div><div><i>-----------------------------------------------------------------------------------------------------------------------</i></div><div><i>LICENSE = "MIT"<br>LIC_FILES_CHKSUM = "file://LICENSE;md5=31fa3a9dc818e0087893d63583d2d21a"<br><br>SRC_URI[md5sum] = "40c1d32afd019ed11ec1fbee3e84e31f"<br>SRC_URI[sha256sum] = "aad2003592cec945f835f158f7b41ba8bf805c5738a2fcc5629668ea1df653d5"<br><br>DEPENDS_${PN} = "${PYTHON_PN}-modules"<br><br>PYPI_PACKAGE = "soundcloud"</i></div><div><i><br>inherit setuptools pypi<br><br>RDEPENDS_${PN} = "${PYTHON_PN}-modules"</i></div><div>-----------------------------------------------------------------------------------------------------------------------<br></div><div><div><br></div><div><b>python-soundcloud is succesfully installed to "BUILD/sysroots/raspberrypi3/usr/lib/python2.7/site-packages/soundcloud"</b></div><div><br></div><div>====================================================================<br></div><div><a href="http://tizonia.bb" target="_blank">tizonia.bb</a></div><div>-----------------------------------------------------------------------------------------------------------------------</div></div><div><i>SUMMARY = "Tizonia Library"<br>DESCRIPTION = "Tizonia"<br>LICENSE = "LGPL-3.0"<br>LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"<br><br>SRC_URI = "git://<a href="http://github.com/tizonia/tizonia-openmax-il.git;protocol=https" target="_blank">github.com/tizonia/tizonia-openmax-il.git;protocol=https</a>"<br>SRCREV = "9004bc40b89eeafb04b28fbb2b772e47dd62fdc9"<br><br>S = "${WORKDIR}/git"<br><br>DEPENDS = "mediainfo log4c python-pip python-soundcloud"</i></div><div><i><br>inherit autotools ccache pkgconfig pythonnative<br><br>RDEPENDS_${PN} = "libstdc++ mediainfo log4c python-soundcloud"<br><br>EXTRA_OECONF += "-C"</i><br></div><div>-----------------------------------------------------------------------------------------------------------------------<br></div><div><br></div><div><b>The error message I get from bitbake:</b></div><div><i><br></i></div><div><i>| checking for python2.7... (cached) /home/developer/build-webos-ose/BUILD/sysroots/x86_64-linux/usr/bin/python-native/python<br>| checking for a version of Python >= '2.1.0'... yes<br>| checking for a version of Python >= '2.7'... yes<br>| checking for the distutils Python package... yes<br>| checking for Python include path... -I/home/developer/build-webos-ose/BUILD/sysroots/raspberrypi3/usr/include/python2.7<br>| checking for Python library path... -L/home/developer/build-webos-ose/BUILD/sysroots/raspberrypi3/usr/lib -lpython2.7<br>| checking for Python site-packages path... /home/developer/build-webos-ose/BUILD/sysroots/x86_64-linux/usr/lib/python2.7/site-packages<br>| checking python extra libraries... -lpthread -ldl  -lpthread -lutil -lm<br>| checking python extra linking flags... -Xlinker -export-dynamic<br>| checking consistency of all components of python development environment... yes<br>| checking python module: soundcloud... no<br>| configure: error: failed to find required module soundcloud</i><br></div><div><br></div><div>Does somebody know what I am doing wrong? I cannot figure it out, any help is appreciated!</div><div><br></div><div>Cheers,</div><div>Serkan </div></div>
-- <br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>