• Defeat Python "Virtual Environment" in Fedora ?

    From c186282@3:633/10 to All on Sunday, March 08, 2026 05:31:16
    Hmmmmm ....

    F43

    Trying to do basic 'system' commands - like 'reboot'
    or 'kill' and even running root shell scripts as
    root .....

    Alas Python is no longer "real" ... lives in a
    horrible "virtual environment" that seems to lock
    out a lot of useful stuff "for your safety".

    There SHOULD be a CL option "python3 -NVE" or
    whatever to totally disable the VE. There isn't.

    Been searching ... NO fixes that actually WORK
    worth a damn. "disable" - is that something you
    have to do in a CL evocation ? No such command
    in the real Linux system. Sorry, I write Python
    scripts that are NOT ultra-transient - saved pgms.

    Do I have to go to Pascal/'C' again just to Get
    Stuff Done ??? I will if necessary.

    What a WASTE of an otherwise good language ... what
    kind of MORONS did the org hire ???????

    Did try "PyPy" ... but there are a number of lib
    differences - first bitch was that there's no
    ".isnumeric" thing. But, is PyPy the way to go now ?
    I can write an "isnumeric" easily enough ...


    --- 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 Sunday, March 08, 2026 19:54:49
    rbowman <bowman@montana.com> writes:
    On Sun, 8 Mar 2026 05:31:16 -0400, c186282 wrote:
    Alas Python is no longer "real" ... lives in a horrible "virtual
    environment" that seems to lock out a lot of useful stuff "for your
    safety".

    I started using venvs long ago but it is getting more painful. One thing I've started doing is

    If c186282 actually means venvs, and doesn?t want to be in one, then ?deactivate? is all they need.

    However, the idea that Fedora 43 pushes Python into a venv by default
    does not pass the sniff test (and doesn?t seem to be true in the
    container image, which has what looks like a perfectly normal Python
    3.14).

    Perhaps they have confused it with something else.

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

    --- 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 Sunday, March 08, 2026 22:05:37
    rbowman <bowman@montana.com> writes:
    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt
    to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override
    the restriction if appropriate.

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

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Charlie Gibbs@3:633/10 to All on Monday, March 09, 2026 00:27:02
    On 2026-03-08, Richard Kettlewell <invalid@invalid.invalid> wrote:

    rbowman <bowman@montana.com> writes:

    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt
    to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override
    the restriction if appropriate.

    This thread has been making my eyes glaze over. I was thinking of
    writing a small utility in Python to get to know the language, but
    this discussion is scaring me off. To quote the old Depression-era
    saying: "Is this trip really necessary?"

    --
    /~\ Charlie Gibbs | Growth for the sake of
    \ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
    X I'm really at ac.dekanfrus | of the cancer cell.
    / \ if you read it the right way. | -- Edward Abbey

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Sunday, March 08, 2026 21:14:00
    On 3/8/26 20:27, Charlie Gibbs wrote:
    On 2026-03-08, Richard Kettlewell <invalid@invalid.invalid> wrote:

    rbowman <bowman@montana.com> writes:

    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt
    to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override
    the restriction if appropriate.

    This thread has been making my eyes glaze over. I was thinking of
    writing a small utility in Python to get to know the language, but
    this discussion is scaring me off. To quote the old Depression-era
    saying: "Is this trip really necessary?"

    At some point the 'idealists' can degrade and ruin
    a perfectly good thing. The idea of a Python VE is
    a stone on this road to ruin.

    Oh well, I've done a lot of Pascal and 'C' ... so
    as needed I can go there. Python IS super handy
    however and has a a lib for everything.


    --- 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 Monday, March 09, 2026 01:36:55
    On Mon, 09 Mar 2026 00:27:02 GMT, Charlie Gibbs wrote:

    This thread has been making my eyes glaze over. I was thinking of
    writing a small utility in Python to get to know the language, but
    this discussion is scaring me off. To quote the old Depression-era
    saying: "Is this trip really necessary?"

    I think these people are using lots of custom packages not available
    in the standard distro repos. I haven?t found much need for that
    (except for Jupyter, which is a bit of a monster, so I install it into
    its own virtualenv). In the code I write for myself or for a customer,
    I try to keep external nonstandard dependences to a minimum.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Sunday, March 08, 2026 22:11:42
    On 3/8/26 21:34, rbowman wrote:
    On Sun, 08 Mar 2026 22:05:37 +0000, Richard Kettlewell wrote:

    rbowman <bowman@montana.com> writes:
    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt
    to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override
    the restriction if appropriate.

    I've gotten used to it and don't find it cumbersome but I also use dotnet, express, arduino_cli that generate the skeleton of a project.

    I've never tried a package that Fedora wants to install to the user's
    space. Arch generates an error similar to the Ubuntu one. ruff isn't a
    good test on either of those since both distros have a python-ruff package that can be installed with dnf or pacman. I don't know why Ubuntu doesn't since ruff is a general purpose tool like black. The PEP does say distros roll their own. As the distros use more Python behind the scenes they have
    a real interest in people not randomly installing to the system packages.

    I fired up the Leap 16 VM and it gives the same external message as
    Fedora. 'sudo zypper install python3-ruff' works on that too.

    There may still be more forgiving distros but with the Debian, Arch,
    Fedora, and SUSE families working mostly the same I think C12345 better embrace venv.


    Oddly, in the huge net universe, I can't seem to
    find a good clean generic way to DEFEAT the venv,
    not even for Linux. Most advice mentions CL shit
    that doesn't work/exist.

    Oh, can't "embrace" what THWARTS my needs.

    Back to Wirth and K&R ......


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Charlie Gibbs@3:633/10 to All on Monday, March 09, 2026 02:47:51
    On 2026-03-09, c186282 <c186282@nnada.net> wrote:

    On 3/8/26 20:27, Charlie Gibbs wrote:

    On 2026-03-08, Richard Kettlewell <invalid@invalid.invalid> wrote:

    rbowman <bowman@montana.com> writes:

    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt
    to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override >>> the restriction if appropriate.

    This thread has been making my eyes glaze over. I was thinking of
    writing a small utility in Python to get to know the language, but
    this discussion is scaring me off. To quote the old Depression-era
    saying: "Is this trip really necessary?"

    At some point the 'idealists' can degrade and ruin
    a perfectly good thing. The idea of a Python VE is
    a stone on this road to ruin.

    Oh well, I've done a lot of Pascal and 'C' ... so
    as needed I can go there. Python IS super handy
    however and has a a lib for everything.

    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.

    --
    /~\ Charlie Gibbs | Growth for the sake of
    \ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
    X I'm really at ac.dekanfrus | of the cancer cell.
    / \ if you read it the right way. | -- Edward Abbey

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Monday, March 09, 2026 02:59:55
    Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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.

    Not necessarially. If the "GUI gadgets" were from the Tkinter package,
    then the GUI gadgets were actually Tk widgets from the TCL world. So
    you could also sidestep all the python venv silliness by writing that
    GUI in TCL instead (and if it's just calling out to other programs to
    do the real work, the amount of TCL necessary to glue a GUI to another
    program is small).

    --- 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 Monday, March 09, 2026 03:55:54
    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 Monday, March 09, 2026 00:03:18
    On 3/8/26 22:47, Charlie Gibbs wrote:
    On 2026-03-09, c186282 <c186282@nnada.net> wrote:

    On 3/8/26 20:27, Charlie Gibbs wrote:

    On 2026-03-08, Richard Kettlewell <invalid@invalid.invalid> wrote:

    rbowman <bowman@montana.com> writes:

    You don't necessarily have to use a venv if what you're doing is
    covered by the standard Python packages but there is a strong attempt >>>>> to herd you into a venv.

    The design seems better than defaulting to getting into a ?duelling
    packaging systems? mess, and looks like it?s straightforward to override >>>> the restriction if appropriate.

    This thread has been making my eyes glaze over. I was thinking of
    writing a small utility in Python to get to know the language, but
    this discussion is scaring me off. To quote the old Depression-era
    saying: "Is this trip really necessary?"

    At some point the 'idealists' can degrade and ruin
    a perfectly good thing. The idea of a Python VE is
    a stone on this road to ruin.

    Oh well, I've done a lot of Pascal and 'C' ... so
    as needed I can go there. Python IS super handy
    however and has a a lib for everything.

    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.


    I've written 5000 line Python apps ... one
    smart backup app maybe a bit longer. It is
    a very versatile lang, mostly self-documenting,
    plus tons and tons of online doc/examples.

    But they seem to be ruining it ....


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Monday, March 09, 2026 00:23:47
    On 3/8/26 22:59, Rich wrote:
    Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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.

    Not necessarially. If the "GUI gadgets" were from the Tkinter package,
    then the GUI gadgets were actually Tk widgets from the TCL world. So
    you could also sidestep all the python venv silliness by writing that
    GUI in TCL instead (and if it's just calling out to other programs to
    do the real work, the amount of TCL necessary to glue a GUI to another program is small).

    TK is not 'sophisticated', but it WORKS - and, once
    you get a couple of nuances, works very logically.
    A very useful thing is a 'timer/engine' function
    so you can do stuff async without relying on
    immediate user input. I had one app with tons
    of time-dependent functions ... all handled
    by a big "if xCounter>secs" construct. The
    app collected weather, radar, security cams
    and even had a news scroll ... touch to enlarge
    various bits of data. Stuck it in a public
    place in my office ... dunno how many actually
    looked at it but it WAS all there at the
    literal fingertip.

    All ran on a Pi4 stuck to a little monitor.

    The new guy couldn't program six lines of Python
    or much anything else ... he probably trashed
    the thing. Still have the code somewhere.

    DID find that once you create a window it's best
    not to keep deleting/recreating ... just set the
    coords well off-screen and then bring them back
    on-screen when needed. This worked super well for
    that touch-screen app I wrote. Alas, a few TK uses
    do use the horrible evil "lambda" :-)

    QT/GTK stuff ... more complicated. Same stuff, but
    a lot harder to write and with crappier online
    docs. Dunno why some think it's "superior" to TK.
    MAYbe a bit faster, but is that worth the pain ?

    Anyway, for Python I'll stick with TK. For most
    other GUI apps I'll use Lazarus.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Monday, March 09, 2026 00:28:47
    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 Monday, March 09, 2026 08:16:09
    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 Nuno Silva@3:633/10 to All on Monday, March 09, 2026 09:45:53
    On 2026-03-09, rbowman wrote:

    On Sun, 8 Mar 2026 21:14:00 -0400, c186282 wrote:

    At some point the 'idealists' can degrade and ruin a perfectly good
    thing. The idea of a Python VE is a stone on this road to ruin.

    I disagree. VEs save you from the equivalent of dll hell someplace down
    the road. Dotnet, Angular, Node, and others are similar now. Your project encapsulates the dependencies it needs. Another project may require different versions. For example with node anything you install for the project goes into node_modules and package.json has the dependencies for that project:

    "dependencies": {
    "cookie-parser": "~1.4.4",
    "debug": "~2.6.9",
    "express": "^4.21.2",
    "fs": "^0.0.1-security",
    "leaflet": "^1.9.4",
    "leaflet-gpx": "^2.2.0",
    "morgan": "~1.9.1"
    }

    But these dependencies can still be installed through the package
    manager, if shipped there, can't they?

    --
    Nuno Silva

    --- 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 Monday, March 09, 2026 13:59:42
    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 Charlie Gibbs@3:633/10 to All on Monday, March 09, 2026 16:34:52
    On 2026-03-09, rbowman <bowman@montana.com> 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.

    Stick to tkinter and you *should* be good. I say should because 'import tkinter' works on Mint, Ubuntu, and Fedora. On Leap you'd have to do
    'zypper install python-tk' but it would then be global. Arch says it's python isn't configured for Tk.

    My little test program uses tkinter, and runs fine on Debian Bookworm.
    Looks like a good start...

    --
    /~\ Charlie Gibbs | Growth for the sake of
    \ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
    X I'm really at ac.dekanfrus | of the cancer cell.
    / \ if you read it the right way. | -- Edward Abbey

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tuesday, March 10, 2026 02:38:48
    On 3/9/26 12:34, Charlie Gibbs wrote:
    On 2026-03-09, rbowman <bowman@montana.com> 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.

    Stick to tkinter and you *should* be good. I say should because 'import
    tkinter' works on Mint, Ubuntu, and Fedora. On Leap you'd have to do
    'zypper install python-tk' but it would then be global. Arch says it's
    python isn't configured for Tk.

    My little test program uses tkinter, and runs fine on Debian Bookworm.
    Looks like a good start...

    TK can do a LOT of stuff ... more than good enough
    for complex touchscreen apps and such. User-driven
    and timer-driven ops are possible.

    TK is a little more plain and simple than GTK/QT
    "solutions" and much better documented. If I need
    a Python GUI I'll still use TK.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tuesday, March 10, 2026 02:49:19
    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 Tuesday, March 10, 2026 08:47:25
    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 Tuesday, March 10, 2026 06:14:25
    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 c186282@3:633/10 to All on Tuesday, March 10, 2026 06:21:17
    On 3/9/26 04:41, rbowman wrote:
    On Sun, 8 Mar 2026 21:14:00 -0400, c186282 wrote:

    At some point the 'idealists' can degrade and ruin a perfectly good
    thing. The idea of a Python VE is a stone on this road to ruin.

    I disagree. VEs save you from the equivalent of dll hell someplace down
    the road. Dotnet, Angular, Node, and others are similar now. Your project encapsulates the dependencies it needs. Another project may require
    different versions. For example with node anything you install for the project goes into node_modules and package.json has the dependencies for
    that project:

    "dependencies": {
    "cookie-parser": "~1.4.4",
    "debug": "~2.6.9",
    "express": "^4.21.2",
    "fs": "^0.0.1-security",
    "leaflet": "^1.9.4",
    "leaflet-gpx": "^2.2.0",
    "morgan": "~1.9.1"
    }

    Hmmm ... Python worked GREAT *before* the VENV ...
    no 'hell'.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Tuesday, March 10, 2026 14:55:34
    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 Pancho@3:633/10 to All on Tuesday, March 10, 2026 15:02:03
    On 3/9/26 08:41, rbowman wrote:
    On Sun, 8 Mar 2026 21:14:00 -0400, c186282 wrote:

    At some point the 'idealists' can degrade and ruin a perfectly good
    thing. The idea of a Python VE is a stone on this road to ruin.

    I disagree. VEs save you from the equivalent of dll hell someplace down
    the road.
    +1.

    I hate to think how much time I have wasted on environment. Many
    projects I worked on took days fix configuration when onboarding a new programmer.

    Even a cursory read of this thread suggests the reason the venv doesn't
    work is because of a poorly understood environment.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tuesday, March 10, 2026 13:03:49
    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 Tuesday, March 10, 2026 17:09:21
    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 Tuesday, March 10, 2026 17:56:03
    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 Tuesday, March 10, 2026 18:13:38
    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 Tuesday, March 10, 2026 19:14:26
    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 Wednesday, March 11, 2026 02:48:33
    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 c186282@3:633/10 to All on Wednesday, March 11, 2026 04:20:07
    On 3/10/26 14:24, rbowman wrote:
    On Tue, 10 Mar 2026 06:21:17 -0400, c186282 wrote:

    Hmmm ... Python worked GREAT *before* the VENV ...
    no 'hell'.

    Until it didn't. The install of the Esri desktop included a Python2.7 directory that had Python with their secret sauce added. It did not play
    well if you had Python from python.org installed. When they finally
    migrated to Python 3 they used conda for the installation. That REALLY
    didn't play well.

    Then there was ActiveState Python, originally designed for Windows with packages to leverage the Windows API. They also had a Perl installation.

    Sure, you could use Python casually and not run into any problems. You
    still can if you don't want packages that aren't included in the distro's site-packages.

    Well, 2.7 was a LONG time ago. I'm talking
    the latest 3.x

    Hmmm ... maybe I need to install Py2 ? :-)

    Keep hearing "no prob" - yet NO handy solutions
    for starting/running Py3 outside the VENV.

    Oh well, starting on some Free Pascal alts
    for some of my Py apps. Has to be done - and
    I don't mind Pascal one bit though Python IS
    more friendly with slicing strings and such.

    Oh, weird, that ffmpeg prob that started all
    these threads ... still exists in F43. You
    can only start it SO many times, then it
    hangs or won't start right. SOME error msgs
    about a 'transport' error - maybe ffmpeg
    loses track of the ip cam for a few secs
    every so often. Tried a few suggested buffer
    fixes ... don't work. And, oddly, the prob
    remains most prominent during certain hours
    of the day, like someone screwed up some
    time/date code within ffmpeg.

    Best current 'fix' - start ffmpeg as an
    independent process, just add a "&" to the
    command line, and a sleep statement for a
    little longer than it's supposed to run.
    Finally - os.execv() to restart the pgm
    in-place beats internal looping or letting
    it drop with systemd restarting.

    Oh, 'os.execv()' ... the docs do NOT really
    describe how to evoke it ... the syntax is
    very weird. Seek working examples online.

    Attempting 'os.exec("sudo killall -9 ffmpeg")'
    after each cycle, but that seems to be one of
    the system things the VENV won't pass properly.
    Works perfectly from a real CL, but not from
    within the Py app.


    --- 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 Wednesday, March 11, 2026 08:40:36
    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 Wednesday, March 11, 2026 11:58:33
    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 Wednesday, March 11, 2026 17:14:10
    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 Rich@3:633/10 to All on Wednesday, March 11, 2026 18:52:21
    c186282 <c186282@nnada.net> wrote:
    Attempting 'os.exec("sudo killall -9 ffmpeg")'
    after each cycle, but that seems to be one of
    the system things the VENV won't pass properly.
    Works perfectly from a real CL, but not from
    within the Py app.

    When you invoke from a "real CL" does sudo request your password?

    If yes, then how the fuck do you think doing os.exec from within a
    Python script is going to prompt you for your password? Esp. if it
    (Python) is doing so after hours of ffmpeg time and you are not around.

    The sudo is most likely why your os.exec() is failing.

    Plus you are showing your 'ubuntu' upbringing (i.e., you don't really
    know how anything really works, you just know what the ubuntu docs told
    you to do, but not the 'why' to do it). If both the python process and
    the ffmpeg process are owned by the same user, you do not need sudo at
    all to send it a terminate signal.


    --- 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 Wednesday, March 11, 2026 19:39:05
    Rich <rich@example.invalid> writes:
    c186282 <c186282@nnada.net> wrote:
    Attempting 'os.exec("sudo killall -9 ffmpeg")'
    after each cycle, but that seems to be one of
    the system things the VENV won't pass properly.
    Works perfectly from a real CL, but not from
    within the Py app.

    When you invoke from a "real CL" does sudo request your password?

    If yes, then how the fuck do you think doing os.exec from within a
    Python script is going to prompt you for your password? Esp. if it
    (Python) is doing so after hours of ffmpeg time and you are not around.

    The sudo is most likely why your os.exec() is failing.

    First, being run from a Python script does not prevent sudo from
    prompting for a password. I?ve no idea why you?d think it would.

    Second, there is no such thing as os.exec.

    >>> import os
    >>> help(os.exec)
    Traceback (most recent call last):
    File "<python-input-1>", line 1, in <module>
    help(os.exec)
    ^^^^^^^
    AttributeError: module 'os' has no attribute 'exec'. Did you mean: 'execl'?

    If c186282 is actually using os.exec, then that?s their surface-level
    problem.

    Alternatively they may be referring to os.execl, etc. Those are still
    the wrong APIs for most use cases, since they replace the running
    process. You have to read the first line of the documentation to
    discover this point, so perhaps it?s understandable why someone might
    have missed it.

    If you actually want to run subprocesses from Python scripts then
    os.system is the best option for simple use cases, and the subprocess
    module for anything more complex.

    >>> import os
    >>> os.system("sudo id")
    [sudo] password for richard:
    uid=0(root) gid=0(root) groups=0(root)
    0

    --
    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 Wednesday, March 11, 2026 20:14:34
    Richard Kettlewell <invalid@invalid.invalid> wrote:
    Rich <rich@example.invalid> writes:
    c186282 <c186282@nnada.net> wrote:
    Attempting 'os.exec("sudo killall -9 ffmpeg")'
    after each cycle, but that seems to be one of
    the system things the VENV won't pass properly.
    Works perfectly from a real CL, but not from
    within the Py app.

    When you invoke from a "real CL" does sudo request your password?

    If yes, then how the fuck do you think doing os.exec from within a
    Python script is going to prompt you for your password? Esp. if it
    (Python) is doing so after hours of ffmpeg time and you are not around.

    The sudo is most likely why your os.exec() is failing.

    First, being run from a Python script does not prevent sudo from
    prompting for a password. I?ve no idea why you?d think it would.

    Second, there is no such thing as os.exec.

    >>> import os
    >>> help(os.exec)
    Traceback (most recent call last):
    File "<python-input-1>", line 1, in <module>
    help(os.exec)
    ^^^^^^^
    AttributeError: module 'os' has no attribute 'exec'. Did you mean: 'execl'?

    If c186282 is actually using os.exec, then that?s their surface-level problem.

    Alternatively they may be referring to os.execl, etc. Those are still
    the wrong APIs for most use cases, since they replace the running
    process. You have to read the first line of the documentation to
    discover this point, so perhaps it?s understandable why someone might
    have missed it.

    If you actually want to run subprocesses from Python scripts then
    os.system is the best option for simple use cases, and the subprocess
    module for anything more complex.

    >>> import os
    >>> os.system("sudo id")
    [sudo] password for richard:
    uid=0(root) gid=0(root) groups=0(root)
    0

    Fair enough, it will prompt, if run on the same terminal where your
    user is running.

    c186282 seems to be trying to create a background deamon to monitor for
    his /supposed/ stuck ffmpeg and kill ffmpeg when a stuck condition is
    found. In which case, there's likely no user watching the terminal (or
    no actual terminal in any case) to which to prompt, so even if c186282
    used os.system, the result would still not reset the stuck ffmpegs
    since either there's no one around to type in the password, or there's
    no controlling terminal to which to prompt.

    And, as I did say in my post, if both the monitor and ffmpeg are the
    same user, there's zero need for 'sudo' to kill (or killall) the ffmpeg process. And given that is is very likely this monitor and the ffmpeg
    process are both running as the same user, prefixing 'sudo' there
    simply shows a fundamental lack of understanding on c186282's part for
    what sudo is for and why it is used.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Wednesday, March 11, 2026 20:19:35
    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 Wednesday, March 11, 2026 21:51:15
    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 Wednesday, March 11, 2026 21:35:04
    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 Richard Kettlewell@3:633/10 to All on Wednesday, March 11, 2026 23:00:38
    Rich <rich@example.invalid> writes:
    c186282 seems to be trying to create a background deamon to monitor for
    his /supposed/ stuck ffmpeg and kill ffmpeg when a stuck condition is
    found. In which case, there's likely no user watching the terminal (or
    no actual terminal in any case) to which to prompt, so even if c186282
    used os.system, the result would still not reset the stuck ffmpegs
    since either there's no one around to type in the password, or there's
    no controlling terminal to which to prompt.

    Agreed, sudo is not going to be happy in a background process. I?d
    missed the possibility of a background process in among all the ranting.

    And, as I did say in my post, if both the monitor and ffmpeg are the
    same user, there's zero need for 'sudo' to kill (or killall) the ffmpeg process. And given that is is very likely this monitor and the ffmpeg process are both running as the same user, prefixing 'sudo' there
    simply shows a fundamental lack of understanding on c186282's part for
    what sudo is for and why it is used.

    Also agreed.

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

    --- 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 Thursday, March 12, 2026 10:39:42
    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 Friday, March 13, 2026 06:07:00
    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 c186282@3:633/10 to All on Friday, March 13, 2026 02:48:52
    On 3/13/26 02:07, Gilmeh Serda wrote:
    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.

    Oh you're so right ... dunno how I got paid
    for 40+ years to do code and such ! :-)

    But, unlike some, I still don't claim to Know It All.

    And the environment continues to evolve (devolve?).

    Anyway, try to 'pip3' these days and you will get
    the 'managed by a virtual environment' thing no
    matter what. You CAN 'break-packages' and force
    new libs in, but, well, I worry about 'breaking',
    shouldn't have to.

    My original question still stands, how to completely
    remove/block the entire VENV scheme. Still haven't
    seen a good answer. Yea, you can run from the CL or
    a script, but that's getting AROUND the VENV "by
    certain means", not nuking it entirely.

    The VENV clearly DOES stuff, otherwise it would not
    exist. I *suspect* it's getting in the way of some
    stuff I'm trying to accomplish. MIGHT not be true,
    but I'm suspicious.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 09:34:06
    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 Friday, March 13, 2026 21:49:10
    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 Friday, March 13, 2026 23:28:04
    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 Saturday, March 14, 2026 01:17:43
    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 Saturday, March 14, 2026 03:21:31
    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 Saturday, March 14, 2026 12:23:13
    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)