This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mgedmin
Recipients eric.araujo, mgedmin, tarek
Date 2013-10-21.14:05:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382364317.14.0.23941931119.issue19333@psf.upfronthosting.co.za>
In-reply-to
Content
Steps to reproduce:

$ python -c 'from distutils.util import grok_environment_error as e; print(e(IOError("message")))'

What I expect to see:
error: message

What I get instead:
error: None

This is a problem because it hides the error message in a real-life use case: trying to use the latest setuptools in an ancient virtualenv (see [1]).  TL;DR version:
- sysconfig (in the standard library) raises IOError(msg),
- which is then caught and passed throughdistutils.util.grok_environment_error(),
- which then returns an unfriendly 'error: None'.

[1] https://bitbucket.org/pypa/setuptools/issue/89/easy_install-quits-with-error-none-in
History
Date User Action Args
2013-10-21 14:05:17mgedminsetrecipients: + mgedmin, tarek, eric.araujo
2013-10-21 14:05:17mgedminsetmessageid: <1382364317.14.0.23941931119.issue19333@psf.upfronthosting.co.za>
2013-10-21 14:05:16mgedminlinkissue19333 messages
2013-10-21 14:05:16mgedmincreate