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!

 

Any Ideas?

 

Regards

 

  -thomas

 

-------------------------------------------------------------------------------------

Dr. Thomas Natschläger

Software Competence Center Hagenberg

Softwarepark 21, A-4232 Hagenberg, Austria

UID: ATU 48056909 - FN: 184145b, Landesgericht Linz

Tel: ++43 7236 3343-868 Fax: ++43 7236 3343-888

thomas.natschlaeger@scch.at, www.scch.at