[C++-sig] Type converter not found for property

Wichert Akkerman wichert at wiggy.net
Thu May 9 08:55:07 CEST 2013


On May 8, 2013, at 23:31 , "Alex Leach" <beamesleach at gmail.com> wrote:

> That error means the type_id of uuid is not in the bp registry.
> 
> I think you can fix this by deriving uuid_to_python from to_python_converter, as demonstrated in the pytype_function example[1]. This will add the get_pytype function call, and on initialisation, should hopefully add what's missing: a call to `registry::lookup`[2].

I'm afraid that doesn't work. To test this I changes my converter struct to derive from bp::converter::wrap_pyttype<&PyStringType> and pass has_get_type=true to the to_python_converter call, but I still get the exact same error.

Regards,
Wichert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20130509/24c85662/attachment.html>


More information about the Cplusplus-sig mailing list