2010/1/26 Natschläger Thomas <Tho...@sc...>:
> Hi!
>
> In the past we have developed (under Linux) a python wrapper to PCSIM and I
> was quite lucky using Py++.
>
> Now I have ported this to Windows and where I am using Python 2.6.4
> (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 as
> well as Boost 1.40 ( installer from http://www.boostpro.com/download)
>
> Compiling an linking is fine but when loading the module I get:
>
>>>> import pypcsim
>
> Traceback (most recent call last):
>
> File "<stdin>", line 1, in <module>
>
> AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is
> read-only
>
>
> I googled to find a solution and found some hints that def_readlonly( … )
> may cause this (see e.g.
> http://mail.python.org/pipermail/cplusplus-sig/2009-August/014767.html). So
> I manually removed all the def_readlonly from the generated code but the
> problem still remains!
Hmm.
Can you say what version of boost and Py++ you use?
According to the link
(http://mail.python.org/pipermail/cplusplus-sig/2009-August/014767.html),
the problem has nothing to do with Py++. The code is valid
Boost.Python one. Can you create a small example which reproduce your
problem?
Thanks.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|