[SoaS] Physics fails in SoaS-34

Alex Perez aperez at alexperez.com
Wed Feb 17 13:00:26 EST 2021


Frederick,

Thanks. This is a known issue with Physics 35 and Sugar 0.118, and is
being tracked here:https://github.com/sugarlabs/physics/issues/50

Frederick Grose wrote on 2/17/21 9:38 AM:
> See https://bugs.sugarlabs.org/ticket/4999
> logs attached there.
>
> From Physics log:
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 562, in do_get_preferred_height
>     surface = self._buffer.get_surface()
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 370, in get_surface
>     handle = self._load_svg(icon_info.file_name)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 197, in _load_svg
>     return self._loader.load(file_name, entities, self.cache)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 140, in load
>     return Rsvg.Handle.new_from_data(icon.encode('utf-8'))
> gi.repository.GLib.Error: rsvg-error-quark: XML parse error: error
> code=201 (3) in (null):22:40: Namespace prefix inkscape for
> connector-curvature on path is not defined
>  (0)
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 574, in do_get_preferred_width
>     surface = self._buffer.get_surface()
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 370, in get_surface
>     handle = self._load_svg(icon_info.file_name)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 197, in _load_svg
>     return self._loader.load(file_name, entities, self.cache)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 140, in load
>     return Rsvg.Handle.new_from_data(icon.encode('utf-8'))
> gi.repository.GLib.Error: rsvg-error-quark: XML parse error: error
> code=201 (3) in (null):22:40: Namespace prefix inkscape for
> connector-curvature on path is not defined
>  (0)
> Traceback (most recent call last):
>   File "/usr/lib64/python3.9/site-packages/gi/_propertyhelper.py",
> line 401, in obj_set_property
>     prop.fset(self, value)
>   File "/usr/lib/python3.9/site-packages/sugar3/activity/activity.py",
> line 612, in set_active
>     self.save()
>   File "/usr/lib/python3.9/site-packages/sugar3/activity/activity.py",
> line 978, in save
>     self.write_file(file_path)
>   File "/usr/share/sugar/activities/Physics.activity/activity.py",
> line 129, in write_file
>     self.game.write_file(file_path)
>   File "/usr/share/sugar/activities/Physics.activity/physics.py", line
> 78, in write_file
>     self.world.add.remove_mouseJoint()
> AttributeError: 'PhysicsGame' object has no attribute 'world'
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 587, in do_draw
>     surface = self._buffer.get_surface(sensitive, self)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 370, in get_surface
>     handle = self._load_svg(icon_info.file_name)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 197, in _load_svg
>     return self._loader.load(file_name, entities, self.cache)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 140, in load
>     return Rsvg.Handle.new_from_data(icon.encode('utf-8'))
> gi.repository.GLib.Error: rsvg-error-quark: XML parse error: error
> code=201 (3) in (null):22:40: Namespace prefix inkscape for
> connector-curvature on path is not defined
>  (0)
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 587, in do_draw
>     surface = self._buffer.get_surface(sensitive, self)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 370, in get_surface
>     handle = self._load_svg(icon_info.file_name)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 197, in _load_svg
>     return self._loader.load(file_name, entities, self.cache)
>   File "/usr/lib/python3.9/site-packages/sugar3/graphics/icon.py",
> line 140, in load
>     return Rsvg.Handle.new_from_data(icon.encode('utf-8'))
> gi.repository.GLib.Error: rsvg-error-quark: XML parse error: error
> code=201 (3) in (null):22:40: Namespace prefix inkscape for
> connector-curvature on path is not defined
>  (0)
> Terminated by signal 11, pid 1876 activity_id
> fe77a8a253d763333ced8ef2f6955bfa91a4cca2
>
>
>
> _______________________________________________
> SoaS mailing list
> SoaS at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/soas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/soas/attachments/20210217/d891ea73/attachment-0001.htm>


More information about the SoaS mailing list