[Sugar-devel] GSOC Project Update - 24th June 2020
Saumya Mishra
2017230 at iiitdmj.ac.in
Wed Jun 24 12:37:14 EDT 2020
Hello all,
Update on project - Port Sugar and core activities to Python3 , is as
follows-
*Work on regressions made by earlier Python3 Ports :*
*Sugar - Tested with Ubuntu 20.04 sucrose package version 0.117*
- Following traceback occurs while adding another user as a friend in
the neighbourhood.
Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/jarabe/view/buddymenu.py", line 205, in _make_friend_cb
> friends.get_model().makefriend(self._buddy)
> File "/usr/lib/python3/dist-packages/jarabe/model/friends.py", line 130, in make_friend
> self.save()
> File "/usr/lib/python3/dist-packages,jarabe/model/friends.py", line 160, in save
> cp.add_section(section)
> File "/usr/lib/python3.8/configparser.py", line 1207, in add_section
> self._validate_value_types(section=section)
> File "/usr/lib/python3.8/configparser.py", line 1180, in _validate_value_types
> raise TypeError("section names must be strings")
> TypeError: section names must be strings
>
>
Link to commit - bfae3952280680b2f77ca0788f427fd5d4080cea
<https://github.com/sugarlabs/sugar/pull/921/commits/bfae3952280680b2f77ca0788f427fd5d4080cea>
- Following error occurs while removing the same user as a friend. The
friend's icon was not able to delete and was unnecessarily making* Group*
view (F2) messy .
Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/jarabe/desktop/groupbox.py", line 67, in _friend_removed_cb
> icon = self._friend[key]
> KeyError: "b'AAAA0311271kc3MAAAC0AOIAMWawHelN6d5s8r8rZpjFXzrxtHevzwrJQlzIoMgelxlKjUUSSUIOWIZgLbFLaWmavloOwIZYiFMS/2MXmb7PvWT0Mlmx1y9A3Am3y0XP5870uYNgXJ4UgL9lGX6uz3ExsqcG9X5X5wbwIJ1ckQxXnxf2VxwUxBd2p4B/tPG1AAAAFQCN1CuSl6JjCOm4RS+nCuI3mIlalwAAAIEA6YEg849ugww7gpmT7aUHl3qetdtl+/fkL8BxyYnOeaR2Mcs3phrYQNvm2/ac0HA16TqJOoVatoPpD/Z84IBQxU2wNQilhU9VEwiP/+Wrukg3LbU/oyEPnOOJfasR0lgzLL+RR20zLtixer3irlsv2wvZU/9PFbZvuCEzbB3LiC0AAACBAOWzSUShSPWHQGKALTyWTvl481IIxPwizbKmraEeKm3xvqB8dP5Hy2QQlRXZrb1QgMDoARRYxzUoO8/PKzLSpFYoQvF9v31DtJGkNilNdfRuiJTWZJah3DBYMAiPHU478DH3zcHbRYI4Prkmu00v+smv7qSUhDQrClMF+ka6mJN4'"
>
>
>
Link to commit - 8a065b3
<https://github.com/sugarlabs/sugar/pull/921/commits/8a065b3beda0bb93c8c52bb62a264565ced554d5>
***The above errors can be seen also in Sugar 0.117-3 on Debian 10.04 as
mentioned in mailing list
<http://lists.sugarlabs.org/archive/sugar-devel/2020-June/058444.html> by
@shaansubbaiah.cs18 at bmsce.ac.in <shaansubbaiah.cs18 at bmsce.ac.in> .
*Browse Activity - *
- Following Traceback occurs in Host's Browse log when Guest connects. A
regression introduced due to Collabwrapper.
Traceback (most recent call last):
> File "/usr/share/sugar/activities/Browse.activity/collabwrapper.py", line 688, in __notify_state_cb
> input_stream = self._get_input_stream()
> File "/usr/share/sugar/activities/Browse.activity/collabwrapper.py", line 736, in _get_input_stream
> return Gio.MemoryInputStream.new_from_data(self._blob, None)
> TypeError: Item 0: Must be number, not str
>
>
Link to commit - 1374056
<https://github.com/sugarlabs/browse-activity/pull/111/commits/13740569a1d99e13760e2d1f2e3a829844879ec3>
<https://github.com/sugarlabs/sugar/pull/921/commits/bfae3952280680b2f77ca0788f427fd5d4080cea>
- A minor error found during source code review. Link to commit - 0d4efb5
<https://github.com/sugarlabs/browse-activity/pull/111/commits/0d4efb51b6e1bb6cd8b11262e729c9a8e8334087>
- Typing in the address bar causes several of warnings in activity log :
(sugar-activity3:7184): Gtk-WARNING **: 16:25:08.511: Failed to set
text from markup due to error parsing mar
> kup: Error on line 2: Entity did not end with a semicolon; most likely you used an ampersand character withou
> t intending to start an entity — escape ampersand as &
>
>
Link to commit - eada142
<https://github.com/sugarlabs/browse-activity/pull/111/commits/eada14236240cdac162dd0a3be63249e78721d41>
***The above errors can be seen also with Sugar 0.117-3 on Debian 10.04 as
mentioned in mailing list
<http://lists.sugarlabs.org/archive/sugar-devel/2020-June/058458.html>by
@shaansubbaiah.cs18 at bmsce.ac.in <shaansubbaiah.cs18 at bmsce.ac.in> .
Test *Collaboration *of different *fructose* activities-
*Write Activity* - Collaboration does not work with following error in
shell.log
File "/usr/lib/python3/dist-packages/jarabe/desktop/meshbox.py" , line
409, in _buddy_removed_cb
> self._remove_buddy(buddy_model)
> File "/usr/lib/python3/dist-packages/jarabe/desktop/meshbox.py" , line435, in _remove_buddy
> icon = self._buddies[buddy_model.props.key]
> KeyError: dbus.ByteArray(b'AAAAB3NzaC1kc3....=' ,variant_level=1)
>
> Tested with Ubuntu 20.04 sucrose version 0.117
- package libabiword-3.0:amd64 version 3.0.4~dfsg-1
- package sugar-write-activity version 101-1
For more details see - https://github.com/sugarlabs/write-activity/issues/40
*Browse Activity - *Collaboration works i.e. when joined the shared
instance does share the bookmarks. However same error can also be seen in
shell.log
File "/usr/lib/python3/dist-packages/jarabe/desktop/meshbox.py" , line
409, in _buddy_removed_cb
> self._remove_buddy(buddy_model)
> File "/usr/lib/python3/dist-packages/jarabe/desktop/meshbox.py" , line435, in _remove_buddy
> icon = self._buddies[buddy_model.props.key]
> KeyError: dbus.ByteArray(b'AAAAB3NzaC1kc3....=' ,variant_level=1)
>
>
*Cookie Search -*
- Work on Port to Python3 , Port to TelepathyGLIb
- Fix Gtk Clipboard TypeError
TypeError: Gtk.Clipboard.set_text() takes exactly 3 arguments (2 given)
>
>
- Port to Collabwrapper and fix collaboration
Link to Pull Request -
https://github.com/sugarlabs/cookie-search-activity/pull/21
*Arithmetic* -
- Tested with Ubuntu 20.04 sucrose package. The activity icon doesn't
appear and following error can be seen in log -
gi.repository.GLib.Error: rsvg-error-quark: XML parse error: error
code=201 (3) in (null):31:50: Namespace prefix sodipodi for ry on
circle is not defined (0)
>
> Link to commit - ad2abd5
<https://github.com/sugarlabs/arithmetic/pull/6/commits/ad2abd5afcc92185c6768fe5d623fb82fc0c2f71>
- Port to Gtk3 , Port from gobject to GObject , Port dobject to Gtk3 ,
Port to Python3. (Pull request -#7
<https://github.com/sugarlabs/arithmetic/pull/7> still in progress)
*Analyze Journal -*
Tested on Ubuntu 20.04, it is recently ported to Python3 by @Jui Pradhan
<juipradhan2k at gmail.com> . Following error while clicking on import-freespace
and import-journal buttons respectively -
> Traceback (most recent call last):
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 443, in __import_freespace_cb
> self._graph_from_reader(reader)
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 425, in _graph_from_reader
> self._add_value(None, label=row[0], value=float(row[1]))
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 432, in _add_value
> pos = self.labels_and_values.add_value(label, value)
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 582, in add_value
> _iter = self.model.insert(path, [label, value])
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1007, in insert
> return self._do_insert(position, row)
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 988, in _do_insert
> row, columns = self._convert_row(row)
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 900, in _convert_row
> result.append(self._convert_value(cur_col, value))
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 914, in _convert_value
> return GObject.Value(self.get_column_type(column), value)
> File "/usr/lib/python3/dist-packages/gi/overrides/GObject.py", line 210, in __init__
> self.set_value(py_value)
> File "/usr/lib/python3/dist-packages/gi/overrides/GObject.py", line 249, in set_value
> raise TypeError("Expected string but got %s%s" %
> TypeError: Expected string but got 10590.3046875<class 'float'>
> Traceback (most recent call last):
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 447, in __import_journal_cb
> self._graph_from_reader(reader)
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 425, in _graph_from_reader
> self._add_value(None, label=row[0], value=float(row[1]))
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 432, in _add_value
> pos = self.labels_and_values.add_value(label, value)
> File "/usr/share/sugar/activities/analyzeJournal/activity.py", line 582, in add_value
> _iter = self.model.insert(path, [label, value])
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1007, in insert
> return self._do_insert(position, row)
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 988, in _do_insert
> row, columns = self._convert_row(row)
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 900, in _convert_row
> result.append(self._convert_value(cur_col, value))
> File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 914, in _convert_value
> return GObject.Value(self.get_column_type(column), value)
> File "/usr/lib/python3/dist-packages/gi/overrides/GObject.py", line 210, in __init__
> self.set_value(py_value)
> File "/usr/lib/python3/dist-packages/gi/overrides/GObject.py", line 249, in set_value
> raise TypeError("Expected string but got %s%s" %
> TypeError: Expected string but got 25.0<class 'float'>
>
>
Link to Pull request - https://github.com/sugarlabs/AnalyzeJournal/pull/14
Plan for this week includes
- Test other fructose activities (old commits along with collaboration).
- Test old python3 port commits of sugar-toolkit-gtk3 and sugar-artwork
- Port to Collabwrapper and test & fix collaboration- Yupana ,
colordeducto, story and physics .
I have some health issues from last week. So I couldn't work that much as I
planned . Hope I will get well soon and can start working early as before.
I am researching , meanwhile If someone wants to suggest more sugar
activities with the need of Port to Python3 and fix of collaboration, it
would be great.
Any other suggestion is welcomed.
Thanks
Saumya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200624/9145b337/attachment-0001.htm>
More information about the Sugar-devel
mailing list