Never mind, those single quotes looked like one double quote on my screen
From: cplusplus-sig-bounces+wladwig=wdtinc@python.org
[cplusplus-sig-bounces+wladwig=wdtinc@python.org] On Behalf Of William
Ladwig [wlad...@wdtinc.com]
Sent: Monday, J
Does the name of the module defined in your BOOST_PYTHON_MODULE section match
the name of the .so file (assuming you are using Linux)? That's usually the
error I get when I have a name mismatch.
Also, I haven't really used scons, but shouldn't this:
env.SharedLibrary(target='cylucene', sourc
take a look at:
http://www.boost.org/doc/libs/1_39_0/libs/python/doc/v2/indexing.html
BR
On Mon, Jul 6, 2009 at 8:07 PM, Alexey Akimov wrote:
> I have some class X that contains a variable which is a pointer to some
> other class OtherClass (for simplicity we may imagine it can be some
> standar
Hello,
I am trying to build a python extension with scons but the resulting
library cannot be loaded:
ImportError: dynamic module does not define init function (initcylucene)
I am using the following SConstruct file:
FILES = ['typeconversion.cpp', 'document.cpp', 'search.cpp', 'queryparser.cp
I have some class X that contains a variable which is a pointer to some
other class OtherClass (for simplicity we may imagine it can be some
standard c++ type - int, double, etc.):
class X{
public:
OtherClass* variable;
};
my question is: how can I expose it to python such that user may ac
I'm using gcc/linux and python >= 2.4 and works fine for me.
On Mon, Jul 6, 2009 at 7:39 AM, Paul Scruby wrote:
> Hello again,
>
> Sorry, I spoke too soon. The good news is that wrapping my virtual method
> calls into Python between PyGILState_Ensure() and PyGILState_Release() fixed
> the crash
Hello again,
Sorry, I spoke too soon. The good news is that wrapping my virtual method
calls into Python between PyGILState_Ensure() and PyGILState_Release() fixed
the crash under Python2.6.2 on Windows, but not when I tested it again under
Python 2.4.4 on Solaris. Under Python 2.4.4 on Solar
Hiya,
That's fantastic, all I needed to do was to put PyGILState_Ensure(); before
my virtual function calls into python from another thread and my program no
longer crashes. Problem solved, isn't boost::python great!
Many thanks,
Paul
"Renato Araujo" wrote in message
news:95291a8090704131