[Numpy-discussion] (SPAM) Re:embeddedPyArray_FromDimsAndDataSegmentationFault

Thomas Hrabe thrabe@burnham....
Tue May 20 17:23:54 CDT 2008

Hi Pauli

my makefile compiles with the following options

/usr/global/matlab/bin/mex -cxx -g 
-I./include/ -I/home/global/python32/include/python2.4 
With this options compilation is processed but many symbols remain unsolved

undefined symbol: PyExc_RuntimeError    (./bin/mp.mexglx)

When I use -lpython2.4 the linker woun't find the lib
/usr/bin/ld: cannot find -lpython2.4

But I bet you have managed to solve this problem. By the way, what Matlab version did you use?

-----Original Message-----
From: numpy-discussion-bounces@scipy.org on behalf of Pauli Virtanen
Sent: Tue 5/20/2008 2:10 PM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] (SPAM) Re:embeddedPyArray_FromDimsAndDataSegmentationFault
ti, 2008-05-20 kello 13:36 -0700, Thomas Hrabe kirjoitti:
> Thats what PyErr_Print() prints.
> Python is initialised, for sure
> Traceback (most recent call last):
>   File "/usr/global/python32/lib/python2.4/site-packages/numpy/__init__.py", lin
> e 34, in ?
>     import testing
>   File "/usr/global/python32/lib/python2.4/site-packages/numpy/testing/__init__.
> py", line 3, in ?
>     from numpytest import *
>   File "/usr/global/python32/lib/python2.4/site-packages/numpy/testing/numpytest
> py", line 8, in ?
>     import unittest
>   File "/usr/global/python32/lib/python2.4/unittest.py", line 51, in ?
>     import time
> ImportError: /usr/global/python32/lib/python2.4/lib-dynload/time.so: undefined s
> ymbol: PyExc_IOErro
> why does it work in C and not in C started within Matlab?

It's probably that it has something to do with the way Matlab loads its
extension libraries:


Pauli Virtanen

Numpy-discussion mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080520/5844031d/attachment.html 

More information about the Numpy-discussion mailing list