• venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure

    From Robin Becker@21:1/5 to All on Wed Sep 27 12:47:36 2023
    Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't.
    I guess this ought to be a bug.


    user@host:~/devel
    $ ~/LOCAL?3.12.0rc2/bin/python3 -m venv xxx
    bash: /home/user/LOCAL?3.12.0rc2/bin/python3: No such file or directory user@host:~/devel
    $ ~/LOCAL/3.12.0rc2/bin/python3 -m venv xxx
    user@host:~/devel
    $ xxx/bin/python -c'import sys;print(sys.version)'
    3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] user@host:~/devel
    $ cat xxx/pyvenv.cfg
    home = /home/user/LOCAL/3.12.0rc2/bin
    include-system-site-packages = false
    version = 3.12.0
    executable = /home/user/LOCAL/3.12.0rc2/bin/python3.12
    command = /home/user/LOCAL/3.12.0rc2/bin/python3 -m venv /home/robin/devel/xxx
    user@host:~/devel
    $ ~/LOCAL/3.12.0rc3/bin/python3 -m venv --upgrade xxx
    user@host:~/devel
    $ xxx/bin/python -c'import sys;print(sys.version)'
    3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] user@host:~/devel
    $ cat xxx/pyvenv.cfg
    home = /home/user/LOCAL/3.12.0rc3/bin
    include-system-site-packages = false
    version = 3.12.0
    executable = /home/user/LOCAL/3.12.0rc3/bin/python3.12
    command = /home/user/LOCAL/3.12.0rc3/bin/python3 -m venv --upgrade /home/robin/devel/xxx
    user@host:~/devel
    $ # check versions > user@host:~/devel
    $ ~/LOCAL/3.12.0rc2/bin/python3 -c'import sys;print(sys.version)'
    3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] > user@host:~/devel
    $ ~/LOCAL/3.12.0rc3/bin/python3 -c'import sys;print(sys.version)'
    3.12.0rc3 (main, Sep 27 2023, 09:35:10) [GCC 13.2.1 20230801] user@host:~/devel
    $

    --
    Robin Becker

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Barry@21:1/5 to All on Thu Sep 28 10:05:00 2023
    On 27 Sep 2023, at 12:50, Robin Becker via Python-list <python-list@python.org> wrote:

    Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't.
    I guess this ought to be a bug.

    You must delete and then recreate the venv if the version of python changes.
    It is not a bug in python.

    Barry

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robin Becker@21:1/5 to All on Thu Sep 28 11:40:14 2023
    On 28/09/2023 10:05, Barry via Python-list wrote:

    So this must be the source of my confusion

    user@host:~
    $ python312 -mvenv --help
    ......
    --upgrade Upgrade the environment directory to use this version
    of Python, assuming Python has been upgraded in-place. ......


    I have a different version, but it's not 'in place'.

    thanks
    --
    Robin


    On 27 Sep 2023, at 12:50, Robin Becker via Python-list <python-list@python.org> wrote:

    Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't.
    I guess this ought to be a bug.

    You must delete and then recreate the venv if the version of python changes. It is not a bug in python.

    Barry



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