<div dir="ltr">Hello all,<div><br></div><div>Update on project - Port Sugar and core activities to Python3 , is as follows-</div><div><br></div><div><b>Work on regressions made by earlier Python3 Ports :</b></div><div><br></div><div><b>Sugar - Tested with Ubuntu 20.04 sucrose package version 0.117</b></div><div><ul><li><div style="">Following traceback occurs while adding another user as a friend in the neighbourhood.</div><div style=""></div></li></ul></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-text-gray gmail-ws-pre-wrap" style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(88,96,105)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;margin-top:10px;margin-bottom:0px;max-width:100%;line-height:1.45;color:rgb(68,77,86);white-space:pre-wrap;overflow:visible;background-color:rgb(234,245,255)">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</pre></pre></blockquote><div><br></div><div> Link to commit - <span style="color:rgb(68,77,86);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:nowrap"><a href="https://github.com/sugarlabs/sugar/pull/921/commits/bfae3952280680b2f77ca0788f427fd5d4080cea">bfae3952280680b2f77ca0788f427fd5d4080cea</a></span></div><div><br></div><div><ul><li>Following error occurs while removing the same user as a friend. The friend's icon was not able to delete and was unnecessarily making<b> Group</b> view (F2) messy .</li></ul></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;margin-top:10px;margin-bottom:0px;max-width:100%;line-height:1.45;color:rgb(68,77,86);white-space:pre-wrap;overflow:visible;background-color:rgb(234,245,255)">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'"
</pre><br class="gmail-Apple-interchange-newline"></blockquote><div><br></div><div> Link to commit - <a href="https://github.com/sugarlabs/sugar/pull/921/commits/8a065b3beda0bb93c8c52bb62a264565ced554d5">8a065b3</a></div><div><br></div><div>***The above errors can be seen also in Sugar 0.117-3 on Debian 10.04 as mentioned in <a href="http://lists.sugarlabs.org/archive/sugar-devel/2020-June/058444.html">mailing list</a> by <a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:shaansubbaiah.cs18@bmsce.ac.in" tabindex="-1">@shaansubbaiah.cs18@bmsce.ac.in</a> .</div><div><br></div><div><b>Browse Activity - </b></div><div><ul><li>Following Traceback occurs in Host's Browse log when Guest connects. A regression introduced due to Collabwrapper.</li></ul></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;margin-top:10px;margin-bottom:0px;max-width:100%;line-height:1.45;color:rgb(68,77,86);white-space:pre-wrap;overflow:visible;background-color:rgb(234,245,255)">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</pre></blockquote><div><br></div><div> Link to commit - <span style="color:rgb(88,96,105);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;text-align:right"><a href="https://github.com/sugarlabs/browse-activity/pull/111/commits/13740569a1d99e13760e2d1f2e3a829844879ec3">1374056</a></span></div><div><a href="https://github.com/sugarlabs/sugar/pull/921/commits/bfae3952280680b2f77ca0788f427fd5d4080cea"></a></div><div><ul><li>A minor error found during source code review. Link to commit - <span style="color:rgb(88,96,105);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;text-align:right"><a href="https://github.com/sugarlabs/browse-activity/pull/111/commits/0d4efb51b6e1bb6cd8b11262e729c9a8e8334087">0d4efb5</a></span></li><li>Typing in the address bar causes several of warnings in activity log : </li></ul><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-text-gray gmail-ws-pre-wrap" style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(88,96,105)"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;margin-top:10px;margin-bottom:0px;max-width:100%;line-height:1.45;color:rgb(68,77,86);white-space:pre-wrap;overflow:visible;background-color:rgb(234,245,255)">(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 &</pre></pre></blockquote></div><div><br></div><div> Link to commit - <span style="color:rgb(88,96,105);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;text-align:right"><a href="https://github.com/sugarlabs/browse-activity/pull/111/commits/eada14236240cdac162dd0a3be63249e78721d41">eada142</a></span></div><div>***The above errors can be seen also with Sugar 0.117-3 on Debian 10.04 as mentioned in <a href="http://lists.sugarlabs.org/archive/sugar-devel/2020-June/058458.html">mailing list </a>by <a class="gmail_plusreply" id="gmail-plusReplyChip-0" href="mailto:shaansubbaiah.cs18@bmsce.ac.in" tabindex="-1">@shaansubbaiah.cs18@bmsce.ac.in</a> .</div><div><br></div><div>Test <b>Collaboration </b>of different <b>fructose</b> activities- </div><div><br></div><div><b>Write Activity</b> - Collaboration does not work with following error in shell.log </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:6px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">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)</code></pre></blockquote><div>Tested with Ubuntu 20.04 sucrose version 0.117</div><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;margin-bottom:0px"><li style="box-sizing:border-box;margin-top:0.25em">package libabiword-3.0:amd64 version 3.0.4~dfsg-1</li><li style="box-sizing:border-box;margin-top:0.25em">package sugar-write-activity version 101-1</li></ul><div>For more details see - <a href="https://github.com/sugarlabs/write-activity/issues/40">https://github.com/sugarlabs/write-activity/issues/40</a></div><div><br></div><div><b>Browse Activity - </b>Collaboration works <b> </b>i.e. when joined the shared instance does share the bookmarks. However same error can also be seen in shell.log </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:6px;color:rgb(106,115,125)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">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)</code></pre></blockquote><div> </div><div><br></div><div><b>Cookie Search -</b> </div><div><ul><li>Work on Port to Python3 , Port to TelepathyGLIb </li><li> Fix Gtk Clipboard TypeError</li></ul></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-text-gray gmail-ws-pre-wrap" style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(88,96,105)">TypeError: Gtk.Clipboard.set_text() takes exactly 3 arguments (2 given)</pre></blockquote><div><ul><li>Port to Collabwrapper and fix collaboration </li></ul><div>Link to Pull Request - <a href="https://github.com/sugarlabs/cookie-search-activity/pull/21">https://github.com/sugarlabs/cookie-search-activity/pull/21</a></div></div><div><br></div><div><b>Arithmetic</b> -</div><div><ul><li>Tested with Ubuntu 20.04 sucrose package. The activity icon doesn't appear and following error can be seen in log -</li></ul><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-text-small" style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;margin-top:5px;margin-bottom:10px;max-width:700px;line-height:1.45;color:rgb(88,96,105);white-space:pre-wrap;background-color:rgb(246,251,255)">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)</pre></blockquote></div><div>Link to commit - <a href="https://github.com/sugarlabs/arithmetic/pull/6/commits/ad2abd5afcc92185c6768fe5d623fb82fc0c2f71">ad2abd5</a></div><div><ul><li>Port to Gtk3 , Port from gobject to GObject , Port dobject to Gtk3 , Port to Python3. (Pull request -<a href="https://github.com/sugarlabs/arithmetic/pull/7">#7</a> still in progress)</li></ul><div><div><b>Analyze Journal -</b></div><div><b><br></b></div><div>Tested on Ubuntu 20.04, it is recently ported to Python3 by <a class="gmail_plusreply" id="gmail-plusReplyChip-1" href="mailto:juipradhan2k@gmail.com" tabindex="-1">@Jui Pradhan</a> . Following error while clicking on <font color="#586069" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="font-size:12px;white-space:pre-wrap">import-freespace and import-journal </span></font>buttons respectively -</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;margin-top:10px;margin-bottom:0px;max-width:100%;line-height:1.45;color:rgb(68,77,86);white-space:pre-wrap;overflow:visible;background-color:rgb(234,245,255)">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'></pre></blockquote><div><br></div><div>Link to Pull request - <a href="https://github.com/sugarlabs/AnalyzeJournal/pull/14">https://github.com/sugarlabs/AnalyzeJournal/pull/14</a></div><div></div></div><div><br></div><div>Plan for this week includes </div></div><div><ul><li>Test other fructose activities (old commits along with collaboration).</li><li>Test old python3 port commits of sugar-toolkit-gtk3 and sugar-artwork</li><li>Port to Collabwrapper and test & fix collaboration- Yupana , colordeducto, story and physics . </li></ul><div>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.</div></div><div>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.</div><div>Any other suggestion is welcomed.</div><div><br></div><div>Thanks </div><div>Saumya</div><div><br></div><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/cd48d659479f6647961ff641c4640123e8f0ffab.png?u=5703751"></div>