[Matrix-SIG] Re: Problems using PyPDB with Python1.5.1 and 1.5.2b2

Paul F. Dubois dubois1@llnl.gov
Fri, 5 Mar 1999 19:09:26 -0800


Yes, that's what I meant. The exact placement of the statement isn't
important, as long as the init calls it.
-----Original Message-----
From: Les Schaffer <godzilla@netmeg.net>
To: matrix-sig@python.org <matrix-sig@python.org>
Date: Friday, March 05, 1999 3:31 PM
Subject: [Matrix-SIG] Re: Problems using PyPDB with Python1.5.1 and 1.5.2b2


>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);
>
>_______________________________________________
>Matrix-SIG maillist  -  Matrix-SIG@python.org
>http://www.python.org/mailman/listinfo/matrix-sig
>
>