• Re: Defeat Python "Virtual Environment" in Fedora ?

    From Lawrence D?Oliveiro@3:633/10 to All on Mon Mar 9 03:55:54 2026
    On Mon, 09 Mar 2026 02:47:51 GMT, Charlie Gibbs wrote:

    I did write a little Python program that played with the various GUI
    gadgets that it made available (with much less effort than doing it
    in C). It made me think that I could write something that my wife
    might actually be able to use. (I was careful to use Python 3, not
    2.) It would be nice if this remained a viable option; otherwise
    it's back to writing Yet Another C Program.

    C would only be better if you could somehow get by with fewer
    dependencies than with the Python equivalent. I?m not sure how you
    would manage that -- reinvent more of your own wheels, perhaps?

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Mon Mar 9 00:28:47 2026
    On 3/8/26 23:55, Lawrence D?Oliveiro wrote:
    On Mon, 09 Mar 2026 02:47:51 GMT, Charlie Gibbs wrote:

    I did write a little Python program that played with the various GUI
    gadgets that it made available (with much less effort than doing it
    in C). It made me think that I could write something that my wife
    might actually be able to use. (I was careful to use Python 3, not
    2.) It would be nice if this remained a viable option; otherwise
    it's back to writing Yet Another C Program.

    C would only be better if you could somehow get by with fewer
    dependencies than with the Python equivalent. I?m not sure how you
    would manage that -- reinvent more of your own wheels, perhaps?

    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Jon Ribbens@3:633/10 to All on Mon Mar 9 08:16:09 2026
    On 2026-03-09, c186282 <c186282@nnada.net> wrote:
    On 3/8/26 23:55, Lawrence D?Oliveiro wrote:
    On Mon, 09 Mar 2026 02:47:51 GMT, Charlie Gibbs wrote:
    I did write a little Python program that played with the various GUI
    gadgets that it made available (with much less effort than doing it
    in C). It made me think that I could write something that my wife
    might actually be able to use. (I was careful to use Python 3, not
    2.) It would be nice if this remained a viable option; otherwise
    it's back to writing Yet Another C Program.

    C would only be better if you could somehow get by with fewer
    dependencies than with the Python equivalent. I?m not sure how you
    would manage that -- reinvent more of your own wheels, perhaps?

    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    Python virtual environments do nothing whatsoever to stop you calling
    whatever you like with "os.system()". A Python "virtual environment"
    is simply a separate set of installed third-party library packages,
    to avoid conflicts between the packages used by your program and
    those used by other programs. You seem to be under the false impression
    that it's some sort of chroot/jail/sandbox, and it simply isn't.
    Python has no sandbox feature.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Mon Mar 9 13:59:42 2026
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    If you actually want someone to help solve your problem then you?ll have
    to accurately describe what you are trying and what is happening. In
    practice this means posting the exact code you are using and exactly
    what happens when you run it.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tue Mar 10 02:49:19 2026
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean
    and easy pre-VENV now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine'
    unless you PLAN to isolate the base machine from
    the application to various degrees.

    If you actually want someone to help solve your problem then you?ll have
    to accurately describe what you are trying and what is happening. In
    practice this means posting the exact code you are using and exactly
    what happens when you run it.

    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    Or do I have to go back to 2020 versions of Linux ?


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Tue Mar 10 08:47:25 2026
    c186282 <c186282@nnada.net> writes:
    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    You?ve not reported anything actionable. Some stuff doesn?t work from
    your script, well so what? Without seeing concrete details, nobody can
    tell whether there?s a real behavior change there or just a bug in your
    script. Since it all works fine for everyone else, the working
    assumption is the latter.

    I want the VENV *dead* ... CAN that be done ???

    The answer to that has already been posted: if you are in a venv and
    don?t want to be, just type ?deactivate?.

    Or do I have to go back to 2020 versions of Linux ?

    venvs have been around for something like 15 years, so if the problem
    was really venvs then dialing back to 2020 is unlikely to make a
    difference.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tue Mar 10 06:14:25 2026
    On 3/10/26 04:47, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    You?ve not reported anything actionable.
    Then don't waste your time.

    A report is a report.

    If others experience the same issues maybe
    they will go deeper into it, or not.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Tue Mar 10 14:55:34 2026
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean
    and easy pre-VENV now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine'
    unless you PLAN to isolate the base machine from
    the application to various degrees.

    If you actually want someone to help solve your problem then you?ll have
    to accurately describe what you are trying and what is happening. In
    practice this means posting the exact code you are using and exactly
    what happens when you run it.

    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    And, again, much as Jon said, you are blaming "venv's" but given us no examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python than
    you do, something to analyze and maybe show you where the problem
    really exists.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tue Mar 10 13:03:49 2026
    On 3/10/26 10:55, Rich wrote:
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean
    and easy pre-VENV now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine'
    unless you PLAN to isolate the base machine from
    the application to various degrees.

    If you actually want someone to help solve your problem then you?ll have >>> to accurately describe what you are trying and what is happening. In
    practice this means posting the exact code you are using and exactly
    what happens when you run it.

    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    And, again, much as Jon said, you are blaming "venv's" but given us no examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python than
    you do, something to analyze and maybe show you where the problem
    really exists.

    Can't figure out how to zap the VENV in order
    to provide the examples you'd like :-)

    Seems like, of late, it's entirely baked-in -
    Python is the VENV and the VENV is Python.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Jon Ribbens@3:633/10 to All on Tue Mar 10 17:09:21 2026
    On 2026-03-10, c186282 <c186282@nnada.net> wrote:
    On 3/10/26 10:55, Rich wrote:
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean
    and easy pre-VENV now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine'
    unless you PLAN to isolate the base machine from
    the application to various degrees.

    If you actually want someone to help solve your problem then you?ll have >>>> to accurately describe what you are trying and what is happening. In
    practice this means posting the exact code you are using and exactly
    what happens when you run it.

    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    And, again, much as Jon said, you are blaming "venv's" but given us no
    examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python than
    you do, something to analyze and maybe show you where the problem
    really exists.

    Can't figure out how to zap the VENV in order
    to provide the examples you'd like :-)

    Seems like, of late, it's entirely baked-in -
    Python is the VENV and the VENV is Python.

    This not only isn't true, it cannot be true, because *by definition*
    if the environment you're seeing is the same one Python always sees
    then it isn't a "virtual" environment, it's the system environment.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Tue Mar 10 17:56:03 2026
    c186282 <c186282@nnada.net> writes:
    On 3/10/26 10:55, Rich wrote:
    And, again, much as Jon said, you are blaming "venv's" but given us
    no examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python
    than you do, something to analyze and maybe show you where the
    problem really exists.

    To do that they would have to want their problem to be solved, rather
    than to have something external to blame for it.

    Can't figure out how to zap the VENV in order
    to provide the examples you'd like :-)

    You?ve already been told how to exit a venv twice.

    Seems like, of late, it's entirely baked-in -
    Python is the VENV and the VENV is Python.

    It is not.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Tue Mar 10 18:13:38 2026
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/10/26 10:55, Rich wrote:
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean and easy pre-VENV
    now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine' unless you
    PLAN to isolate the base machine from the application to various
    degrees.

    If you actually want someone to help solve your problem then
    you?ll have to accurately describe what you are trying and what is
    happening. In practice this means posting the exact code you are
    using and exactly what happens when you run it.

    Too fuckin' old now, not gonna get into a million details and
    sub-sub-sub-config-files. I just report that some lower-level
    OS commands no longer work as expected, or at all, using the
    usual Python utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    And, again, much as Jon said, you are blaming "venv's" but given us
    no examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python
    than you do, something to analyze and maybe show you where the
    problem really exists.

    Can't figure out how to zap the VENV in order to provide the
    examples you'd like :-)

    In that case, how about a very simple example that fails, for you, so
    the others here (Jon, etc.) can show you what you screwed up?

    I predict no such example will be posted, since you seem to want to
    bitch and complain about things you don't want to understand more than
    you want to know why your system call isn't working.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Piergiorgio Sartor@3:633/10 to All on Tue Mar 10 19:14:26 2026
    On 10/03/2026 18.03, c186282 wrote:
    [...]
    ˙ Can't figure out how to zap the VENV in order
    ˙ to provide the examples you'd like˙ :-)

    There are the following possibilities here:
    1) You didn't properly get what a venv is in Python
    2) You're trolling.

    Assuming 1), the venv is nothing more that a
    search path change, for Python programs and
    modules. Where, instead of looking first into
    the system folders, first is searched in the
    venv "repository" area.
    Nothing more, nothing less.

    So, what do you want to "zap"?
    There is nothing to "zap"...
    Unless for "zapping" you meaning something
    different. In case, please specify.

    ˙ Seems like, of late, it's entirely baked-in -
    ˙ Python is the VENV and the VENV is Python.

    Non clear what this means, but maybe is the
    same written above.

    bye,

    --

    piergiorgio

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Wed Mar 11 02:48:33 2026
    On 3/10/26 13:09, Jon Ribbens wrote:
    On 2026-03-10, c186282 <c186282@nnada.net> wrote:
    On 3/10/26 10:55, Rich wrote:
    In comp.os.linux.misc c186282 <c186282@nnada.net> wrote:
    On 3/9/26 09:59, Richard Kettlewell wrote:
    c186282 <c186282@nnada.net> writes:
    The Python VENV *seems* to be thwarting my
    ability to run certain hard-core system
    routines via "os.system()" or related. The
    'virtual' seems to be for idiot 7-year-olds
    you don't want to crash the box.

    Well, sometimes, I *want* to crash the box.

    As Jon says, you?ve misdiagnosed your problem.

    COULD be ...

    But I still note that things that worked clean
    and easy pre-VENV now DON'T.

    Who/what should I blame ?

    There's no POINT in a 'virtual environment/machine'
    unless you PLAN to isolate the base machine from
    the application to various degrees.

    If you actually want someone to help solve your problem then you?ll have >>>>> to accurately describe what you are trying and what is happening. In >>>>> practice this means posting the exact code you are using and exactly >>>>> what happens when you run it.

    Too fuckin' old now, not gonna get into a million
    details and sub-sub-sub-config-files. I just report
    that some lower-level OS commands no longer work
    as expected, or at all, using the usual Python
    utilities for doing so.

    I want the VENV *dead* ... CAN that be done ???

    And, again, much as Jon said, you are blaming "venv's" but given us no
    examples to support your assertion. It is *very likely* that you
    indeed are blaming the wrong thing. How about creating a very short
    example that works without a venv but fails within one, and posting
    that example. That will give others, who may know far more python than
    you do, something to analyze and maybe show you where the problem
    really exists.

    Can't figure out how to zap the VENV in order
    to provide the examples you'd like :-)

    Seems like, of late, it's entirely baked-in -
    Python is the VENV and the VENV is Python.

    This not only isn't true, it cannot be true, because *by definition*
    if the environment you're seeing is the same one Python always sees
    then it isn't a "virtual" environment, it's the system environment.


    OK, tomorrow, HOW do I start a Py3 that's NOT in
    the VENV ???

    Go ahead, search - I have. All the 'fixes' don't
    work anymore.

    Many say "no problem" - yet NO current workarounds.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Wed Mar 11 08:40:36 2026
    c186282 <c186282@nnada.net> writes:
    On 3/10/26 13:09, Jon Ribbens wrote:
    On 2026-03-10, c186282 <c186282@nnada.net> wrote:
    Can't figure out how to zap the VENV in order
    to provide the examples you'd like :-)

    Seems like, of late, it's entirely baked-in -
    Python is the VENV and the VENV is Python.
    This not only isn't true, it cannot be true, because *by definition*
    if the environment you're seeing is the same one Python always sees
    then it isn't a "virtual" environment, it's the system environment.

    OK, tomorrow, HOW do I start a Py3 that's NOT in
    the VENV ???

    You?ve been told how to exit venvs more than once. If you can?t follow
    simple instructions, that?s a problem with you, not Python.

    Go ahead, search - I have. All the 'fixes' don't
    work anymore.

    Many say "no problem" - yet NO current workarounds.

    Multiple people are trying to help you, for increasingly opaque
    reasons. You?ll get nowhere until you actually start following their
    advice.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Jon Ribbens@3:633/10 to All on Wed Mar 11 11:58:33 2026
    On 2026-03-11, c186282 <c186282@nnada.net> wrote:
    On 3/10/26 13:09, Jon Ribbens wrote:
    This not only isn't true, it cannot be true, because *by definition*
    if the environment you're seeing is the same one Python always sees
    then it isn't a "virtual" environment, it's the system environment.

    OK, tomorrow, HOW do I start a Py3 that's NOT in
    the VENV ???

    On any normal system, you type "python3".

    Go ahead, search - I have. All the 'fixes' don't
    work anymore.

    Many say "no problem" - yet NO current workarounds.

    The problem is you've consistently refused to explain why you think
    it is in a "VENV", and what you actually mean by that.

    Here's a guess: did you install python using dnf, snap or flatpak,
    or something else? If you type "which python3", what does it say?

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From mm0fmf@3:633/10 to All on Wed Mar 11 17:14:10 2026
    On 10/03/2026 18:14, Piergiorgio Sartor wrote:
    2) You're trolling.

    My money is on this option.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Wed Mar 11 20:19:35 2026
    On 3/10/26 18:14, Piergiorgio Sartor wrote:
    On 10/03/2026 18.03, c186282 wrote:
    [...]
    ˙˙ Can't figure out how to zap the VENV in order
    ˙˙ to provide the examples you'd like˙ :-)

    There are the following possibilities here:
    1) You didn't properly get what a venv is in Python
    2) You're trolling.

    Assuming 1), the venv is nothing more that a
    search path change, for Python programs and
    modules. Where, instead of looking first into
    the system folders, first is searched in the
    venv "repository" area.
    Nothing more, nothing less.


    My understanding is different. My understanding is that a venv only uses packages installed locally in the venv. It shouldn't default to a
    global package if it is not found in the venv.

    (caveat: it may use default site installed packages if told to do so).

    This is very much what I would want. I would want my python app to work independently of some eccentricity of the machine I develop on. I
    suspect if I were still a developer I would go further and use
    snaps,flatpak, or docker containers.




    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Piergiorgio Sartor@3:633/10 to All on Wed Mar 11 21:51:15 2026
    On 11/03/2026 21.19, Pancho wrote:
    [...]
    My understanding is different. My understanding is that a venv only uses packages installed locally in the venv.˙ It shouldn't default to a
    global package if it is not found in the venv.

    This happened to me, so I removed almost
    all (non critical) system packages.

    (caveat: it may use default site installed packages if told to do so).

    Maybe it was my initial setup like this.

    In any case, what I wanted to say is that
    the venv is not like a virtual machine,
    but just a different module search order.

    bye,

    --

    piergiorgio

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Wed Mar 11 21:35:04 2026
    On Wed, 11 Mar 2026 20:19:35 +0000, Pancho wrote:

    I would want my python app to work independently of some
    eccentricity of the machine I develop on.

    Better still, document your dependencies, and include a list of them
    in the installation procedure for your app.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Nuno Silva@3:633/10 to All on Thu Mar 12 10:39:42 2026
    On 2026-03-11, Pancho wrote:

    On 3/10/26 18:14, Piergiorgio Sartor wrote:
    On 10/03/2026 18.03, c186282 wrote:
    [...]
    ˙˙ Can't figure out how to zap the VENV in order
    ˙˙ to provide the examples you'd like˙ :-)

    There are the following possibilities here:
    1) You didn't properly get what a venv is in Python
    2) You're trolling.

    Assuming 1), the venv is nothing more that a
    search path change, for Python programs and
    modules. Where, instead of looking first into
    the system folders, first is searched in the
    venv "repository" area.
    Nothing more, nothing less.


    My understanding is different. My understanding is that a venv only
    uses packages installed locally in the venv. It shouldn't default to
    a global package if it is not found in the venv.

    I guess the other view is to allow package management to exist and work,
    and using venvs only for what can't be managed by the package manager...

    (caveat: it may use default site installed packages if told to do so).

    ... but then I guess that's what stuff managed by the package manager
    ends up as?

    This is very much what I would want. I would want my python app to
    work independently of some eccentricity of the machine I develop on. I suspect if I were still a developer I would go further and use
    snaps,flatpak, or docker containers.

    At this point, why not also use static linking?

    --
    Nuno Silva
    (not reading comp.lang.python)

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Gilmeh Serda@3:633/10 to All on Fri Mar 13 06:07:00 2026
    On Wed, 11 Mar 2026 08:40:36 +0000, Richard Kettlewell wrote:

    that?s a problem with you

    That moron you are replying to is a windrone. It can't learn, it needs its clickety-click-click-click GUI to make sense of the simplest of tasks.

    See also:
    THBNATCCH (Thick Headed Baboon No Amount of Typewriters Can Cure Him)

    Don't engage, KF and desist, it'll eventually go away.

    Follow-up set to:
    alt.extreme-one.lameass.troll (that's probably his birthplace)

    --
    Gilmeh

    Gee, I feel kind of LIGHT in the head now, knowing I can't make my
    satellite dish PAYMENTS!

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Fri Mar 13 09:34:06 2026
    On 3/12/26 10:39, Nuno Silva wrote:
    On 2026-03-11, Pancho wrote:

    On 3/10/26 18:14, Piergiorgio Sartor wrote:
    On 10/03/2026 18.03, c186282 wrote:
    [...]
    ˙˙ Can't figure out how to zap the VENV in order
    ˙˙ to provide the examples you'd like˙ :-)

    There are the following possibilities here:
    1) You didn't properly get what a venv is in Python
    2) You're trolling.

    Assuming 1), the venv is nothing more that a
    search path change, for Python programs and
    modules. Where, instead of looking first into
    the system folders, first is searched in the
    venv "repository" area.
    Nothing more, nothing less.


    My understanding is different. My understanding is that a venv only
    uses packages installed locally in the venv. It shouldn't default to
    a global package if it is not found in the venv.

    I guess the other view is to allow package management to exist and work,
    and using venvs only for what can't be managed by the package manager...


    I want my programs to work on different machines, and to continue to
    work over time. I don't care how that happens, maybe you can achieve
    that with package managers. The problem is a quick Goole tells me DLL
    Hell was solved with assemblies, so my nightmares with the GAC must have
    been an illusion.

    In effect, it might be true, but I'll take that with a pinch of salt. I
    often find Python apps have problems, so it seems other people have
    problems too.



    (caveat: it may use default site installed packages if told to do so).

    ... but then I guess that's what stuff managed by the package manager
    ends up as?

    This is very much what I would want. I would want my python app to
    work independently of some eccentricity of the machine I develop on. I
    suspect if I were still a developer I would go further and use
    snaps,flatpak, or docker containers.

    At this point, why not also use static linking?


    I remember being excited by .so files in Solaris, circa 1994, about the
    time I bought a 1GB hdd. i.e. Storage constraints have changed.

    Also, there have been a lot of os (running environment) advances with
    respect to sharing duplicated stored data. Mainly I don't want to know,
    it is something a computer can manage better than I can. I just don't
    want applications built on quicksand libraries.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Fri Mar 13 21:49:10 2026
    On Fri, 13 Mar 2026 09:34:06 +0000, Pancho wrote:

    I just don't want applications built on quicksand libraries.

    Depending on someone else?s library saves you effort. But then someone
    else has to maintain the library.

    Ever felt you could do with some help from those using a piece of
    software you release? Those whose work you rely on feel the same way.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Fri Mar 13 23:28:04 2026
    On 3/13/26 21:49, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 09:34:06 +0000, Pancho wrote:

    I just don't want applications built on quicksand libraries.

    Depending on someone else?s library saves you effort. But then someone
    else has to maintain the library.


    Yeah, I don't know what point you are making?


    Ever felt you could do with some help from those using a piece of
    software you release? Those whose work you rely on feel the same way.

    Help from the people who used my software? Sometimes I used to do my
    work amongst them, sit next to them, all day long, every day, just so I
    could spy on what they did. They wouldn't just tell me. If I was helpful
    they would ask me to do stuff, invest some time in explaining stuff to me.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Sat Mar 14 01:17:43 2026
    On Fri, 13 Mar 2026 23:28:04 +0000, Pancho wrote:

    On 3/13/26 21:49, Lawrence D?Oliveiro wrote:

    On Fri, 13 Mar 2026 09:34:06 +0000, Pancho wrote:

    I just don't want applications built on quicksand libraries.

    Depending on someone else?s library saves you effort. But then someone
    else has to maintain the library.

    Yeah, I don't know what point you are making?

    You used the term ?quicksand?. Some may look on your code the same
    way.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Sat Mar 14 03:21:31 2026
    On 3/13/26 19:28, Pancho wrote:
    On 3/13/26 21:49, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 09:34:06 +0000, Pancho wrote:

    I just don't want applications built on quicksand libraries.

    Depending on someone else?s library saves you effort. But then someone
    else has to maintain the library.


    Yeah, I don't know what point you are making?


    I sort of understand ... but, frankly, it is
    totally impractical to do ALL of your own
    code/libraries. 'C' came with a bunch, which
    rapidly became more numerous. Good Programmers
    wrote these and most serve VERY well for
    decades.

    Other langs follow this same pattern. Unless
    you're insane, and on huge doses of amphetamines,
    it is just not practical to do it ALL yourself.

    Hey, wanna write big apps in ASM ? Kinda DID that
    around the dawn of the PC era ... kinda fun then,
    but would NOT wanna try it now. Shouldn't HAVE to.


    Ever felt you could do with some help from those using a piece of
    software you release? Those whose work you rely on feel the same way.

    Help from the people who used my software? Sometimes I used to do my
    work amongst them, sit next to them, all day long, every day, just so I could spy on what they did. They wouldn't just tell me. If I was helpful they would ask me to do stuff, invest some time in explaining stuff to me.

    Of note ... 'software'/'environments' change FAST
    these days - not always for the best.

    And, frankly, HUMAN programmers are becoming a
    niche occupation. The pointy-haired bosses will
    use 'AI' to write/do things - until THEY also
    become obsolete :-)


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Sat Mar 14 12:23:13 2026
    On 14/03/2026 07:21, c186282 wrote:
    On 3/13/26 19:28, Pancho wrote:
    On 3/13/26 21:49, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 09:34:06 +0000, Pancho wrote:

    I just don't want applications built on quicksand libraries.

    Depending on someone else?s library saves you effort. But then someone
    else has to maintain the library.


    Yeah, I don't know what point you are making?


    ˙ I sort of understand ... but, frankly, it is
    ˙ totally impractical to do ALL of your own
    ˙ code/libraries. 'C' came with a bunch, which
    ˙ rapidly became more numerous. Good Programmers
    ˙ wrote these and most serve VERY well for
    ˙ decades.

    I wrote libc and stdlib in assembler, from scratch.
    My printf was a bit limited, I will admit


    ˙ Other langs follow this same pattern. Unless
    ˙ you're insane, and on huge doses of amphetamines,
    ˙ it is just not practical to do it ALL yourself.

    The original Unix boys did tho

    ˙ Hey, wanna write big apps in ASM ? Kinda DID that
    ˙ around the dawn of the PC era ... kinda fun then,
    ˙ but would NOT wanna try it now. Shouldn't HAVE to.


    Not heard of macro assembler?



    --
    The lifetime of any political organisation is about three years before
    its been subverted by the people it tried to warn you about.

    Anon.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)