Re: ImportError while Embedding python in C

2008-03-15 Thread kaush
On Mar 15, 2:10 am, kaush <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a simple python script saved to "test.py" as > > import os > import base64 > > def Testfunction(): > print "Hello World" > return > > Testfunction() > > I am trying to invoke this from a C program as follows > > int m

ImportError while Embedding python in C

2008-03-15 Thread kaush
Hi All, I have a simple python script saved to "test.py" as import os import base64 def Testfunction(): print "Hello World" return Testfunction() I am trying to invoke this from a C program as follows int main(int argc, char* argv[]) { Py_Initialize(); PyObject* main_