magickangaroo / pyactivemq

Automatically exported from code.google.com/p/pyactivemq
Apache License 2.0
0 stars 0 forks source link

RuntimeError: extension class wrapper for base class class cms::Destination has not been created yet #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import pyactivemq
2.
3.

What is the expected output? What do you see instead?

When built with Visual Studio 8, the output is:

RuntimeError: extension class wrapper for base class class cms::Destination
has not been created yet

Please use labels and text to provide additional information.

Original issue reported on code.google.com by fullung@gmail.com on 13 Jan 2007 at 1:37

GoogleCodeExporter commented 8 years ago
According to this thread:

http://mail.python.org/pipermail/c++-sig/2004-March/006991.html

defining BOOST_PYTHON_TYPE_ID_NAME might be the way to fix this problem. But 
when I
do this with Visual Studio 8, there's a crash when importing the module.

Will investigate further.

Original comment by fullung@gmail.com on 13 Jan 2007 at 1:38

GoogleCodeExporter commented 8 years ago
A boost::python::error_already_set was being thrown inside the class_ stuff for
Topic, which derives from Destination. I moved the class_ for Destination to 
precede
its derived classes and the problem went away.

Original comment by fullung@gmail.com on 13 Jan 2007 at 1:59