[yocto] No module named setuptools -- even with "inherit setuptools"?

Burton, Ross ross.burton at intel.com
Fri Mar 23 12:53:12 PDT 2018


Should work, as the setuptools class depends on
python-distribute-native which is provided by
python-setuptools-native, and the class also inherits pythonnative so
it should be running the python from the sysroot and not the host
python.

I'd verify that it's not explicitly running /usr/bin/python at some
point, instead of the python binary in $PATH.

Ross

On 23 March 2018 at 18:46, Giordon Stark <kratsg at gmail.com> wrote:
> Hi,
>
> I'm a bit perplexed. I don't know what I'm doing wrong here, but this is the
> log data:
>
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | Traceback (most recent call last):
> |   File "setup.py", line 2, in <module>
> |     from setuptools import setup
> | ImportError: No module named setuptools
> | ERROR: python setup.py build execution failed.
> | WARNING:
> /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/python-construct/2.9.39-r0/temp/run.do_compile.3286:1
> exit 1 from 'exit 1'
> | ERROR: Function failed: do_compile (log file is located at
> /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/python-construct/2.9.39-r0/temp/log.do_compile.3286)
> ERROR: Task
> (/local/d4/gstark/meta-l1calo/recipes-python/python-construct_2.9.39.bb:do_compile)
> failed with exit code '1'
>
> with the recipe looking like this... (below). Any ideas?
>
> DESCRIPTION = "Python declarative parser for binary data"
> HOMEPAGE = "http://construct.readthedocs.org/en/latest/"
> SECTION = "devel/python"
> LICENSE = "BSD-3-Clause"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=3fd0f2c25089e629957285e6bc402a20"
>
> PYPI_PACKAGE = "construct"
> inherit pypi setuptools
>
> SRC_URI[md5sum] = "39407f91407138f687ea2ecf8d758a1f"
> SRC_URI[sha256sum] =
> "c23ef47fd5751d821e5c17d9b3b02d1f3c465e66b8a205b9c791c4abef747138"
>
> DEPENDS = "python python-six"
> RDEPENDS_${PN} += "python-lang python-shell python-six python-debugger"
> --
> Giordon Stark
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list