<html><head></head><body><div class="ydpab38a858yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr" data-setdir="false">Hello James,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I went through the release notes from 3.24.5 to 3.24.20 at <a href="https://download.gnome.org/sources/gtk+/3.24/" rel="nofollow">https://download.gnome.org/sources/gtk+/3.24/</a>. <br></div><div dir="ltr" data-setdir="false">I could not find anything pertaining to the extra parameters required during initialization. Their changelogs are extremely concise.</div><div><br></div>
</div><div id="yahoo_quoted_4011729135" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Wednesday, July 1, 2020, 4:16:15 AM GMT+5:30, James Cameron <quozl@laptop.org> wrote:
</div>
<div><br></div>
<div><br></div>
<div>Some of what Shaan has seen on Debian Testing and Saumya has<br clear="none">reproduced on Ubuntu 20.04 is most likely caused by the newer version<br clear="none">of GTK, but neither of you reported the version of GTK.<br clear="none"><br clear="none">Debian stable has GTK 3.24.5<br clear="none"><br clear="none">Ubuntu 20.04 has GTK 3.24.18<br clear="none"><br clear="none">Debian unstable has GTK 3.24.20<br clear="none"><br clear="none">You should look at the release notes for GTK between 3.24.5 and<br clear="none">3.24.20.<br clear="none"><br clear="none">By the way, "Don't know color" is in GTK 3.24.18 source code seven<br clear="none">times, in four different widget implementations. You will need to<br clear="none">find which widget reported this. Also, why is it that a string value<br clear="none">has what looks like source code; perhaps a Gdk.Color has been coerced<br clear="none">to string by mistake.<br clear="none"><br clear="none">@Saumya, please don't open issues if you plan to solve the errors. It<br clear="none">is a waste of notifications and achieves nothing. Just open pull<br clear="none">requests, one per problem.<br clear="none"><br clear="none">On Wed, Jul 01, 2020 at 01:04:18AM +0530, Saumya Mishra wrote:<br clear="none">> <br clear="none">> Hello Shaan!!<br clear="none">> <br clear="none">> Nice work.<br clear="none">> I have also tested Calculate version 46-1 with Ubuntu 20.04 sucrose package<br clear="none">> version 0.117.<br clear="none">> All the Errors are reproducible. <br clear="none">> <br clear="none">> 1. Warning when attempting to calculate and expression ( pressing ‘=’ )<br clear="none">> <br clear="none">> 65535 = (Binary) 1111111111111111 = (Hexadecimal) FFFF<br clear="none">> <br clear="none">> Gtk-WARNING **: 19:47:57.736: Don't know color 'Gdk.Color(red=6553<br clear="none">> 5, green=65535, blue=65535)'<br clear="none">> <br clear="none">> Workaround is to use Gdk.RGBA as Gdk.Color is deprecated and will not work with<br clear="none">> newer versions of Ubuntu and Debian.<br clear="none">> <br clear="none">> 1. Error when using ‘pi’ and ‘e’ in expression:<br clear="none">> <br clear="none">> 1593526849.741283 ERROR root: Internal error (<class 'UnboundLocalError'>): local variable<br clear="none">> 'list' referenced before assignment<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 674, in evaluat<br clear="none">> e<br clear="none">> ret = self._process_node(eqn, state)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 444, in _proces<br clear="none">> s_node<br clear="none">> return self._process_node(node.value, state)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 515, in _proces<br clear="none">> s_node<br clear="none">> if [1]node.id not in list(state.used_var_ofs.keys()):<br clear="none">> UnboundLocalError: local variable 'list' referenced before assignment<br clear="none">> <br clear="none">> During handling of the above exception, another exception occurred:<br clear="none">> <br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 518, in process<br clear="none">> res = self.parser.evaluate(tree)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 680, in evaluat<br clear="none">> e<br clear="none">> raise ParseError(msg, 0)<br clear="none">> TypeError: __init__() missing 1 required positional argument: 'eqn'Reproducible on Ubuntu 20.04 <br clear="none">> <br clear="none">> 1. Hovering over Algebraic, Trigonometric toolbar buttons throws:<br clear="none">> <br clear="none">> (sugar-activity3:1791): Gtk-WARNING **: 19:54:34.278: Drawing a gadget with negative dimen<br clear="none">> sions. Did you forget to allocate a size? (node menuitem owner SugarPaletteHeader)-- Warning is Reproducible<br clear="none">> <br clear="none">> 1. Submitting trigonometric functions without values displays an error in the<br clear="none">> Activity but only the first character is highlighted red instead of the<br clear="none">> full function. -- Reproducible on Ubuntu 20.04<br clear="none">> <br clear="none">> 2. Submitting logical expressions without values throws:<br clear="none">> <br clear="none">> 1593527432.306449 DEBUG Calculate: Result: ParseError('Parse error', 6, 'True!=')<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 552, in process<br clear="none">> self.set_error_equation(eqn)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 444, in set_err<br clear="none">> or_equation<br clear="none">> self.set_last_equation(eqn)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 439, in set_las<br clear="none">> t_equation<br clear="none">> self.layout.last_eq.set_buffer(eqn.create_lasteq_textbuf())<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 219, in create_<br clear="none">> lasteq_textbuf<br clear="none">> resstr = str(self.result)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 75, in __str__<br clear="none">> msg = _("Error at '%(a)', position: %(b)") % \<br clear="none">> ValueError: unsupported format character ''' (0x27) at index 14<br clear="none">> <br clear="none">> Reproducile on Ubuntu 20.04 -- We need to implement Exception handlers<br clear="none">> <br clear="none">> 1. Submitting / pressing ‘=’ without entering any value throws<br clear="none">> <br clear="none">> 1593527598.469328 DEBUG root: Parsing preprocessed equation: ''<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 517, in process<br clear="none">> tree = self.parser.parse(s)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 656, in parse<br clear="none">> raise ParseError(msg)<br clear="none">> TypeError: __init__() missing 2 required positional arguments: 'start' and 'eqn'Reproducile on Ubuntu 20.04 -- We need to implement Exception handlers<br clear="none">> <br clear="none">> I will now move forward with solving these errors and opening issues.<br clear="none">> Thanks<br clear="none">> Saumya<br clear="none">> <br clear="none">> On Tue, Jun 30, 2020 at 11:04 PM [2]<a shape="rect" ymailto="mailto:shaansubbaiah.cs18@bmsce.ac.in" href="mailto:shaansubbaiah.cs18@bmsce.ac.in">shaansubbaiah.cs18@bmsce.ac.in</a> <[3]<br clear="none">> <a shape="rect" ymailto="mailto:shaansubbaiah.cs18@bmsce.ac.in" href="mailto:shaansubbaiah.cs18@bmsce.ac.in">shaansubbaiah.cs18@bmsce.ac.in</a>> wrote:<br clear="none">> <br clear="none">> Hello James,<br clear="none">> While testing Sugar 0.117-3 on Debian Bullseye (11 / testing) I have found<br clear="none">> numerous errors which were not present while testing on Debian Buster (10 /<br clear="none">> stable).<br clear="none">> Both versions of the activity are the same, 46. There have been a few<br clear="none">> changes made a week back:<br clear="none">> <br clear="none">> □ fix recommend python3-matplotlib (not python-matplotlib); closes: bug#<br clear="none">> 938584, thanks to Sandro Tosi * fix provide ${python3:Provides} (not $<br clear="none">> {python:Provides})<br clear="none">> <br clear="none">> I will investigate further and report back.<br clear="none">> <br clear="none">> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br clear="none">> <br clear="none">> Calculate<br clear="none">> <br clear="none">> 1. Warning when ateempting to calculate and expression ( pressing ‘=’ )<br clear="none">> <br clear="none">> 65535 = (Binary) 1111111111111111 = (Hexadecimal) FFFF<br clear="none">> <br clear="none">> Gtk-WARNING **: 19:47:57.736: Don't know color 'Gdk.Color(red=6553<br clear="none">> 5, green=65535, blue=65535)'<br clear="none">> <br clear="none">> 1. Error when using ‘pi’ and ‘e’ in expression:<br clear="none">> <br clear="none">> 1593526849.741283 ERROR root: Internal error (<class 'UnboundLocalError'>): local variable<br clear="none">> 'list' referenced before assignment<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 674, in evaluat<br clear="none">> e<br clear="none">> ret = self._process_node(eqn, state)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 444, in _proces<br clear="none">> s_node<br clear="none">> return self._process_node(node.value, state)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 515, in _proces<br clear="none">> s_node<br clear="none">> if [4]node.id not in list(state.used_var_ofs.keys()):<br clear="none">> UnboundLocalError: local variable 'list' referenced before assignment<br clear="none">> <br clear="none">> During handling of the above exception, another exception occurred:<br clear="none">> <br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 518, in process<br clear="none">> res = self.parser.evaluate(tree)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 680, in evaluat<br clear="none">> e<br clear="none">> raise ParseError(msg, 0)<br clear="none">> TypeError: __init__() missing 1 required positional argument: 'eqn'<br clear="none">> <br clear="none">> 1. Hovering over Algebraic, Trigonometric toolbar buttons throws:<br clear="none">> <br clear="none">> (sugar-activity3:1791): Gtk-WARNING **: 19:54:34.278: Drawing a gadget with negative dimen<br clear="none">> sions. Did you forget to allocate a size? (node menuitem owner SugarPaletteHeader)<br clear="none">> <br clear="none">> 1. Submitting trigonometric functions without values displays an error in<br clear="none">> the Activity but only the first character is highlighted red instead of<br clear="none">> the full function.<br clear="none">> <br clear="none">> 2. Submitting logical expressions without values throws:<br clear="none">> <br clear="none">> 1593527432.306449 DEBUG Calculate: Result: ParseError('Parse error', 6, 'True!=')<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 552, in process<br clear="none">> self.set_error_equation(eqn)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 444, in set_err<br clear="none">> or_equation<br clear="none">> self.set_last_equation(eqn)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 439, in set_las<br clear="none">> t_equation<br clear="none">> self.layout.last_eq.set_buffer(eqn.create_lasteq_textbuf())<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 219, in create_<br clear="none">> lasteq_textbuf<br clear="none">> resstr = str(self.result)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 75, in __str__<br clear="none">> msg = _("Error at '%(a)', position: %(b)") % \<br clear="none">> ValueError: unsupported format character ''' (0x27) at index 14<br clear="none">> <br clear="none">> 1. Submitting / pressing ‘=’ without entering any value throws<br clear="none">> <br clear="none">> 1593527598.469328 DEBUG root: Parsing preprocessed equation: ''<br clear="none">> Traceback (most recent call last):<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/layout.py", line 133, in <lambda><br clear="none">> lambda w: self._parent.process()],<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/calculate.py", line 517, in process<br clear="none">> tree = self.parser.parse(s)<br clear="none">> File "/usr/share/sugar/activities/Calculate.activity/astparser.py", line 656, in parse<br clear="none">> raise ParseError(msg)<br clear="none">> TypeError: __init__() missing 2 required positional arguments: 'start' and 'eqn'<br clear="none">> <br clear="none">> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br clear="none">> <br clear="none">> Best,<br clear="none">> Shaan<br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> Sugar-devel mailing list<br clear="none">> [5]<a shape="rect" ymailto="mailto:Sugar-devel@lists.sugarlabs.org" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br clear="none">> [6]<a shape="rect" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br clear="none">> <br clear="none">> *<br clear="none">> <br clear="none">> References:<br clear="none">> <br clear="none">> [1] <a shape="rect" href="http://node.id/" target="_blank">http://node.id/</a><br clear="none">> [2] mailto:<a shape="rect" ymailto="mailto:shaansubbaiah.cs18@bmsce.ac.in" href="mailto:shaansubbaiah.cs18@bmsce.ac.in">shaansubbaiah.cs18@bmsce.ac.in</a><br clear="none">> [3] mailto:<a shape="rect" ymailto="mailto:shaansubbaiah.cs18@bmsce.ac.in" href="mailto:shaansubbaiah.cs18@bmsce.ac.in">shaansubbaiah.cs18@bmsce.ac.in</a><br clear="none">> [4] <a shape="rect" href="http://node.id/" target="_blank">http://node.id/</a><br clear="none">> [5] mailto:<a shape="rect" ymailto="mailto:Sugar-devel@lists.sugarlabs.org" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br clear="none">> [6] <a shape="rect" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br clear="none"><br clear="none">-- <br clear="none">James Cameron<br clear="none"><a shape="rect" href="http://quozl.netrek.org/" target="_blank">http://quozl.netrek.org/</a><div class="yqt7252312739" id="yqtfd67043"><br clear="none">_______________________________________________<br clear="none">Sugar-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:Sugar-devel@lists.sugarlabs.org" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br clear="none"><a shape="rect" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br clear="none"></div></div>
</div>
</div></body></html>