r1990: AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only

Bug #512223 reported by Anton Gladky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Unassigned

Bug Description

When I start YADE, I get:

...
...
FIXME: class Wall does not register with YADE_CLASS_BASE_DOC_ATTRS yet
/home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py:51: RuntimeWarning: to-Python converter for boost::shared_ptr<OpenGLRenderingEngine> already registered; second conversion method ignored.
  boot.initialize(plugins)
/home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py:51: RuntimeWarning: to-Python converter for boost::shared_ptr<CpmPhys> already registered; second conversion method ignored.
  boot.initialize(plugins)
Traceback (most recent call last):
  File "./../bin/yade-test2", line 36, in <module>
    import yade
  File "/home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py", line 52, in <module>
    import system
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only
Segmentation fault

Related branches

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Looks similar to bug #416335 in yade, i.e. duplicate of bug #457688; can you try the solution proposed there (boost::python from ppa)? Is your karmic(or other version?) installation up-to-date? My computer runs karmic and I have not this issue.

Besides, the double registration of OpenGLRenderingEngine and Srializable suggests there might be old module being loaded, is your installation clean?

Cheers, Vaclav

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 512223] Re: r1990 segmentation fault

Yes, my Karmic is always updated and the installation is clean.
The problem appeared only in 1990 revision. 1989 works without errors.

______________________________
Anton Gladkyy

2010/1/25 Václav Šmilauer <email address hidden>

> Looks similar to bug #416335 in yade, i.e. duplicate of bug #457688; can
> you try the solution proposed there (boost::python from ppa)? Is your
> karmic(or other version?) installation up-to-date? My computer runs
> karmic and I have not this issue.
>
> Besides, the double registration of OpenGLRenderingEngine and
> Srializable suggests there might be old module being loaded, is your
> installation clean?
>
> Cheers, Vaclav
>
> --
> r1990 segmentation fault
> https://bugs.launchpad.net/bugs/512223
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> When I start YADE, I get:
>
> ...
> ...
> FIXME: class Wall does not register with YADE_CLASS_BASE_DOC_ATTRS yet
> /home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py:51:
> RuntimeWarning: to-Python converter for
> boost::shared_ptr<OpenGLRenderingEngine> already registered; second
> conversion method ignored.
> boot.initialize(plugins)
> /home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py:51:
> RuntimeWarning: to-Python converter for boost::shared_ptr<CpmPhys> already
> registered; second conversion method ignored.
> boot.initialize(plugins)
> Traceback (most recent call last):
> File "./../bin/yade-test2", line 36, in <module>
> import yade
> File
> "/home/gladk/dem/yade/test3/build/lib/yade-test2/py/yade/__init__.py", line
> 52, in <module>
> import system
> AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is
> read-only
> Segmentation fault
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/yade/+bug/512223/+subscribe
>

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: r1990 segmentation fault

I have just tried to compile r1990 on another machine, and it gives the same result.

Revision history for this message
Václav Šmilauer (eudoxos) wrote :
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Ok, thank you. It helped.

http://<email address hidden>/msg00420.html
As I understand in Lucid default boost will be at least 1.40

But now, I think we should add this workaround somewhere.
Where is it better to so it? What do you think?

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

r1991 detects the issue and tells the user what to do.

summary: - r1990 segmentation fault
+ r1990: AttributeError: 'Boost.Python.StaticProperty' object attribute
+ '__doc__' is read-only
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Fixed by boost::python in karmic-updates

Changed in yade:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.