failed assert when importing a boost.python-created library from an embedded python interpreter

Kevin Killingsworth kk71878 at hotmail.com
Fri Mar 8 15:12:29 EST 2002
Hello,

I'm very close to doing something very cool (IMO), but I've got one
last roadblock before I can get there.  First off, I've got a C++
program that has an embedded Python interpreter.  I want the Python
interpreter to share the same datamodel as the C++ program itself, so
I created a Boost.python (www.boost.org) library out of my datamodel. 
It loads perfectly from a command-line python interpreter, but not the
one that is embedded inside my program.  It comes up with this:

classinfo.cxx:37: class_descriptor::class_descriptor(const char*,
unsigned int, void (*)(object*)): Assertion `!find_class(class_name)'
failed.

I can import sys and such, but not my own library (perhaps because
it's not builtin?)  I know I'm probably just missing a step, but I
have looked through the docs and can't find it.  Can anyone help?

Thanks,

--Kevin Killingsworth



More information about the Python-list mailing list