Why no libpython2.x.so in redhat?
Chris Barker
Chris.Barker at noaa.gov
Tue May 28 17:34:17 EDT 2002
Mike Romberg wrote:
> You need to call an init function for the Numeric module (described
> in the numeric documentation). If you don't then the most common
> thing to happen is a segmentation fault.
that call is import_array(), and it usually goes in the module
initialization mfunction, after Py_InitModule(). I'm not sure where it
would go in your example. Oddly, in some cases, the code will work
without that call. A while ago I wrote a couple of modules without that
call, and they worked fine on RedHat Linux, but then crashed when I
tried to use them on a macintosh. Add import_array() fixed it. Perhaps
something different about how Debian and RedHat link causes the difference.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Python-list
mailing list