classification
Title: Unhelpful error message when a distutils package install fails due to a permissions error
Type: behavior Stage: needs patch
Components: Versions: Python 3.2, Python 2.7, Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: michael.foord, tarek (2)
Priority: normal Keywords 26backport

Created on 2009-10-27 12:37 by michael.foord, last changed 2009-10-27 12:37 by michael.foord.

Messages (1)
msg94554 - (view) Author: Michael Foord (michael.foord) Date: 2009-10-27 12:37
This problem showed up when installing a package with IronPython, where
the site-packages folder requires admin privileges to write to (which
*should* be true with CPython Windows but isn't).

If you perform a 'python setup.py install' without admin privileges the
install fails (as it should) but with a very cryptic error message:

C:\compile\test\foo-1.0>"C:\Program Files\IronPython 2.6\ipy.exe"
setup.py install
running install
running build
running build_py
creating build
creating build\lib
copying foo.py -> build\lib
running install_lib
copying build\lib\foo.py -> C:\Program Files\IronPython
2.6\Lib\site-packages
error: C:\Program Files\IronPython 2.6\Lib\site-packages\foo.py: None
History
Date User Action Args
2009-10-27 12:37:49michael.foordcreate