Custom Execution from Python

satish skchim0 at engr.uky.edu
Sat Sep 20 00:16:11 CEST 2003


Hello all,

I have a shared object executable  viz. *cable*  which I execute as follows :

$ ansyscust71 -custom cable -p ANSYSRF

**ansyscust71 is a shell script and is a part of a software called ANSYS**


Now, I have generated a python module using a *fortran-python interface 
generator called F2PY* using the same *make rules* which were used to make 
*cable* when not using F2PY

I got a Python extension module named *cable_f2py* again.

From the python environment when I tried to execute *cable_f2py* ( this is 
python module due to F2PY), I got a segmentation error just like how I would 
get this error when I execute *cable* as follows when not using F2PY:

$ ./cable
Segmentation Fault

However, when I execute it as follows, it works

$ansyscust71 -custom cable -p ANSYSRF  --> This is required for succesful 
execution


Now, I dont understand how I can mimic the above way of execution from within 
Python to execute *cable_f2py* which as I mentioned earlier is the result of 
making and linking all the same libraries which were used while making and 
linking cable

I am really confused

Can someone help me ??


Thanks in advance,

Best Regards,
Satish






-- 
SATISH KUMAR CHIMAKURTHI
Graduate Teaching Assistant
CFD GROUP
UNIVERSITY OF KENTUCKY
LEXINGTON
KENTUCKY - 40508
Email: skchim0 at engr.uky.edu
Mobile: 859-312-8425

Vice-President
American Institute Of Aeronautics and Astronautics
Student Chapter
University Of Kentucky





More information about the Python-list mailing list