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.

Title: Missing import of DistutilsOptionError
Type: behavior Stage: resolved
Components: Distutils2 Versions: 3rd party
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: eric.araujo, kelsey.hightower, tarek
Priority: normal Keywords:

Created on 2011-01-29 10:38 by kelsey.hightower, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg127396 - (view) Author: Kelsey (kelsey.hightower) Date: 2011-01-29 10:38
Missing DistutilsOptionError import in distutil2.config causes the following error:

Traceback (most recent call last):
  File "/opt/OpenPython-2.7.1/lib/python2.7/", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/opt/OpenPython-2.7.1/lib/python2.7/", line 72, in _run_code
    exec code in run_globals
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 181, in <module>
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 176, in main
    return commands_main()
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 90, in commands_main
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 307, in parse_config_files
    return self.config.parse_config_files(filenames)
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 193, in parse_config_files
  File "/opt/OpenPython-2.7.1/lib/python2.7/site-packages/Distutils2-1.0a3-py2.7.egg/distutils2/", line 113, in _read_setup_cfg
    raise DistutilsOptionError(msg)
NameError: global name 'DistutilsOptionError' is not defined
msg127397 - (view) Author: Kelsey (kelsey.hightower) Date: 2011-01-29 10:40
Link to patch:
msg127433 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-01-29 16:06
Fixed two NameErrors in that file in 801c90825cc1, thanks.
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55266
2011-01-29 17:49:48eric.araujosetstatus: open -> closed
nosy: tarek, eric.araujo, kelsey.hightower
2011-01-29 16:06:55eric.araujosetversions: + 3rd party, - Python 2.7
nosy: tarek, eric.araujo, kelsey.hightower
messages: + msg127433

assignee: tarek -> eric.araujo
resolution: fixed
stage: resolved
2011-01-29 10:42:58kelsey.hightowersetnosy: tarek, eric.araujo, kelsey.hightower
title: Missing DistutilsOptionError -> Missing import of DistutilsOptionError
2011-01-29 10:40:01kelsey.hightowersetnosy: tarek, eric.araujo, kelsey.hightower
messages: + msg127397
2011-01-29 10:38:20kelsey.hightowercreate