Re: [C++-sig] [py++] AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only

2009-08-24 Thread Anderson Lizardo
On Thu, Aug 20, 2009 at 5:10 AM, Vaclav Smilauer wrote:
> Hi everybody,
>
> I have a small wrapper for a few geometry classes generated; it works on boost
> 1.34--1.37. I tried to compile and run on boost 1.39 (Boost::python doesn't
> seem to be mentioned in changelogs for 1.38 or 1.39 though) and I am getting
> this error:
>
> Traceback (most recent call last):
>  File "debian/yade-bzr1703-dbg/usr/lib/yade-bzr1703-dbg/gui/PythonUI_rc.py",
> line 11, in 
>    from miniWm3Wrap import *
> AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is
> read-only
>
> I only googled the same error at http://de.pastebin.ca/1535109 (which concerns
> pySide), but no solution. What am I doing wrong?

Are you using Ubuntu 9.10 (karmic)?

We are trying to fix the very same issue on PySide, and so far the
problem seems only to happen on Karmic. On Ubuntu 9.04 (jaunty) the
same binary package works fine.

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


[C++-sig] why am I getting a Boost.Python.ArgumentError?

2009-08-24 Thread Tom Haynes
When trying to called a wrapped method (getName) from python, I get
the following error:

return self.geometry.getName()
Boost.Python.ArgumentError: Python argument types in
Geometry.getName(Geometry)
did not match C++ signature:
getName(gfx::Geometry {lvalue})

I don't understand why these don't match, though.  It seems to say
that the C++ signature is Geometry::getName() (which is true) ... and
that's how I'm calling it from python.  If I "print self.geometry" I
get that it is a gfx.Geometry object.

Thanks for your help.

-tom
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig