frlan@trabant:~/quellen/myprj$ ./appenv update-lockfile
Update lockfile with with /usr/bin/python3.12.
If you want to use a different version, set it via
`# appenv-python-preference:` in requirements.txt.
Updating lockfile
Creating venv ...
Activating broken distutils/ensurepip stdlib workaround ...
ensurepip
distutils
Traceback (most recent call last):
File "/home/frlan/quellen/myprj/./appenv", line 77, in ensure_venv
import ensurepip # noqa: F401 imported but unused
^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'ensurepip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/frlan/quellen/myprj/./appenv", line 533, in <module>
main()
File "/home/frlan/quellen/myprj/./appenv", line 525, in main
appenv.meta()
File "/home/frlan/quellen/myprj/./appenv", line 283, in meta
args.func(args, remaining)
File "/home/frlan/quellen/myprj/./appenv", line 442, in update_lockfile
ensure_venv(tmpdir)
File "/home/frlan/quellen/myprj/./appenv", line 102, in ensure_venv
shutil.copytree(
File "/usr/lib/python3.12/shutil.py", line 598, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpk63bq9cr/Python-3.12.2/Lib/distutils'
My current working dir looks like