Embedding python: Segmentation Fault

Shuaib aries.shuaib at gmail.com
Sat Aug 19 16:34:08 EDT 2006


Hi!

I am trying to embed python into a C programe of mine. When the
execution reaches the following line

pModule = PyImport_Import(pName);

It causes a Segmentation Fault Error. pModule is of type PyObject *, so
is pName.

What could be the possible reasons for the error?

Thanks for your time.




More information about the Python-list mailing list