[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Christian Ullrich
New submission from Christian Ullrich : Creating a venv using "py -m venv" fails when the debug binaries are installed in the system-wide installation. Note the below uses the 32-bit installation, but that is probably not significant. C:\Daten\pyv>py -3.7-32 -m venv v37-32 Er

[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Christian Ullrich
Christian Ullrich added the comment: Python version is 3.7.3. -- ___ Python tracker <https://bugs.python.org/issue36441> ___ ___ Python-bugs-list mailin

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Christian Ullrich
Christian Ullrich added the comment: I have two ideas, but no idea if either is remotely feasible: 1. Replicate the launcher's selection logic in multiprocessing and avoid the intermediate step via sys.executable. Perhaps put it into pythonXX.dll or export it from the launcher

[issue35797] concurrent.futures.ProcessPoolExecutor does not work in venv on Windows

2019-01-21 Thread Christian Ullrich
New submission from Christian Ullrich : Using concurrent.futures.ProcessPoolExecutor on Windows fails immediately with a lot of exceptions of the "access denied", "file not found", and "invalid handle" varieties. Running the script that creates the ProcessPool

[issue35374] Windows doc build does not find autodetected hhc.exe

2018-12-02 Thread Christian Ullrich
Change by Christian Ullrich : -- keywords: +patch pull_requests: +10084 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35374> ___ _

[issue35374] Windows doc build does not find autodetected hhc.exe

2018-12-02 Thread Christian Ullrich
New submission from Christian Ullrich : If hhc.exe is on the PATH when HTML Help is being built, the build fails because make.bat does not correctly remember the fact. The set command is very finicky with trailing spaces, leading to this: '"hhc "' is not recognized as an internal o

[issue35228] Index search in CHM help crashes viewer

2018-12-02 Thread Christian Ullrich
Christian Ullrich added the comment: Ma Lin, thanks for the suggestion! Yes, it looks like this option fixes the problem. I can reproduce the crash at will with a .chm built without this option, and not at all with one that has it on. If the .chm's directory is not writable, the .chw

[issue35228] Index search in CHM help crashes viewer

2018-11-13 Thread Christian Ullrich
New submission from Christian Ullrich : Typing into the index keyword field frequently crashes the CHM viewer with the first or second character. The Python CHMs are the only ones that I see this crash with; it started around 3.6 or so. >From event log: Faulting application name: hh.

[issue31349] Embedded initialization ignores Py_SetProgramName()

2017-09-05 Thread Christian Ullrich
Christian Ullrich added the comment: Not quite. Looking a bit further down get_progname()'s weird logic, we see that it works like this: 1. prog = Py_GetProgramName() 2. progpath = GetModuleFileNameW() 3. if (prog is empty): prog = "python" 4. if (slash in prog): # Or

[issue31349] Embedded initialization ignores Py_SetProgramName()

2017-09-05 Thread Christian Ullrich
Christian Ullrich added the comment: That should have been diff --git a/PC/getpathp.c b/PC/getpathp.c index e7be704a9a..abb5e54c9f 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -443,8 +443,7 @@ get_progpath(void) #else dllpath[0] = 0; #endif -if (GetModuleFileNameW(NULL

[issue31349] Embedded initialization ignores Py_SetProgramName()

2017-09-05 Thread Christian Ullrich
New submission from Christian Ullrich: I'm trying to do something that may be slightly tricky, and I think I just found a vintage 1997 bug. Please correct me if I'm wrong. This is PC/getpathp.c from current master: 430: static void 431: get_progpath(void) 432: { 433: extern wchar_t

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Christian Ullrich
Christian Ullrich added the comment: I'll have to start with the ceterae again, won't I? OK, since you asked: Ceterum censeo: This behavior could have been easily adapted to differing local requirements if MSI had been used as the distribution package format by appropriately transforming

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Christian Ullrich
Christian Ullrich added the comment: Out of curiosity, can you point me to an example or two? I have been living with, though not in, Win32 for quite a few years myself, and I can say with certainty that I have never seen this notation before in my life. Other than that, PR on the way soonish

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Christian Ullrich
New submission from Christian Ullrich: In 3.6.1, the manual, section 3.1.3, has this to say: "Your administrator will need to activate the “Enable Win32 long paths” group policy, or set the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Christian Ullrich
New submission from Christian Ullrich: The CHM help files on Windows always open maximized. I would prefer they opened in a regular window instead, because the current behavior is annoying. Fix: In Tools/msi/doc/doc.wxs line 34, change 'Show="maximized"' to 'Sh

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Christian Ullrich
Christian Ullrich added the comment: Thank you. As for the pointing out: It worked for Cato, didn't it? He may not have lived to see it, but his perseverance in the face of rejection eventually brought about the years-long bloody war he had dreamed about. (Any historical inaccuracies

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Christian Ullrich
New submission from Christian Ullrich: The Windows installation package registers a command line for uninstalling the package. Running this command line does not uninstall the package. The command line ends with "/modify". For uninstallation, it should be "/passive /unins

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Christian Ullrich
Christian Ullrich added the comment: This bug has been open for over a year and two subsequent releases, and its planned resolution depends on a change to WiX. The related WiX bug (see comment above) is scheduled to be implemented in WiX 4.0, which has no prospective release date. According

[issue27410] DLL hijacking vulnerability in Python 3.5.2 installer

2016-06-29 Thread Christian Ullrich
Changes by Christian Ullrich <ch...@chrullrich.net>: -- nosy: +Christian.Ullrich ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25636] Let launcher autoselect best 32-bit Python on 64-bit system

2015-11-16 Thread Christian Ullrich
New submission from Christian Ullrich: As described in PEP 397, the launcher can autoselect the "best" Python version available on a system, or a full version number (major.minor) can be specified. In the latter case, optionally a "-32" suffix can be given to select a 32

[issue25162] Windows installation does not appear in list of installed applications

2015-09-18 Thread Christian Ullrich
New submission from Christian Ullrich: The new Windows installer always places the uninstallation registry key into HKCU of the executing user. This is correct for a per-user installation, but when run with InstallAllUsers=1, the key should go into HKLM instead. The "Programs and Fea

[issue25163] Windows installer in AllUsers mode presents wrong installation path

2015-09-18 Thread Christian Ullrich
New submission from Christian Ullrich: When run with InstallAllUsers=1, the Windows installer displays (%LOCALAPPDATA%)\Programs\Python\Python35 as the installation target directory, but actually installs into the path for a system-wide installation, "%PROGRAMFILES%\Python 3.5"

[issue25164] Windows default installation path is inconsistent between per-user and system-wide installation

2015-09-18 Thread Christian Ullrich
New submission from Christian Ullrich: On Windows, a per-user installation uses %LOCALAPPDATA%\Programs\Python\Python35 as the default target directory. A system-wide (InstallAllUsers=1) installation, however, goes into "%PROGRAMFILES%\Python 3.5" instead. The two directory na

[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-18 Thread Christian Ullrich
New submission from Christian Ullrich: A system-wide installation on Windows (using InstallAllUsers=1) still places the uninstall executable into the profile (%LOCALAPPDATA%) of the installing user. If that user profile is deleted, the (system-wide) installation cannot be removed anymore

[issue25165] Windows uninstallation should not remove launcher if other versions remain

2015-09-18 Thread Christian Ullrich
New submission from Christian Ullrich: Uninstalling 3.5 on Windows removes the py.exe launcher. If it was installed in the system-wide path (%SYSTEMROOT%), it may have replaced an existing copy from an earlier version. In this case, removing the launcher will break this remaining installation

[issue25124] No single .msi available for 3.5 release

2015-09-15 Thread Christian Ullrich
New submission from Christian Ullrich: The item "A new installer for Windows has replaced the old MSI" appears on the "What's new" page as an "improvement". It is not. I disagree strongly with the decision to abandon MSI packages for Windows distribution

[issue21030] pip usable only by administrators on Windows and SELinux

2014-06-23 Thread Christian Ullrich
Christian Ullrich added the comment: Actually, this appears to be fixed in pip 1.5.6 (and 1.5.5, commit 79408cbc6fa5d61b74b046105aee61f12311adc9, AFAICT), which is included in 3.4.1; I cannot reproduce the problem in 3.4.1. That makes this bug obsolete

[issue21030] pip usable only by administrators on Windows

2014-03-23 Thread Christian Ullrich
Christian Ullrich added the comment: According to procmon, ensurepip first installs the bundled packages in $TEMP, then moves the resulting files to the Python installation directory. According to http://support.microsoft.com/kb/310316, a file that is moved within the same volume keeps its

[issue21030] pip usable only by administrators on Windows

2014-03-23 Thread Christian Ullrich
Christian Ullrich added the comment: Unprivileged users cannot install into the global site-packages, but they might want to use the global pip to install with --user. Also, this issue affects not only pip, but also the other bundled packages, i.e. setuptools and pkg_resources

[issue21030] pip usable only by administrators on Windows

2014-03-22 Thread Christian Ullrich
New submission from Christian Ullrich: After installing python-3.4.0.amd64.msi on Windows 8.1 x64, the pip command (and the versioned ones as well) only work for administrators. Regular users get this: Traceback (most recent call last): File C:\Program Files\Python34\lib\runpy.py, line 171