Mcmillan installer and numarray
![](https://secure.gravatar.com/avatar/a2c89176be1b312d6d648616731557e2.jpg?s=120&d=mm&r=g)
Hi, I have for a long time successfully rolled up stand alone executables that use Numeric, now I'm trying to move over to numarray, but am getting the following error. "Fatal Python error: Call to API function without first calling import_libnumarray() in Src _convmodule.c" Now I recall that numeric had this extra initializing call for the C code, and I suppose numarray does as well. Can someone give me some guidance on how to explicity call that initialization function from Python? thanks, Stefan __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail
![](https://secure.gravatar.com/avatar/ccb440c822567bba3d49d0ea2894b8a1.jpg?s=120&d=mm&r=g)
In article <20050624172101.15138.qmail@web50610.mail.yahoo.com>, Stefan Kuzminski <pontifor@yahoo.com> wrote:
The numarry docs include a good tutorial for writing C extensions ("C Extension API"). Based on that, near the top of my C numarray extension's header file I have: #include "Python.h" #include "libnumarray.h" ...and the bottom of my .c file is... // Module initialization function void initradProf(void) { PyObject *m; m = Py_InitModule3("radProf", radProfMethods, radProfModule_doc); if (m == NULL) return; import_libnumarray(); } ...and I guess distutils finds initradProf based on the setup.py file
![](https://secure.gravatar.com/avatar/ccb440c822567bba3d49d0ea2894b8a1.jpg?s=120&d=mm&r=g)
In article <20050624172101.15138.qmail@web50610.mail.yahoo.com>, Stefan Kuzminski <pontifor@yahoo.com> wrote:
The numarry docs include a good tutorial for writing C extensions ("C Extension API"). Based on that, near the top of my C numarray extension's header file I have: #include "Python.h" #include "libnumarray.h" ...and the bottom of my .c file is... // Module initialization function void initradProf(void) { PyObject *m; m = Py_InitModule3("radProf", radProfMethods, radProfModule_doc); if (m == NULL) return; import_libnumarray(); } ...and I guess distutils finds initradProf based on the setup.py file
participants (2)
-
Russell E. Owen
-
Stefan Kuzminski