Hi,
Can you please guide me for the following problem?
The call to "PyImport_Impor tModule("cStrin gIO");" is failing with an error of "undefined symbol: PyObject_SelfIt er".
Before importing this module, I am importing only the sys module.
Py_SetProgramNa me("/usr/bin/python");
Py_Initialize() ;
char* argv[] = { "python","-v",""};
PySys_SetArgv(2 ,argv);
PyRun_SimpleStr ing("import sys");
PyObject *modStringIO = NULL;
// Import cStringIO module
modStringIO = PyImport_Import Module("cString IO");
Should I be importing any other additional module(s) to make this import work?
Please help.
I am trying to use the function GetPythonErrorM essage provided in this post:
http://groups.google.com/group/comp....bd5f5b15902b14
Thanks in advance for your help.
Regards.
=============== =============== =============== =============== =============== ===
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/e..._email_ib.html
=============== =============== =============== =============== =============== ===