From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38BBCC19F29 for ; Wed, 27 Jul 2022 21:42:33 +0000 (UTC) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web12.25397.1658958146147726722 for ; Wed, 27 Jul 2022 14:42:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iZ2ouO0a; spf=pass (domain: gmail.com, ip: 209.85.210.174, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f174.google.com with SMTP id b133so268892pfb.6 for ; Wed, 27 Jul 2022 14:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=nKJtOAimP/tuFGe+EmwqWG2H33bTVWy3Jawz7oflZpY=; b=iZ2ouO0aS9EVtuZ+T1bCJfugR4pURAM4GM2/uiFfT7E7zo8OA9SVI5ZHOIC/e/ODrk BDySbWcF20brWYLaLIflJ0jfMZe/jJyH6aK51Fe86r3ypIhtwqG5OY9OXil13nRZeqYX TeVzoHtuaoj9i9ohyvJc6T7FT7j/HQTFEUEXzcBzFfJkgBndEIB5oJuItlW14YhYP9vc P1Ri4Qemakllpgu11dz5JQRiRhmp1KdJP9chYtvFb01w9Sp2W8YRFG6Ovh2s9Lrh1IAM N5zrRdDIVfdc4OSnbJZ6UCcJTLLXutediSB71F6KvpjVi1BsqjsLCCbjNiqXWcg5fHiH Fdqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=nKJtOAimP/tuFGe+EmwqWG2H33bTVWy3Jawz7oflZpY=; b=o5vnoXB3zEclICsyLE5LwjkSq1cU2Vv8l0Iq2p6EznAc4T6gctWen7GlxDkdRGJvaU ZyCA9Pyqza96ap+3AwNgCT4oUH24nJlhv6w3A9M+ygUxVSJSIocqLb+brK7yO0OnLt70 tOnpRgIUb5GFYlYfNXyxIKFzzrhNHoIlaCCsk1AtT62pyBFpKXlqSWQESbDXtKTiSWf9 DYWwI3QFLsQy4Ande3hviQnSd5b/nZLevg16RdEeCkniC/9rnEwPZ75Yo+qJBSaf2HMp yNvSDr1/ONVFD0Vmsn9zWrmn483ZZ7cHSn2oanVR/qL9yLgrYIWa51fnjyvqn3ZGaPbJ cZVA== X-Gm-Message-State: AJIora9g02fcl2fbDR3WDPRWZYpbWLakDKaCZxjR8qmgGolm7+9XMIm7 eMIFO/aRYx7vOQeJisjbGiAm7UjN3CU1sIAvTzg= X-Google-Smtp-Source: AGRyM1sdH6HIWTLKaVPJiRQbWdkVlS+AdyWOff7aWs9/fJF18E3UpwnkWTmvcfdS0AfmCjSeu+OOiKWQEmVQhCUaNFQ= X-Received: by 2002:a63:6945:0:b0:41a:5127:a477 with SMTP id e66-20020a636945000000b0041a5127a477mr20394568pgc.15.1658958145114; Wed, 27 Jul 2022 14:42:25 -0700 (PDT) MIME-Version: 1.0 References: <49660EA1-CD22-40DB-98C7-C43F38A72CCA@ieee.org> <68F0A22B-8CE4-47A3-A6DF-B19C0D80220A@ieee.org> In-Reply-To: <68F0A22B-8CE4-47A3-A6DF-B19C0D80220A@ieee.org> From: Tim Orling Date: Wed, 27 Jul 2022 14:42:13 -0700 Message-ID: Subject: Re: [meta-virtualization] Docker Compose issue regarding the deprecation of Python3 distutils on Kirkstone To: ierturk@ieee.org Cc: Bruce Ashfield , meta-virtualization@lists.yoctoproject.org Content-Type: multipart/alternative; boundary="000000000000efd63f05e4d04a54" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 27 Jul 2022 21:42:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-virtualization/message/7481 --000000000000efd63f05e4d04a54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jul 27, 2022 at 2:34 PM Ibrahim Erturk via lists.yoctoproject.org wrote: > > On 27 Jul 2022, at 21:19, Bruce Ashfield wrote= : > > > On Wed, Jul 27, 2022 at 3:24 AM Ibrahim Erturk via > lists.yoctoproject.org > wrote: > > > Hello, > > I added the following line into local.conf to get the packages docker and > docker-compose on Rapberry Pi (meta-raspberrypi) with the branch kirkston= e. > > # Virtualization > DISTRO_FEATURES:append =3D " virtualization" > IMAGE_INSTALL:append =3D " docker-ce" > IMAGE_INSTALL:append =3D " python3-docker-compose=E2=80=9D > # IMAGE_INSTALL:append =3D " python3-distutils" > > However, due to python3-distutils deprecated as of Python3.10, I got the > following error. > > raspberrypi3:~$ docker-compose > Traceback (most recent call last): > File "/usr/bin/docker-compose", line 5, in > from compose.cli.main import main > File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 9, in > > from distutils.spawn import find_executable > ModuleNotFoundError: No module named =E2=80=98distutils=E2=80=99 > > Is there any workaround regarding this issue or am I missing some > configuration? > > > I'm not sure I'm following. > > docker-compose has been on the same version for quite some time (mid > 2021) on pypi (the source repo does have newer versions, so we could > consider switching to source vs pypi). > > and yes, that version is still using distutils. So either you need to > install the depreciated module, or do an uprev to a newer version > using the github repo. > > Bruce > > > Thanks in advance. > > Regards, > Ibrahim ERTURK > > > > > -- > - Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end > - "Use the force Harry" - Gandalf, Star Trek II > > > Hi Bruce, > > Thanks for the reply. I explicitly added the deprecated python package > python3-distutils as follow, and it seem that compose works properly > > IMAGE_INSTALL:append =3D " python3-distutils" > Or just patch it to use setuptools. It is often very simple. > Ibrahim > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#7480): > https://lists.yoctoproject.org/g/meta-virtualization/message/7480 > Mute This Topic: https://lists.yoctoproject.org/mt/92644827/924729 > Group Owner: meta-virtualization+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ > ticotimo@gmail.com] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > --000000000000efd63f05e4d04a54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Jul 27, 2022 at 2:34 PM Ibrahim Erturk via lists.yoctoproject.org <ierturk= =3Dieee.org@lists.yoctop= roject.org> wrote:

On 27 Jul 2= 022, at 21:19, Bruce Ashfield <bruce.ashfield@gmail.com> wrote:

On Wed, Jul 27, 2022 at 3:24 AM Ibrahim Erturk via
lists.yo= ctoproject.org=C2=A0<ierturk=3Dieee.org@lists.yoctoproject.org= >
wro= te:
Hello,

I added the following line into local.conf to get the packag= es docker and docker-compose on Rapberry Pi (meta-raspberrypi) with the bra= nch kirkstone.

# Virtualization
DISTRO_FEATURES:append =3D "= virtualization"
IMAGE_INSTALL:append =3D " docker-ce"IMAGE_INSTALL:append =3D " python3-docker-compose=E2=80=9D
# IMAGE= _INSTALL:append =3D " python3-distutils"

However, due to p= ython3-distutils deprecated as of Python3.10, I got the following error.
raspberrypi3:~$ docker-compose
Traceback (most recent call last):File "/usr/bin/docker-compose", line 5, in <module>
= =C2=A0=C2=A0from compose.cli.main import main
File "/usr/lib/python= 3.10/site-packages/compose/cli/main.py", line 9, in <module>
= =C2=A0=C2=A0from distutils.spawn import find_executable
ModuleNotFoundEr= ror: No module named =E2=80=98distutils=E2=80=99

Is there any workar= ound regarding this issue or am I missing some configuration?

I'm not sure I'm following.

dock= er-compose has been on the same version for quite some time (mid
2= 021) on pypi (the source repo does have newer versions, so we could<= br style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-var= iant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;= text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;tex= t-decoration:none">
and y= es, that version is still using distutils. So either you need to
i= nstall the depreciated module, or do an uprev to a newer version
u= sing the github repo.

Bruce


T= hanks in advance.

Regards,
Ibrahim ERTURK




--=C2=A0
- Thou shalt not fol= low the NULL pointer, for chaos and madness await
thee at its end<= /span>
- "Use the force Harry" - Gandalf, Star Trek II

Hi Bruce,

Thanks = for the reply. I explicitly added the deprecated python package python3-dis= tutils as follow, and it seem that compose works properly

IMAGE_INSTALL:append =3D " python3-distutils"
<= /div>

Or just patch it to use setuptools. It is often very simple.


Ibrahim

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Links: You receive all messages sent to this group.
View/Reply Online (#7480): https://= lists.yoctoproject.org/g/meta-virtualization/message/7480
Mute This Topic: https://lists.yoctoproject.org/mt/= 92644827/924729
Group Owner: meta-virtualization+owner@lists.yoctoproject.org<= /a>
Unsubscribe:
https://lists.yoctoproject.or= g/g/meta-virtualization/unsub [ticotimo@gmail.com]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-

--000000000000efd63f05e4d04a54--