[Bugs] #4976 Physics UNSP: Physics 26 & 31 fail to start in SoaS 26 alpha

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Apr 24 22:26:26 EDT 2017


#4976: Physics 26 & 31 fail to start in SoaS 26 alpha
----------------------------------------+-------------------------------
  Reporter:  FGrose                     |            Owner:
      Type:  defect                     |           Status:  new
  Priority:  Unspecified by Maintainer  |        Milestone:  Unspecified
 Component:  Physics                    |          Version:  Unspecified
  Severity:  Unspecified                |       Resolution:
  Keywords:                             |  Distribution/OS:  Fedora
Bug Status:  New                        |
----------------------------------------+-------------------------------

Comment (by quozl):

 Thanks.  Your logs showed

 {{{
 Traceback (most recent call last):
   File "/usr/bin/sugar-activity", line 220, in <module>
     main()
   File "/usr/bin/sugar-activity", line 164, in main
     module = __import__(module_name)
   File "/home/liveuser/Activities/Physics.activity/activity.py", line 61,
     in <module> import tools
   File "/home/liveuser/Activities/Physics.activity/tools.py", line 39, in
 <module>
     import Box2D as box2d
   File "/usr/lib64/python2.7/site-packages/Box2D/__init__.py", line 19, in
 <module>
     from .Box2D import *
   File "/usr/lib64/python2.7/site-packages/Box2D/Box2D.py", line 435, in
 <module>
     _Box2D.RAND_LIMIT_swigconstant(_Box2D)
 AttributeError: 'module' object has no attribute 'RAND_LIMIT_swigconstant'
 }}}

 Also occurs in Fedora without Physics, using a Python shell;

 {{{
 $ python
 >>> import Box2D
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib64/python2.7/site-packages/Box2D/__init__.py", line 19, in
 <module>
     from .Box2D import *
   File "/usr/lib64/python2.7/site-packages/Box2D/Box2D.py", line 435, in
 <module>
     _Box2D.RAND_LIMIT_swigconstant(_Box2D)
 AttributeError: 'module' object has no attribute 'RAND_LIMIT_swigconstant'
 >>>
 }}}

 If you can reproduce that, then it isn't a problem with Physics, but a
 problem with pybox2d on Fedora.  Please redirect the report to Fedora
 pybox2d, thanks.

 Fedora package of Physics does remove bundled libraries
 https://src.fedoraproject.org/cgit/rpms/sugar-physics.git/tree/sugar-
 physics.spec#n28 and testing Physics 31 should have bypassed that, but
 didn't.  This is because of a problem in python module search path of
 activity; the bundled libraries were hidden again when you tested Physics
 31.  Search path fix is in https://github.com/sugarlabs/sugar-toolkit-
 gtk3/commit/495eed8737afa53e13878929e386c3e604a65818

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


More information about the Bugs mailing list