Export to GitHub

pyactivemq - issue #2

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


Posted on Jan 13, 2007 by Massive Kangaroo

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.

Comment #1

Posted on Jan 13, 2007 by Massive Kangaroo

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.

Comment #2

Posted on Jan 13, 2007 by Massive Kangaroo

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.

Status: Fixed

Labels:
Type-Defect Priority-Medium