Mailing List Archive

venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure
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
--
https://mail.python.org/mailman/listinfo/python-list
Re: venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure [ In reply to ]
> 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


--
https://mail.python.org/mailman/listinfo/python-list
Re: venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure [ In reply to ]
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
>
>


--
https://mail.python.org/mailman/listinfo/python-list