Re: weird embedding problem

2007-12-08 Thread Graham Dumpleton
On Dec 7, 11:44 pm, DavidM <[EMAIL PROTECTED]> wrote: > On Fri, 07 Dec 2007 00:53:15 -0800, Graham Dumpleton wrote: > > Are you actually linking your C program against the Python library? > > Yes. Refer OP: > > >> I'm embedding python in a C prog which is built as a linux shared lib. > >> The prog

Re: weird embedding problem

2007-12-07 Thread DavidM
On Fri, 07 Dec 2007 00:53:15 -0800, Graham Dumpleton wrote: > Are you actually linking your C program against the Python library? Yes. Refer OP: >> I'm embedding python in a C prog which is built as a linux shared lib. >> The prog is linked against libpython, and on startup, it calls >> Py_Initi

Re: weird embedding problem

2007-12-07 Thread Graham Dumpleton
On Dec 7, 5:01 pm, DavidM <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm embedding python in a C prog which is built as a linux shared lib. > > The prog is linked against libpython, and on startup, it calls > Py_Initialize(). > > The prog imports a pure-python script. The script starts up ok, but whe

Re: weird embedding problem

2007-12-07 Thread grbgooglefan
On Dec 7, 2:01 pm, DavidM <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm embedding python in a C prog which is built as a linux shared lib. > > The prog is linked against libpython, and on startup, it calls > Py_Initialize(). > > The prog imports a pure-python script. The script starts up ok, but whe

weird embedding problem

2007-12-06 Thread DavidM
Hi all, I'm embedding python in a C prog which is built as a linux shared lib. The prog is linked against libpython, and on startup, it calls Py_Initialize(). The prog imports a pure-python script. The script starts up ok, but when it imports the 'math' module, the import fails with: Traceback