• Re: Can someone explain containers, pods, docker, etc. please

    From songbird@21:1/5 to Lists on Sat Nov 9 15:00:01 2024
    Lists wrote:
    On 2024-11-08 16:51, Chris Green wrote:

    Well, yes, it sounds like it doesn't it. However, apparently, there
    are various things that prevent one from creating a python 2.x virtual
    environment on a system that has only Python 3.

    Not to be a bother, but did you look into pyenv en pyenv-installer?

    Here's a quote from their github page:

    "You can activate multiple versions at the same time, including multiple versions of Python2 or Python3 simultaneously. This allows for parallel
    usage of Python2 and Python3"

    That makes me think it should be possible to achieve what you need.

    See

    https://github.com/pyenv/pyenv

    and

    https://github.com/pyenv/pyenv-installer

    Grx HdV

    thank you, yes that was where i was going with my questions,
    but you got there first. :)


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to songbird on Sat Nov 9 15:50:01 2024
    songbird <[email protected]> wrote:
    Lists wrote:
    On 2024-11-08 16:51, Chris Green wrote:

    Well, yes, it sounds like it doesn't it. However, apparently, there
    are various things that prevent one from creating a python 2.x virtual
    environment on a system that has only Python 3.

    Not to be a bother, but did you look into pyenv en pyenv-installer?

    Here's a quote from their github page:

    "You can activate multiple versions at the same time, including multiple versions of Python2 or Python3 simultaneously. This allows for parallel usage of Python2 and Python3"

    That makes me think it should be possible to achieve what you need.

    See

    https://github.com/pyenv/pyenv

    and

    https://github.com/pyenv/pyenv-installer

    Grx HdV

    thank you, yes that was where i was going with my questions,
    but you got there first. :)

    But there is no Python 2 available for Debian 12 so it's not available
    for these tools to use. They can only switch between Python versions
    that exist!

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lists@21:1/5 to Chris Green on Sat Nov 9 18:40:02 2024
    On 2024-11-09 15:27, Chris Green wrote:

    But there is no Python 2 available for Debian 12 so it's not available
    for these tools to use. They can only switch between Python versions
    that exist!

    It is a while back, but I have managed to compile my own cpython without
    too many problems in the past. Wouldn't that be a possibility for you?
    To roll your own? Older sources are still available AFAIK.

    Grx HdV

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Chris Green on Sat Nov 9 19:50:01 2024
    On Fri, 8 Nov 2024 12:57:37 +0000
    Chris Green <[email protected]> wrote:

    Basically yes, what makes it impossiblr to migrate to Python3 is that
    there is a .so file which is a python package built for Python 2,
    otherwise I would be quite happy to convert it all to Python 3.

    I know zilch about pythin, so this is a shot in the dark. While working
    on something else, I cam across the package python3-lib2to3. Might that
    be of use?

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Florent Rougon@21:1/5 to All on Sat Nov 9 20:10:01 2024
    Hi,

    Le 09/11/2024, Charles Curley <[email protected]> a écrit:

    I know zilch about pythin, so this is a shot in the dark. While working
    on something else, I cam across the package python3-lib2to3. Might that
    be of use?

    No, 2to3 is for converting Python code, however Chris' real problem was
    with a C extension module (compiled as .so, whose source code is
    unavailable AFAIUI).

    Regards

    --
    Florent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Florent Rougon on Sat Nov 9 21:30:02 2024
    Florent Rougon <[email protected]> wrote:
    Hi,

    Le 09/11/2024, Charles Curley <[email protected]> a écrit:

    I know zilch about pythin, so this is a shot in the dark. While working
    on something else, I cam across the package python3-lib2to3. Might that
    be of use?

    No, 2to3 is for converting Python code, however Chris' real problem was
    with a C extension module (compiled as .so, whose source code is
    unavailable AFAIUI).

    You have it in one! :-) Proprietary source code, or at least no one
    at OKI prepared to release it.

    However, as I have reported, I have a reasonable solution using
    Distrobox to run a Ubuntu 18.04 image in a container. It's reasonably
    'clean' and should last me for a while.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to All on Thu Nov 7 14:50:01 2024
    I'm trying to get my mind round the various ways of wrapping/isolating collections of code and programs in Debian (well in any Linux I
    suppose) and I'm really not understanding them very well. When you go
    to the home of any particular one it seems to think you know what it
    is already and thus goes from there to tell you how to install it but
    doesn't really explain what it does.


    So is there anything anywhere that gives a higher level view. The
    sorts of things I'm interested in are OCI, containers, Podman, Docker
    etc.

    The 'Container Tools Guide' at https://github.com/containers/buildah/tree/main/docs/containertools
    just takes me round in circles as it rather assumes I know what they
    mean by a container.

    I'm also particularly confused by Docker which seems simply to be
    something sitting in a virtual machine in which case why not just run
    the virtual machine and use that? Or is the Docker described at
    docker.com not what is meant by docking on Linux?

    I do understand (a bit) virtual machines like VirtualBox etc. I ran
    WIndows XP in VirtualBox for a while to support some Epson Scanner
    software in particular.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly
    'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    There are also, of course, things like Appimage and snap but although
    they might be able to do what I'm after they're not quite what I want
    and do seem very complex to build. From where I am, running virtualbox
    will be (much) simpler.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Todd Zullinger@21:1/5 to Chris Green on Thu Nov 7 15:50:01 2024
    Chris Green wrote:
    I'm trying to get my mind round the various ways of wrapping/isolating collections of code and programs in Debian (well in any Linux I
    suppose) and I'm really not understanding them very well. When you go
    to the home of any particular one it seems to think you know what it
    is already and thus goes from there to tell you how to install it but
    doesn't really explain what it does.

    Containers are similar to virtual machines in effect.
    Compared to full virtualization, they have much lower
    overhead (which can be great) and much less isolation
    between the host and container (which can be not so great).

    Since they don't run their own kernel, they don't boot, so
    starting a container takes a trivial amount of time compared
    to starting a virtual machine.

    Try either or both of these for more details:

    https://ubuntu.com/blog/what-are-linux-containers
    https://www.redhat.com/en/topics/containers/whats-a-linux-container

    --
    Todd

    -----BEGIN PGP SIGNATURE-----

    iHUEARYIAB0WIQSvlwC4tRNlCF6x+moHOcdGE+n45gUCZyzRUAAKCRAHOcdGE+n4 5quMAPwP4zsrJUuoF7DOtuERJWvwXbqLj1atjmaOnAbwZSmpdgD/d3NEmcE6d0Pv pHq9BIQqh70Sc0ssL9zXeGpMatImjAo=
    =vKBk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Todd Zullinger on Thu Nov 7 17:50:01 2024
    Todd Zullinger <[email protected]> wrote:
    [-- text/plain, encoding quoted-printable, charset: us-ascii, 25 lines --]

    Chris Green wrote:
    I'm trying to get my mind round the various ways of wrapping/isolating collections of code and programs in Debian (well in any Linux I
    suppose) and I'm really not understanding them very well. When you go
    to the home of any particular one it seems to think you know what it
    is already and thus goes from there to tell you how to install it but doesn't really explain what it does.

    Containers are similar to virtual machines in effect.
    Compared to full virtualization, they have much lower
    overhead (which can be great) and much less isolation
    between the host and container (which can be not so great).

    Since they don't run their own kernel, they don't boot, so
    starting a container takes a trivial amount of time compared
    to starting a virtual machine.

    Try either or both of these for more details:

    https://ubuntu.com/blog/what-are-linux-containers
    https://www.redhat.com/en/topics/containers/whats-a-linux-container

    Thanks, the Ubuntu blog in particular has given me a lot of help.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Chris Green on Thu Nov 7 18:40:01 2024
    Chris Green <[email protected]> wrote:
    Todd Zullinger <[email protected]> wrote:
    [-- text/plain, encoding quoted-printable, charset: us-ascii, 25
    lines --]

    Chris Green wrote:
    I'm trying to get my mind round the various ways of
    wrapping/isolating collections of code and programs in Debian
    (well in any Linux I suppose) and I'm really not understanding
    them very well. When you go to the home of any particular one it
    seems to think you know what it is already and thus goes from
    there to tell you how to install it but doesn't really explain
    what it does.

    Containers are similar to virtual machines in effect.
    Compared to full virtualization, they have much lower
    overhead (which can be great) and much less isolation
    between the host and container (which can be not so great).

    Since they don't run their own kernel, they don't boot, so
    starting a container takes a trivial amount of time compared
    to starting a virtual machine.

    Try either or both of these for more details:

    https://ubuntu.com/blog/what-are-linux-containers
    https://www.redhat.com/en/topics/containers/whats-a-linux-container

    Thanks, the Ubuntu blog in particular has given me a lot of help.

    There's another article at https://lwn.net/Articles/902049/ that may
    also help.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to Chris Green on Thu Nov 7 22:20:01 2024
    On 11/7/24 14:19, Chris Green wrote:

    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly 'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    I do this a lot, running all kind of Debian and Ubuntu versions
    on my Sid host. I'm using LXC (the old one, in package lxc, not the
    new one that comes in package lxd).
    LXC gives you a full system, including (typically) systemd.

    Docker is good at running a single program (typically servers,
    but I also run browsers in docker containers).

    I couldn't get CentOS 7 running inside LXC, probably because the
    kernel was too different, so I had to use a full VM (KVM) for this.

    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roy J. Tellason, Sr.@21:1/5 to All on Thu Nov 7 23:00:01 2024
    On Thursday 07 November 2024 08:19:55 am Chris Green wrote:
    I'm trying to get my mind round the various ways of wrapping/isolating collections of code and programs in Debian (well in any Linux I
    suppose) and I'm really not understanding them very well.  When you go
    to the home of any particular one it seems to think you know what it
    is already and thus goes from there to tell you how to install it but
    doesn't really explain what it does.


    This is one of my biggest gripes about software packages. As in, "WTF does this DO?!" Too often they seem to leave that out for some reason...

    --
    Member of the toughest, meanest, deadliest, most unrelenting -- and
    ablest -- form of life in this section of space,  a critter that can
    be killed but can't be tamed.  --Robert A. Heinlein, "The Puppet Masters"
    -
    Information is more dangerous than cannon to a society ruled by lies. --James M Dakin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to Chris Green on Fri Nov 8 04:30:01 2024
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly 'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.


    There are also, of course, things like Appimage and snap but although
    they might be able to do what I'm after they're not quite what I want
    and do seem very complex to build. From where I am, running virtualbox
    will be (much) simpler.

    the only other ways of doing things for me is python
    virtual environments - i don't need anything else so far
    but then i'm also not doing many complicated things.


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to songbird on Fri Nov 8 10:50:02 2024
    songbird <[email protected]> wrote:
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly 'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    A VirtualBox instance running the old distro would work for me as you
    can share files between that an the 'parent' system but it really
    seems like overkill for running just one little app/program.

    At present the simplest solution for me seems to be to install the old
    distro on a low-power consumption system and simply run the scanner
    utility via 'ssh -X' so that I can see it on my desktop screen. That
    does work OK, the only downside is the small extra bit of power
    consumption.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to Chris Green on Fri Nov 8 13:30:02 2024
    Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly
    'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    can you say what that scanner applet is?


    A VirtualBox instance running the old distro would work for me as you
    can share files between that an the 'parent' system but it really
    seems like overkill for running just one little app/program.

    At present the simplest solution for me seems to be to install the old
    distro on a low-power consumption system and simply run the scanner
    utility via 'ssh -X' so that I can see it on my desktop screen. That
    does work OK, the only downside is the small extra bit of power
    consumption.

    it seems like that right now, but perhaps some poking
    around may come up with another way.

    is the constraint for the applet that it needs python 2?
    or?


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to songbird on Fri Nov 8 14:20:01 2024
    songbird <[email protected]> wrote:
    Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly
    'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    can you say what that scanner applet is?


    A VirtualBox instance running the old distro would work for me as you
    can share files between that an the 'parent' system but it really
    seems like overkill for running just one little app/program.

    At present the simplest solution for me seems to be to install the old distro on a low-power consumption system and simply run the scanner
    utility via 'ssh -X' so that I can see it on my desktop screen. That
    does work OK, the only downside is the small extra bit of power consumption.

    it seems like that right now, but perhaps some poking
    around may come up with another way.

    I'm still poking! :-)


    is the constraint for the applet that it needs python 2?
    or?

    Basically yes, what makes it impossiblr to migrate to Python3 is that
    there is a .so file which is a python package built for Python 2,
    otherwise I would be quite happy to convert it all to Python 3.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Florent Rougon@21:1/5 to All on Fri Nov 8 14:20:01 2024
    Hi,

    Le 08/11/2024, Chris Green <[email protected]> a écrit:

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    Does gscan2pdf not fulfill your needs? I'm not a big fan of Perl in
    general, but this is definitely a good Perl program that has served me
    well for over a decade (thanks Jeffrey Ratcliffe!).

    Regards

    --
    Florent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lists@21:1/5 to Chris Green on Fri Nov 8 15:00:01 2024
    On 2024-11-08 13:57, Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly >>>>> 'lighter weight' than a full-blown virtual machine like virtualbox
    though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    can you say what that scanner applet is?


    A VirtualBox instance running the old distro would work for me as you
    can share files between that an the 'parent' system but it really
    seems like overkill for running just one little app/program.

    At present the simplest solution for me seems to be to install the old
    distro on a low-power consumption system and simply run the scanner
    utility via 'ssh -X' so that I can see it on my desktop screen. That
    does work OK, the only downside is the small extra bit of power
    consumption.

    it seems like that right now, but perhaps some poking
    around may come up with another way.

    I'm still poking! :-)


    is the constraint for the applet that it needs python 2?
    or?

    Basically yes, what makes it impossiblr to migrate to Python3 is that
    there is a .so file which is a python package built for Python 2,
    otherwise I would be quite happy to convert it all to Python 3.


    I am just a novice with Python (migrating from perl, which I have
    programmed in for more than 25 years), but wouldn't a Python Virtual Environment (venv) be just the thing for this? I've been tinkering with
    that in pycharm and it seems like it could do what you need.

    See https://docs.python.org/3/library/venv.html for more information.

    HTH

    Grx HdV

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Florent Rougon on Fri Nov 8 15:20:01 2024
    Florent Rougon <[email protected]> wrote:
    Hi,

    Le 08/11/2024, Chris Green <[email protected]> a écrit:

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    Does gscan2pdf not fulfill your needs? I'm not a big fan of Perl in
    general, but this is definitely a good Perl program that has served me
    well for over a decade (thanks Jeffrey Ratcliffe!).

    There are no SANE drivers available for the OKI scanner.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Lists on Fri Nov 8 17:20:02 2024
    Lists <[email protected]> wrote:
    On 2024-11-08 13:57, Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    songbird <[email protected]> wrote:
    Chris Green wrote:
    ...

    i haven't needed them and also haven't gotten into
    them.


    I'm particularly interested in a way to run (say) Debian Bullseye
    within my Debian Bookworm system. I'm looking for something slightly >>>>> 'lighter weight' than a full-blown virtual machine like virtualbox >>>>> though I guess I can use virtualbox if I have to.

    the easiest and lightest weight to me is just having
    another partition and booting that. no extra layers of
    anything needed at all.

    No use at all! :-) It's a scanner applet to drive my OKI scanner and
    I want the output to end up on my working system where I will use it
    in E-Mail or whatever.

    can you say what that scanner applet is?


    A VirtualBox instance running the old distro would work for me as you
    can share files between that an the 'parent' system but it really
    seems like overkill for running just one little app/program.

    At present the simplest solution for me seems to be to install the old >>> distro on a low-power consumption system and simply run the scanner
    utility via 'ssh -X' so that I can see it on my desktop screen. That
    does work OK, the only downside is the small extra bit of power
    consumption.

    it seems like that right now, but perhaps some poking
    around may come up with another way.

    I'm still poking! :-)


    is the constraint for the applet that it needs python 2?
    or?

    Basically yes, what makes it impossiblr to migrate to Python3 is that
    there is a .so file which is a python package built for Python 2,
    otherwise I would be quite happy to convert it all to Python 3.


    I am just a novice with Python (migrating from perl, which I have
    programmed in for more than 25 years), but wouldn't a Python Virtual Environment (venv) be just the thing for this? I've been tinkering with
    that in pycharm and it seems like it could do what you need.

    See https://docs.python.org/3/library/venv.html for more information.

    Well, yes, it sounds like it doesn't it. However, apparently, there
    are various things that prevent one from creating a python 2.x virtual environment on a system that has only Python 3.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Me@21:1/5 to Chris Green on Fri Nov 8 22:10:01 2024
    On 2024-11-08 16:51, Chris Green wrote:

    I am just a novice with Python (migrating from perl, which I have
    programmed in for more than 25 years), but wouldn't a Python Virtual
    Environment (venv) be just the thing for this? I've been tinkering with
    that in pycharm and it seems like it could do what you need.

    See https://docs.python.org/3/library/venv.html for more information.

    Well, yes, it sounds like it doesn't it. However, apparently, there
    are various things that prevent one from creating a python 2.x virtual environment on a system that has only Python 3.

    Ah, OK. Didn't realise that.

    Grx HdV

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lists@21:1/5 to Chris Green on Fri Nov 8 23:00:01 2024
    On 2024-11-08 16:51, Chris Green wrote:

    Well, yes, it sounds like it doesn't it. However, apparently, there
    are various things that prevent one from creating a python 2.x virtual environment on a system that has only Python 3.

    Not to be a bother, but did you look into pyenv en pyenv-installer?

    Here's a quote from their github page:

    "You can activate multiple versions at the same time, including multiple versions of Python2 or Python3 simultaneously. This allows for parallel
    usage of Python2 and Python3"

    That makes me think it should be possible to achieve what you need.

    See

    https://github.com/pyenv/pyenv

    and

    https://github.com/pyenv/pyenv-installer

    Grx HdV

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to Chris Green on Tue Nov 12 10:20:02 2024
    Chris Green <[email protected]> writes:

    But there is no Python 2 available for Debian 12...

    That's just what's in the package manager. Python source code is
    available and from that any Python version can be built. Pyenv is a tool
    which makes that easy.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Anssi Saari on Tue Nov 12 11:20:01 2024
    Anssi Saari <[email protected]> wrote:
    Chris Green <[email protected]> writes:

    But there is no Python 2 available for Debian 12...

    That's just what's in the package manager. Python source code is
    available and from that any Python version can be built. Pyenv is a tool which makes that easy.

    It's not just Python 2, it's a whole collection of supporting
    libraries as well. Yes, it *can* be done with pyenv but it's hardly a straightforward process.

    As it is, as I reported elsewhere, I have found a relatively simple
    way to do what I want using distrobox. It's probably rather more
    'heavyweight' in terms of resources used than pyenv would be but it's
    certainly very simple to get it working. The system I'm running it on
    is quite fast and well resourced so running what I need with:-

    distrobox enter ubuntu-18-02 -e <python2 GTK program>

    is 'instant' from the user point of view. The <python2 GTK program>
    just installed with no problems on the ubuntu18.04 image from the .deb
    file it came in.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)