Re: callling python function in c

2011-10-18 Thread Anssi Saari
masood shaik writes: > Hi > > I am trying to call python function from c code.The following > program i got from the web source while i am trying to run this > program it throws an segmentation fault. Yes, the call to PyImport_Import fails and returns a NULL. You could use the more complete ex

Re: callling python function in c

2011-10-17 Thread Ulrich Eckhardt
Am 16.10.2011 10:03, schrieb masood shaik: I am trying to call python function from c code.The following program i got from the web source while i am trying to run this program it throws an segmentation fault. Try checking what functions returns instead of blindly using it. Use a debugger to fi

callling python function in c

2011-10-16 Thread masood shaik
Hi I am trying to call python function from c code.The following program i got from the web source while i am trying to run this program it throws an segmentation fault.I am working on Ubuntu 10.10 version.Can anyone guide me please The following program call_function.c // call_function.c - A