Linutronix / elbe

Embedded Linux Build Environment
https://elbe-rfs.org
GNU General Public License v3.0
163 stars 59 forks source link

Syntax Error during ELBE Docker build #346

Closed mrelyb closed 1 year ago

mrelyb commented 1 year ago

While building ELBE docker image with version 14.6 the following syntax error occurs:

Setting up elbe-schema (14.6.1) ... Setting up python3-elbe-common (14.6.1) ... File "/usr/lib/python3/dist-packages/elbepack/repodir.py", line 40 bin_el.text = f"http://LOCALMACHINE:{httpd.server_address[1]} {repo[1]}" ^ SyntaxError: invalid syntax

dpkg: error processing package python3-elbe-common (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python3-elbe-control: python3-elbe-control depends on python3-elbe-common (= 14.6.1); however: Package python3-elbe-common is not configured yet.

dpkg: error processing package python3-elbe-control (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-elbe-bin: python3-elbe-bin depends on python3-elbe-common (= 14.6.1); however: Package python3-elbe-common is not configured yet.

dpkg: error processing package python3-elbe-bin (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of elbe: elbe depends on python3-elbe-bin (= 14.6.1); however: Package python3-elbe-bin is not configured yet. elbe depends on python3-elbe-control (= 14.6.1); however: Package python3-elbe-control is not configured yet.

dpkg: error processing package elbe (--configure): dependency problems - leaving unconfigured

bgermann commented 1 year ago

README: "Please note that we currently target Python 3.6+" It is not a syntax error in Python 3.6+

mrelyb commented 1 year ago

So what should I do to make the Docker image under contrib/dockerfile build with 14.6? Replace

This Dockefile generate a image for the elbe buildsystem

FROM elbeproject/debian-stretch:latest

by

This Dockefile generate a image for the elbe buildsystem

FROM elbeproject/debian-bullseye:latest ?

bgermann commented 1 year ago

Right.

bgermann commented 1 year ago

I did not read properly. You would have to use the official Debian images (debian:bullseye).

mrelyb commented 1 year ago

Yes I supposed that. Thanks for your help

bgermann commented 1 year ago

See https://lists.linutronix.de/pipermail/elbe-devel/2022-October/005981.html