meta-virtualization.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Markus Rathgeb <maggu2810@gmail.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization] [kirkstone] docker-compose: missing dependency
Date: Mon, 10 Jul 2023 09:56:38 -0400	[thread overview]
Message-ID: <CADkTA4MNwL8dtUTyqc0haqLD3LPvocykPE9PpNnN8yQtfm2F-g@mail.gmail.com> (raw)
In-Reply-To: <CAOcK=CMxS_n1kQcDTMO0DwXPVe=CcyfHDZqifOm9mjvO+X_KyA@mail.gmail.com>

On Mon, Jul 10, 2023 at 7:37 AM Markus Rathgeb <maggu2810@gmail.com> wrote:
>
> Hello,
> I am using your layer in a custom distribution.
> I am using the kirkstone branch.
>
> I added python3-docker-compose to my image.
> The following recipe is used: meta-virtualization/recipes-containers/docker-compose/python3-docker-compose_1.29.2.bb
>
> If I use the docker-compose command on my target machine the following error is shown:
>
> # docker-compose
> Traceback (most recent call last):
>   File "/usr/bin/docker-compose", line 5, in <module>
>     from compose.cli.main import main
>   File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 9, in <module>
>     from distutils.spawn import find_executable
> ModuleNotFoundError: No module named 'distutils'
>
> After adding "python3-distutils" to my image explicit the error is gone.
>
> I assume the recipe "python3-docker-compose_1.29.2.bb" misses a RDEPEND for "python3-distutils".
>

If you check the mailing list archives, we had a discussion about this
same thing in the
thread: [meta-virtualization] Docker Compose issue regarding the
deprecation of Python3 distutils on Kirkstone

And yes, there is a missing rdepends, but since distutils is
depreciated, it is left as-is as an early
warning that users should migrate to the newer docker-compose using go.

If you do need the python3 version, then you can ensure you are
explicitly adding that package to
your image, or attempt to patch it to use setuputils (and send that
one to the list!).

Bruce

> Best regards,
> Markus
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8124): https://lists.yoctoproject.org/g/meta-virtualization/message/8124
> Mute This Topic: https://lists.yoctoproject.org/mt/100055714/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


      reply	other threads:[~2023-07-10 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10 11:37 [kirkstone] docker-compose: missing dependency Markus Rathgeb
2023-07-10 13:56 ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADkTA4MNwL8dtUTyqc0haqLD3LPvocykPE9PpNnN8yQtfm2F-g@mail.gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=maggu2810@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).