[Numpy-discussion] UNREF

Karl Bellve Karl.Bellve at umassmed.edu
Wed May 9 12:06:39 EDT 2001

Occasionally, if I reinitialize Python and rerun a script, I get the
following error:

FATAL Python error: UNREF invalid object

from my code I do the following:
	/* alot of other crap and then */
	PyRun_SimpleString("From Numeric import *\n");

eventually in multiarraymodule.c

which eventually calls (according to my stack trace) where the error

Is this a Numpy problem, Python problem, or my problem?

I can run the same python script several times, and then I get the
error. Something isn't being cleaned up properly around Py_Initialize()
Py_Finalize() pair.

I am using Python 2.1b1 and Numeric 18_1 with Boost


Karl Bellve

More information about the NumPy-Discussion mailing list