[Bugs] #4926 Physics HIGH: physics-28 fails to start on fedora 18 i386

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jan 11 19:55:28 EST 2016


#4926: physics-28 fails to start on fedora 18 i386
----------------------+-------------------------------
  Reporter:  quozl    |            Owner:
      Type:  defect   |           Status:  new
  Priority:  High     |        Milestone:  Unspecified
 Component:  Physics  |          Version:  Unspecified
  Severity:  Major    |       Resolution:
  Keywords:           |  Distribution/OS:  Unspecified
Bug Status:  New      |
----------------------+-------------------------------

Comment (by quozl):

 Thanks for the ideas.  I've tried them, but it doesn't work, with
 {{{
   File "/home/olpc/Activities/Physics.activity/lib/box2d_32/Box2D.py", \
     line 28, in swig_import_helper
     _mod = imp.load_module('_Box2D', fp, pathname, description)
 ImportError: dynamic module does not define init function (init_Box2D)
 }}}

 What I did was;
  * install Box2D-2.2.1-3.fc18.i686.rpm,
  * copy /usr/lib/libBox2D.so.2.1.0 to lib/box2d_32/_Box2d.so
  * simplified lib/Box2D.py to only {{{from box2d_32 import *}}}

 Then, since the Fedora 18 system already had pybox2d-2.0.2b2-8, I tried
 that too;
  * copy /usr/lib/python2.7/site-
 packages/Box2D/{Box2D.py,__init__.py,_Box2d.so} to lib/box2d_32/

 That gave me:
 {{{
   File "/home/olpc/Activities/Physics.activity/myelements/elements.py", \
     line 655, in <module>
     class Query_CB(box2d.b2QueryCallback):
 AttributeError: 'module' object has no attribute 'b2QueryCallback'
 }}}

 Which says that the new code in Physics depends on new features of Box2d?

--
Ticket URL: <https://bugs.sugarlabs.org/ticket/4926#comment:20>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list