configuring python with disable-thread in Ubuntu

2009-05-08 Thread Deepak Chandran
Hello, I am embedding python inside a C++ program. For some reason (I think libxml2), I am getting Segmentation fault at PyThread_release_lock. The solution I found online was to configure python with --disable-thread. I used apt-get install python-dev to install python. How do I

embedding Python in a shared library

2009-02-26 Thread Deepak Chandran
I have embedded Python in a shared library. This works fine in Windows (dll), but I get the following error is Ubuntu when I try to load modules: /usr/lib/python2.5/lib-dynload/time.so: error: symbol lookup error: undefined symbol: PyExc_ValueError I found many postings on this issue on the

embedding Python in a shared library

2009-02-10 Thread Deepak Chandran
I have embedded Python in a shared library. This works fine in Windows (dll), but I get the following error is Ubuntu when I try to load modules: /usr/lib/python2.5/lib-dynload/*time.so*: error: symbol lookup error: * undefined* symbol: PyExc_ValueError I found many postings on this issue on

Embedded python output capture

2009-02-04 Thread Deepak Chandran
I have a program with embedded Python. If the python code has print statements, how do I retrieve those values (which normally go to stdout)? The output from Py_RunString is just NULL Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding numpy works once, but not twice??

2009-02-01 Thread Deepak Chandran
I sort of guessed that was the issue -- doing Py_Initialize/Py_Finalize more than once. Thanks for the help. On Sun, Feb 1, 2009 at 12:43 AM, Gabriel Genellina gagsl-...@yahoo.com.arwrote: En Sun, 01 Feb 2009 03:47:27 -0200, Deepak Chandran dchandr...@tinkercell.com escribió: I have

Embedding numpy works once, but not twice??

2009-01-31 Thread Deepak Chandran
I have a program in which I have successfully embedded Python. Now, I want to include NumPy as well (and other modules). I am able to import numpy once. Then I close the python console in my program and then re-open it. When I try to import numpy for a second time, the program crashes. Below is a