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 <>
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'.

Date User Action Args
2013-10-21 14:05:17mgedminsetrecipients: + mgedmin, tarek, eric.araujo
2013-10-21 14:05:17mgedminsetmessageid: <>
2013-10-21 14:05:16mgedminlinkissue19333 messages
2013-10-21 14:05:16mgedmincreate