[New-bugs-announce] [issue13038] distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only

Mitch Frazier report at bugs.python.org
Sat Sep 24 00:14:32 CEST 2011


New submission from Mitch Frazier <mitch at comwestcr.com>:

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.

----------
assignee: tarek
components: Distutils
messages: 144477
nosy: eric.araujo, mitchfrazier, tarek
priority: normal
severity: normal
status: open
title: distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only
type: crash
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13038>
_______________________________________


More information about the New-bugs-announce mailing list