[SciPy-user] scipy, matlab and NASTRAN

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Feb 27 13:23:04 CST 2009


On Fri, 27 Feb 2009 13:58:59 -0500
  Nathan Bell <wnbell@gmail.com> wrote:
> On Fri, Feb 27, 2009 at 7:01 AM, Nils Wagner
> <nwagner@iam.uni-stuttgart.de> wrote:
>> Hi all,
>>
>> Meanwhile I made some progress.
>>
>>>>> import loadop4
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: ./loadop4.so: undefined symbol:
>> sp_copy_column
>>
>> nm loadop4.so | grep sp_copy_column
>>                  U sp_copy_column
>> 000000000000e091 t _wrap_sp_copy_column
>>
>> How can I resolve that problem ?
>>
> 
> It looks like sparse.h contains function prototypes that 
>are never
> defined in a .c file.  You should be able to just delete 
>them from the
> header files.
> 
> Nils, have you considered using NumPy's IO capabilities 
>instead of
> using this code?  

Not really. I am not familiar with C. Hence I tried swig.


I find IO to be a place where
>implementing from
> scratch with Python + NumPy is often easier and just as 
>fast.   Plus,
> you end up with a .py that's easy to share with others.

+1.

Anyway the source is available at
http://danial.org/op4/load_save_op4.tar.gz



Nils

  


More information about the SciPy-user mailing list