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
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!
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?
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).
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.
[-- 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
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.
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'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.
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 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.
songbird <[email protected]> wrote:
Chris Green wrote:No use at all! :-) It's a scanner applet to drive my OKI scanner and
...
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.
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 wrote:
songbird <[email protected]> wrote:
Chris Green wrote:No use at all! :-) It's a scanner applet to drive my OKI scanner and
...
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.
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?
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.
songbird <[email protected]> wrote:
Chris Green wrote:I'm still poking! :-)
songbird <[email protected]> wrote:
Chris Green wrote:No use at all! :-) It's a scanner applet to drive my OKI scanner and
...
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.
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?Basically yes, what makes it impossiblr to migrate to Python3 is that
or?
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.
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!).
On 2024-11-08 13:57, Chris Green wrote:
songbird <[email protected]> wrote:
Chris Green wrote:I'm still poking! :-)
songbird <[email protected]> wrote:
Chris Green wrote:No use at all! :-) It's a scanner applet to drive my OKI scanner and
...
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.
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?Basically yes, what makes it impossiblr to migrate to Python3 is that
or?
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.
I am just a novice with Python (migrating from perl, which I haveWell, yes, it sounds like it doesn't it. However, apparently, there
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.
are various things that prevent one from creating a python 2.x virtual environment on a system that has only Python 3.
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.
But there is no Python 2 available for Debian 12...
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.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 157:04:37 |
| Calls: | 12,093 |
| Calls today: | 1 |
| Files: | 15,000 |
| Messages: | 6,517,746 |