[Numpy-discussion] distutils.misc_util Configuration error

Benjamin Thyreau benjamin at decideur.info
Wed Mar 29 06:20:23 CST 2006

when trying to create an distutils.misc_util.Configuration instance, since
numpy 0.9.5, i got an

Python 2.4.1 (#1, May  2 2005, 15:06:50)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy.distutils.misc_util
>>> numpy.distutils.misc_util.Configuration()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/somewhere/numpy-0.9.6/build/lib.linux-i686-2.4/numpy/distutils/misc_util.py", line 450, in __init__
    f = get_frame(i)
  File "/somewhere/numpy-0.9.6/build/lib.linux-i686-2.4/numpy/distutils/misc_util.py", line 359, in get_frame
    return sys._getframe(level+1)
ValueError: call stack is not deep enough

Error. Strangely enough (or not), when running from ipython, it seems to work.

On jan 31th 2006, pearu commited:

        for i in range(1,3):
            f = get_frame(i)
                caller_instance = eval('self',f.f_globals,f.f_locals)
            except NameError:
                caller_instance = None
        if isinstance(caller_instance, self.__class__):
            if caller_instance.options['delegate_options_to_subpackages']:

on misc_util.py, at the end of the Configuration constructor. I don't exactly
understand what that code do, but it prevent my setup.py to run since then.
Thanks for your help

Benjamin Thyreau

More information about the Numpy-discussion mailing list