Message200785
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 |
|
Date |
User |
Action |
Args |
2013-10-21 14:05:17 | mgedmin | set | recipients:
+ mgedmin, tarek, eric.araujo |
2013-10-21 14:05:17 | mgedmin | set | messageid: <1382364317.14.0.23941931119.issue19333@psf.upfronthosting.co.za> |
2013-10-21 14:05:16 | mgedmin | link | issue19333 messages |
2013-10-21 14:05:16 | mgedmin | create | |
|