[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-14 Thread wolfgang kuehn
wolfgang kuehn added the comment: I can confirm that setting __PYVENV_LAUNCHER__ to ANY path with prefix ./venv/Scripts/ does indeed mark the python session as being a virtual environment, no special permissions needed. However, you will have no tooling support whatsoever (e.g. PyCharms

[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread wolfgang kuehn
wolfgang kuehn added the comment: Currently we have a glitch in our internal access rights system. This resulted in me loosing my Admin-privileges. I can only install python from the app-store, which is ok. But without venv support I am stuck for the time being

[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread wolfgang kuehn
wolfgang kuehn added the comment: symlinks do not work for me, this may be another bug (should I create a new issue?): python -m venv --without-pip --symlinks venv Unable to symlink 'C:\\Users\\\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python

[issue46056] Cannot use virtual environment on Windows 10 in cooperate security settings

2021-12-12 Thread wolfgang kuehn
Change by wolfgang kuehn : -- title: Cannot use virtual environment on Windows 10 in cooperate security settingss -> Cannot use virtual environment on Windows 10 in cooperate security settings type: -> behavior ___ Python tracker

[issue46056] Cannot use virtual environment on Windows 10 in cooperate security settingss

2021-12-12 Thread wolfgang kuehn
New submission from wolfgang kuehn : I just installed Python3.10.1 from the Windows 10 App Store. Most workflows depend on creating virtual environments, but (1) python -m venv venv # -> Error 1260: Windows cannot open this program because it has been prevented by a softw

[issue45237] Python subprocess not honoring append mode for stdout on Windows

2021-09-19 Thread wolfgang kuehn
wolfgang kuehn added the comment: The second alternative (wrapping the OS handle in a file descriptor) works like a charm, and is the less invasive workaround code-wise. Thanks for the magic, which I must respect as such :-) Still I feel that this is a bug since (a) it shows an unexpected

[issue45237] Python subprocess not honoring append mode for stdout on Windows

2021-09-17 Thread wolfgang kuehn
New submission from wolfgang kuehn : On Windows, if you pass an existing file object in append mode to a subprocess, the subprocess does **not** really append to the file: 1. A file object with `Hello World` content is passed to the subprocess 2. The content is erased 3. The subprocess writes