[Matrix-SIG] Re: Problems using PyPDB with Python1.5.1 and 1.5.2b2
Les Schaffer
Les Schaffer <godzilla@netmeg.net>
Fri, 5 Mar 1999 18:31:39 -0500 (EST)
PD wrote:
> I just took a quick look and it appears I didn't yet go back and
> added the import_array() statement to the init routine. I'll fix it
> in the next release.
dont this do the trick (it does for me):
(gustav)/usr/local/src/LLNLDistribution/PyPDB/: diff -c Src/pypdbmodule.c.orig Src/pypdbmodule.c
*** Src/pypdbmodule.c.orig Fri Mar 5 18:24:33 1999
--- Src/pypdbmodule.c Fri Mar 5 18:29:49 1999
***************
*** 1301,1306 ****
--- 1301,1308 ----
pypdb_module_documentation,
(PyObject*)NULL,PYTHON_API_VERSION);
+ import_array();
+
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);