[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

Éric Araujo report at bugs.python.org
Sat Sep 3 17:01:18 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

I have a patch that needs testing on Cpython Windows and if possible IPython.  The test makes sure that the error message contains the path to the file (which the incomplete error message you report also does, BTW), and an explanation of the error (to address the OP’s concern that the message must be helpful): it looks for the string 'denied'; if this is not cross-platform, I won’t commit this line.  (Antoine, I’ve made you nosy because I think you may have expertise on that last point.)

(BTW, I have tracked down the source of the mysterious None (I’m getting better at these things, but my mental sanity takes a toll each time): core.setup catches the exception and wants to display exc.filename and exc.strerror.)

----------
assignee: tarek -> eric.araujo
components: +Distutils, Distutils2
keywords: +needs review, patch
nosy: +alexis, higery, pitrou
stage: needs patch -> patch review
versions: +3rd party, Python 3.3 -Python 3.1
Added file: http://bugs.python.org/file23093/fix-7219.diff

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


More information about the Python-bugs-list mailing list