Closed jahanzaib1234 closed 1 year ago
when i add
inherit setuptools
then i get this error
Could not inherit file classes/setuptools.bbclass
Hi, what is the branch you are working on? What are you trying to build?
dunfell
i am trying to build image for raspberry pi4 and want to to auto boot device with PyQt5 application
for PyQt5 application i need screeninfo and some other modules available in below list
/home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-screeninfo \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-apscheduler \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-tzlocal \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pytz \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-sseclient \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-gcloud \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-firebase-admin \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-requests \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-charset-normalizer \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-idna \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-urllib3 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-certifi \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-api-python-client \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-httplib2 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-auth \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-cachetools \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyasn1-modules \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyasn1 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-auth-httplib2 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-api-core \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-googleapis-common-protos \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-protobuf \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-uritemplate \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-cloud-storage \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-cloud-core \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-resumable-media \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-crc32c \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyjwt \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-onglass \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-setuptools \ "
when i try IMAGE_INSTALL_append = " python3-screeninfo"
i get this error
No match for argument: python3-screeninfo Error: Unable to find a match
After some research i get this point to remove this error i add "inherit setuptools" and i get this error
Could not inherit file classes/setuptools.bbclass
to remove this error i try to install steptools but get same error for steptools
@thomas-roos and my local.conf file looks like this
#
#
#
#
#
#
#
#
MACHINE ??= "raspberrypi4" LICENSE_FLAGS_WHITELIST="commercial" IMAGE_INSTALL_append = " util-linux-agetty" IMAGE_INSTALL_append = " python3-tkinter" IMAGE_INSTALL_append = " python3-pip" IMAGE_INSTALL_append = " python3-pyqt5" IMAGE_INSTALL_append = " python3-pyqt5" IMAGE_INSTALL_append = " python3-pycrypto" IMAGE_INSTALL_append = " python3-iniparse" IMAGE_INSTALL_append = " python3-cryptography" IMAGE_INSTALL_append = " python3-six" IMAGE_INSTALL_append = " python3-setuptools" IMAGE_INSTALL_append = " python3-click" IMAGE_INSTALL_append = " python3-cachecontrol" IMAGE_INSTALL_append = " python3-screeninfo" IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"
#
#
#
#
#
#
#
#
#
#
#
#
#
#
# DISTRO ?= "poky"
#
#
PACKAGE_CLASSES ?= "package_rpm"
#
#
#
#
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
#
#
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
#
#
#
#
#
#
PATCHRESOLVE = "noop"
#
#
BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ ABORT,${TMPDIR},100M,1K \ ABORT,${DL_DIR},100M,1K \ ABORT,${SSTATE_DIR},100M,1K \ ABORT,/tmp,10M,1K"
#
#
#
#
#
#
#
#
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
#
#
#
#
CONF_VERSION = "1"
DISTRO_FEATURES:append = " systemd" VIRTUAL-RUNTIME:init_manager = "systemd" VIRTUAL-RUNTIME:initscripts = "" IMX_DEFAULT_DISTRO_FEATURES:append = " systemd"
ENABLE_I2C = "1" ENABLE_UART = "1" DISABLE_SPLASH = "1" DISABLE_RPI_BOOT_LOGO = "1"
IMAGE_INSTALL:append = " psplash" IMAGE_FEATURES += " splash "
please share your bblayers.conf and your bitbake command
@thomas-roos
bitbake command :
source ./oe-init-build-env smartGlass/build
bitbake qt5-image
My bblayers.conf file
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}" BBFILES ?= ""
BBLAYERS ?= " \ ${TOPDIR}/../../meta \ ${TOPDIR}/../../meta-poky \ ${TOPDIR}/../../meta-yocto-bsp \ ${TOPDIR}/../../../meta-raspberrypi \ ${TOPDIR}/../../../meta-openembedded/meta-oe \ ${TOPDIR}/../../../meta-openembedded/meta-multimedia \ ${TOPDIR}/../../../meta-openembedded/meta-networking \ ${TOPDIR}/../../../meta-openembedded/meta-python \ ${TOPDIR}/../../../meta-openembedded/meta-perl \ ${TOPDIR}/../../../meta-qt5 \ ${TOPDIR}/../../../meta-security \ ${TOPDIR}/../meta-rpi \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-screeninfo \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-apscheduler \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-tzlocal \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pytz \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-sseclient \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-gcloud \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-firebase-admin \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-requests \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-charset-normalizer \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-idna \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-urllib3 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-certifi \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-api-python-client \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-httplib2 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-auth \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-cachetools \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyasn1-modules \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyasn1 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-auth-httplib2 \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-api-core \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-googleapis-common-protos \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-protobuf \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-uritemplate \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-cloud-storage \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-cloud-core \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-resumable-media \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-google-crc32c \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-pyjwt \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-onglass \ /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-setuptools \ "
and setuptools.bbclass looks like this :
inherit distutils
DEPENDS += "python-setuptools-native"
When i remove " inherit setuptools " from " python3-screeninfo_0.8.1.bb " then i get this error
ERROR: qt5-image-1.0-r0 do_rootfs: No manifest generated from: python3-setuptools
and also remove from local.conf
It doesn't seem that you are using meta-aws? How is this related?
i am not using meta-aws
ERROR: ParseError at /home/smart/Desktop/smart_glass/poky/smartGlass/sources/meta-screeninfo/recipes-devtools/python/python3-screeninfo_0.8.1.bb:16: Could not inherit file classes/setuptools.bbclass
this is the main error that we need to handle
how can i inherit "inherit file classes/setuptools.bbclass"
Hi, sorry to say this, but this is all about meta-aws. May ask your questions here: https://www.yoctoproject.org/community/mailing-lists/ or if the problem is Raspberry Pi related here: https://github.com/agherzan/meta-raspberrypi Btw. setuptools does not exsist in dunfell use setuptools3 -> https://git.yoctoproject.org/poky/tree/meta/classes/setuptools3.bbclass?h=dunfell good luck!
@thomas-roos thanks for you help i get the point i need to use setuptools3
i get this error
repo: using cache for: oe-repo not found other for: not found modules for: not found deltainfo for: not found updateinfo for: oe-repo: using metadata from Mon 07 Nov 2022 04:58:03 PM UTC. Last metadata expiration check: 0:00:04 ago on Mon 07 Nov 2022 04:58:04 PM UTC. No module defaults found No match for argument: python3-setuptools Error: Unable to find a match
and my python3-setuptools_65.5.1.bb is
SUMMARY = "Easily download, build, install, upgrade, and uninstall Python packages" HOMEPAGE = "https://github.com/pypa/setuptools" AUTHOR = "Python Packaging Authority distutils-sig@python.org" LICENSE = "MIT License (MIT)" LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
SRC_URI = "https://files.pythonhosted.org/packages/c5/41/247814d8b7a044717164c74080725a6c8f3d2b5fc82b34bd825b617df663/setuptools-65.5.0.tar.gz" SRC_URI[md5sum] = "9018a18990e7c16159ec3972affba76c" SRC_URI[sha256sum] = "512e5536220e38146176efb833d4a62aa726b7bbff82cfbc8ba9eaa3996e0b17"
S = "${WORKDIR}/setuptools-65.5.0"
RDEPENDS_${PN} = ""