I would assume it has to go into python2.7.bb (or however it's called). The above error could be a consequence of their "blocker"
Krogoth branch not possible to build anymore
-
-
Well after some heavy read up and help from the dark side i figure it out and now can build krogoth image on all Linux distros with VMWare and or Windows 10 (Ubuntu 18.04 lts)
I have successfully built on Debian 9/10 Ubuntu 16.04/18.04/20.04
And Windows 10 Ubuntu 18.04 LTS app
No need for any complicated docker image
Image that build fastes on my computer was Debian 9 stretch
Thanks to dre for keeping me motivated and for always helping us less skilled but learning users
-
What did the trick to be able to proceed with the build?
-
Well issue is in the python-ioctl as we reported there was an issue with setuptools and setuptools-scm
After lots of reading and some help from the darkside we manage to figure out that python-ioctl was trying to install setuptools/setuptools-scm but the package is already installed and the files are owned by that package.
This caused the build crash. So if you re write the git file for python-ioctl then you can pretty much build in any linux distro of your choice.
I even manage to build an image with the Windows 10 Ubuntu 18.04 lts addon/app but there you need to install the same recommended extra files as for pyro and the dpkg utils.
Debian 9 strech only need your first 2 fixes and the tweak in the git file and then you can build without the need for any extra installation.
Again thanks for your help i would never been able and figure this out without you advices
-
Hallo,
ich verstehe einfach nicht, wie man das setuptools-scm Problem löst.
Ich habe die Datei python-setuptools-scm_3.3.3.bb erstellt, aber die Datei wird nicht bearbeitet. Was mache ich falsch ?
Viele Grüße
Axel Lanser
-
Ich würde einfach mal nur die setuptools-Version erhöhen. Vielleicht reicht das bereits.
Pfad: <oe-root>/openembedded-core/meta/recipes-devtools/python
Dort python-setuptools_32.1.1.bb reinkopieren und python-setuptools.inc
python-setuptools_32.1.1.bb:
Code
Alles anzeigenrequire python-setuptools.inc PROVIDES = "python-distribute" DEPENDS += "python" DEPENDS_class-native += "python-native" inherit distutils DISTUTILS_INSTALL_ARGS += "--install-lib=${D}${PYTHON_SITEPACKAGES_DIR}" RDEPENDS_${PN} = "\ python-stringold \ python-email \ python-shell \ python-distutils \ python-compression \ python-pkgutil \ python-plistlib \ python-numbers \ python-html \ python-netserver \ python-ctypes \ python-subprocess \ python-unittest \ python-compile \ " RDEPENDS_${PN}_class-native = "\ python-distutils \ python-compression \ " RREPLACES_${PN} = "python-distribute" RPROVIDES_${PN} = "python-distribute" RCONFLICTS_${PN} = "python-distribute" BBCLASSEXTEND = "native nativesdk"
python-setuptools.inc:
Code
Alles anzeigenSUMMARY = "Download, build, install, upgrade, and uninstall Python packages" HOMEPAGE = "https://pypi.python.org/pypi/setuptools" SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://setup.py;beginline=146;endline=146;md5=3e8df024d6c1442d18e84acf8fbbc475" SRCNAME = "setuptools" SRC_URI = "https://files.pythonhosted.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" SRC_URI[md5sum] = "8b67868c3430e978833ebd0d1b766694" SRC_URI[sha256sum] = "8303fb24306385f09bf8b0e5a385c1548e42e8efc08558d64049bc0d55ea012d" UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/setuptools" S = "${WORKDIR}/${SRCNAME}-${PV}" do_install_prepend() { install -d ${D}${PYTHON_SITEPACKAGES_DIR} }
Versuch doch bitte mal, ob das bereits ausreicht.
-
-
Und das recipe geht nicht? http://layers.openembedded.org/layerindex/recipe/114258/
-
Problem is not the setuptools problem is that python-ioctl is trying to install setuptools. But since setuptools already is installed this fails.
I have an ugly fix for but was hoping that DP then self would overhaul the repo and fix this issue
-
According to this thread: https://github.com/pypa/pypi-l…22#issuecomment-229131838
It can be solved by upgrading python-pip to 8.1.2 (krogoth uses 8.1.1:http://layers.openembedded.org/layerindex/recipe/49621/)
-
-
Und das recipe geht nicht? http://layers.openembedded.org/layerindex/recipe/114258/
Hallo,
ich habe die Datei erstellt und in das angegebene Verzeichnis kopiert. Ich weiß nicht, wie ich das Problem beheben soll. Im Anhang habe ich einen Fehlerlog und ein Screenshot eingestellt.
Viele Grüße
Aladin
-
Du sollst python-pip auf Version 8.1.2 anheben wie in Post 30 beschrieben. Wenn du den Link auf das recipe anklickst, dann kannst du unterhalb das recipe für morty sehen, welches 8.1.2 nutzt. Dieses kannst du einfach herunterladen ins gleiche Verzeichnis, welches /meta-openembedded/meta-python/recipes-devtools/python sein müsste. Dort solltest du schon das recipe für python-pip 8.1.1 finden.
-
Just unzip this file and move the .bb file from inside the zip file to the location described by dre
opendreambox/meta-openembedded /meta-python /recipes-devtools /pythonNow backup the python-pip_8.1.1.bb by just rename it to python-pip_8.1.1.bak
Re run the make of image and all should work just fine
-
It's not required to rename the recipe for 8.1.1. The highest version will be built automatically.
-
Ich nutze das von Reichi gemachte Docker Image opendreambox/build.
Das im Beitrag #30 beschriebene Verfahren die python-pip_8.1.2.bb ins Verzeichnis /meta-openembedded/meta-python/recipes-devtools/python zu kopieren habe ich gemacht (einschließlich Benutzer und Rechte zu setzen).
Leider bekomme weiterhin die Meldung "| distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm') ". (Log angehängt)
Mache ich da ansonsten noch etwas verkehrt?
-
Hast du noch was an setuptools-scm gemacht? Es wird ja reklamiert, dass setuptools_scm nicht gefunden wird.Edit: hm, Nein. Das ist bei den anderen auch so. Kannst du einfach mal ein bitbake -Dv python-pip machen?
-
Hat einen Moment gedauert, bis ich in der Docker Umgebung dem Aufruf korrekt zum Laufen gebracht habe.
Log ist angehängt.
-
Das wird ja schonmal sauber gebaut. Wie sieht es mit setuptools und setuptools-scm aus?
-
Code
oe@krogoth:/oe/krogoth/build/dm920$ bitbake -ccleanall setuptools-scm setuptools NOTE: Started PRServer with DBfile: /oe/krogoth/persist-cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 40995, PID: 10662 Loading cache: 100% |#########################################################################################| ETA: 00:00:00 Loaded 2744 entries from dependency cache. Parsing recipes: 100% |#######################################################################################| Time: 00:00:01 Parsing of 2194 .bb files complete (2146 cached, 48 parsed). 2795 targets, 372 skipped, 0 masked, 0 errors. ERROR: Nothing PROVIDES 'setuptools-scm' Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Es gibt in diesem OE eine bb Datei für setup-tools.
ERROR: Nothing PROVIDES 'setuptools-scm'
Woher bekomme ich das bitbakefile?