Issue 19333: distutils.util.grok_environment_error loses the error message (original) (raw)
Issue19333
Created on 2013-10-21 14:05 by mgedmin, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg200785 - (view) | Author: Marius Gedminas (mgedmin) * | Date: 2013-10-21 14:05 |
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 | ||
msg212908 - (view) | Author: Thomas Kluyver (takluyver) * | Date: 2014-03-07 22:51 |
Duplicate of issue 4931. This function should be entirely unnecessary now. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:52 | admin | set | github: 63532 |
2014-03-07 22:52:27 | eric.araujo | set | status: open -> closedsuperseder: distutils does not show any error msg when can't build C module extensions due to a missing C compilerresolution: duplicatestage: resolved |
2014-03-07 22:51:23 | takluyver | set | nosy: + takluyvermessages: + |
2013-10-21 14:05:17 | mgedmin | create |