Issue 13038: bdist_wininst installers should warn if target dir is read-only (original) (raw)

Issue13038

Created on 2011-09-23 22:14 by mitchfrazier, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg144477 - (view) Author: Mitch Frazier (mitchfrazier) Date: 2011-09-23 22:14
Distutils built installers will fail on Windows with a run-time exception of STATUS_INVALID_CRUNTIME_PARAMETER, error-code: C0000417 if the python installation directory (e.g. C:\Python27) is read-only for the user running the installer. I've experienced this with the pyside and pywin32 installers on Windows XP. Using procmon I discovered that the installer fails when it tries to create the installation log file in the python install directory. That led me to look at the directory which is when I discovered that it was read only for my user account. It's read-only because the Python installer was run as Administrator and the other installers are being run from my user account. Changing the directory to read-only for my account allows the installer to run without problem. Perhaps the installer could check for this and provide a friendlier response.
msg145111 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-07 17:27
Are these winsinst or MSI installers?
msg145112 - (view) Author: Mitch Frazier (mitchfrazier) Date: 2011-10-07 17:30
On 10/7/2011 10:27 AM, Éric Araujo wrote: > > Éric Araujo<merwok@netwok.org> added the comment: > > Are these winsinst or MSI installers? They are windows installers (winsinst). > > ---------- > components: +Distutils2 -Distutils > nosy: +alexis > versions: +3rd party, Python 3.3 -Python 2.7 > > _______________________________________ > Python tracker<report@bugs.python.org> > <http://bugs.python.org/issue13038> > _______________________________________
msg384824 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-01-11 12:51
The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802.
History
Date User Action Args
2022-04-11 14:57:21 admin set github: 57247
2021-01-11 12:51:55 vstinner set status: open -> closednosy: + vstinnermessages: + resolution: wont fixstage: needs patch -> resolved
2014-03-13 20:07:11 eric.araujo set messages: -
2014-03-13 20:06:53 eric.araujo set components: + Distutils, - Distutils2versions: + Python 3.5, - 3rd party, Python 3.3
2011-10-07 17:39:27 eric.araujo set title: distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only -> bdist_wininst installers should warn if target dir is read-onlymessages: + stage: needs patch
2011-10-07 17:30:51 mitchfrazier set messages: +
2011-10-07 17:27:26 eric.araujo set versions: + 3rd party, Python 3.3, - Python 2.7nosy: + alexismessages: + components: + Distutils2, - Distutils
2011-09-23 22:14:31 mitchfrazier create