Re: Announcing OLPC OS 13.2.3 for XO-1.75 and XO-4
On Mon, Mar 30, 2015 at 01:48:13PM +1100, James Cameron wrote: > On Wed, Mar 25, 2015 at 10:05:12AM -0400, Walter Bender wrote: > > (2) When I went to the CP section to update, the progress-bar filled > > in completely, but then it sat, with no indication of whether or not > > everything was up-to-date. Nothing in the logs. > > Packet tracing shows it is contacting activities.sugarlabs.org, using > the aslo.py backend, but ASLO doesn't know about 0.104, and gives > empty XML responses. > > The download complete callback also fails, because the result passed > by the downloader does not have a method get_data: > > AttributeError: 'Bytes' object has no attribute 'get_data' > > After reconfiguring to use the microformat updater, the same message > occurs. > > This message may be because an older version of libsoup is being > used in this Fedora 18 build. I was wrong. The message is caused by a bug in gobject-introspection which fails to make the g_bytes_get_data method available to Python. The bug occurs in Fedora 18, and is gone in Fedora 20. Workaround is a patch to use unref_to_array instead of get_data, but this won't work on later versions of gobject-introspection. http://dev.laptop.org/~quozl/y/1YcSik.txt With the switch to microformat backend, and this patch, the updater works now. It has offered TurtleBlocks and Pippy updates. The change in gobject-introspection which fixes it is in gir/glib-2.0.c in the g_bytes_* sections. Being tracked at http://dev.laptop.org/ticket/12878 p.s. the ASLO backend also has a bug were it will stall the update under certain conditions. The underlying cause is that __downloader_complete_cb may return without emitting the check-complete signal. -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Announcing OLPC OS 13.2.3 for XO-1.75 and XO-4
On Mon, Mar 30, 2015 at 12:14:13AM -0300, Gonzalo Odiard wrote: > I have added version 0.104 to aslo. > Do you have a different result now? No. My guess is that activities are not marked as compatible with 0.104. Example: % wget -q -O - 'http://activities.sugarlabs.org/services/update-aslo.php?id=org.laptop.Terminal&appVersion=0.104' && echo http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:em="http://www.mozilla.org/2004/em-rdf#";> % wget -q -O - 'http://activities.sugarlabs.org/services/update-aslo.php?id=org.laptop.Terminal&appVersion=0.102' && echo http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:em="http://www.mozilla.org/2004/em-rdf#";> 43 {3ca105e0-2280-4897-99a0-c277d1b733d2} 0.98 0.102 http://download.sugarlabs.org/activities/4043/terminal-43.xo 169 http://activities.sugarlabs.org/versions/updateInfo/32045/%APP_LOCALE%/ sha256:bc62d0fe1e85dd96291d88ccd1286fe56f386c2eed4ecffcde62f762f0851618 > > Gonzalo > > On Sun, Mar 29, 2015 at 11:48 PM, James Cameron <[1]qu...@laptop.org> wrote: > > On Wed, Mar 25, 2015 at 10:05:12AM -0400, Walter Bender wrote: > > (2) When I went to the CP section to update, the progress-bar filled > > in completely, but then it sat, with no indication of whether or not > > everything was up-to-date. Nothing in the logs. > > Packet tracing shows it is contacting [2]activities.sugarlabs.org, using > the aslo.py backend, but ASLO doesn't know about 0.104, and gives > empty XML responses. > > The download complete callback also fails, because the result passed > by the downloader does not have a method get_data: > > AttributeError: 'Bytes' object has no attribute 'get_data' > > After reconfiguring to use the microformat updater, the same message > occurs. > > This message may be because an older version of libsoup is being > used in this Fedora 18 build. A fix may be to backport to Fedora 18 > Daniel Drake's change to src/jarabe/util/downloader.py > > [3]https://github.com/sugarlabs/sugar/commit/ > d43b926ffbe61da2400395be1fa09c0a5bc52892# > diff-4292575b2bd601c8467f96df5d516dc5 > > To reconfigure to use the microformat updater: > > {{{ > su > cat >> /usr/share/glib-2.0/schemas/sugar.oob.gschema.override << EOF > [org.sugarlabs.update] > backend='microformat.MicroformatUpdater' > microformat-update-url='[4]http://wiki.laptop.org/go/Activities/13.2.3' > EOF > /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas > service olpc-dm restart > }}} > > -- > James Cameron > [5]http://quozl.linux.org.au/ > ___ > Devel mailing list > [6]Devel@lists.laptop.org > [7]http://lists.laptop.org/listinfo/devel > > -- > Gonzalo Odiard > > SugarLabs - Software for children learning > > References: > > [1] mailto:qu...@laptop.org > [2] http://activities.sugarlabs.org/ > [3] > https://github.com/sugarlabs/sugar/commit/d43b926ffbe61da2400395be1fa09c0a5bc52892#diff-4292575b2bd601c8467f96df5d516dc5 > [4] http://wiki.laptop.org/go/Activities/13.2.3 > [5] http://quozl.linux.org.au/ > [6] mailto:Devel@lists.laptop.org > [7] http://lists.laptop.org/listinfo/devel -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Announcing OLPC OS 13.2.3 for XO-1.75 and XO-4
I have added version 0.104 to aslo. Do you have a different result now? Gonzalo On Sun, Mar 29, 2015 at 11:48 PM, James Cameron wrote: > On Wed, Mar 25, 2015 at 10:05:12AM -0400, Walter Bender wrote: > > (2) When I went to the CP section to update, the progress-bar filled > > in completely, but then it sat, with no indication of whether or not > > everything was up-to-date. Nothing in the logs. > > Packet tracing shows it is contacting activities.sugarlabs.org, using > the aslo.py backend, but ASLO doesn't know about 0.104, and gives > empty XML responses. > > The download complete callback also fails, because the result passed > by the downloader does not have a method get_data: > > AttributeError: 'Bytes' object has no attribute 'get_data' > > After reconfiguring to use the microformat updater, the same message > occurs. > > This message may be because an older version of libsoup is being > used in this Fedora 18 build. A fix may be to backport to Fedora 18 > Daniel Drake's change to src/jarabe/util/downloader.py > > > https://github.com/sugarlabs/sugar/commit/d43b926ffbe61da2400395be1fa09c0a5bc52892#diff-4292575b2bd601c8467f96df5d516dc5 > > > To reconfigure to use the microformat updater: > > {{{ > su > cat >> /usr/share/glib-2.0/schemas/sugar.oob.gschema.override << EOF > [org.sugarlabs.update] > backend='microformat.MicroformatUpdater' > microformat-update-url='http://wiki.laptop.org/go/Activities/13.2.3' > EOF > /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas > service olpc-dm restart > }}} > > -- > James Cameron > http://quozl.linux.org.au/ > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > -- Gonzalo Odiard SugarLabs - Software for children learning ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Announcing OLPC OS 13.2.3 for XO-1.75 and XO-4
On Wed, Mar 25, 2015 at 10:05:12AM -0400, Walter Bender wrote: > (2) When I went to the CP section to update, the progress-bar filled > in completely, but then it sat, with no indication of whether or not > everything was up-to-date. Nothing in the logs. Packet tracing shows it is contacting activities.sugarlabs.org, using the aslo.py backend, but ASLO doesn't know about 0.104, and gives empty XML responses. The download complete callback also fails, because the result passed by the downloader does not have a method get_data: AttributeError: 'Bytes' object has no attribute 'get_data' After reconfiguring to use the microformat updater, the same message occurs. This message may be because an older version of libsoup is being used in this Fedora 18 build. A fix may be to backport to Fedora 18 Daniel Drake's change to src/jarabe/util/downloader.py https://github.com/sugarlabs/sugar/commit/d43b926ffbe61da2400395be1fa09c0a5bc52892#diff-4292575b2bd601c8467f96df5d516dc5 To reconfigure to use the microformat updater: {{{ su cat >> /usr/share/glib-2.0/schemas/sugar.oob.gschema.override << EOF [org.sugarlabs.update] backend='microformat.MicroformatUpdater' microformat-update-url='http://wiki.laptop.org/go/Activities/13.2.3' EOF /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas service olpc-dm restart }}} -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Announcing OLPC OS 13.2.3 for XO-1.75 and XO-4
On Wed, Mar 25, 2015 at 10:05:12AM -0400, Walter Bender wrote: > Just flashed an XO 4 with a Spanish keyboard. A couple of minor issues > (will file tickets): > (1) When I went to the CP to change the language to English, the > Language Panel had English/USA selected. It should have been > Spanish/??. I was able to select Ingles/USA and change the language. Sugar was not stripping the newline after reading .i18n file, see https://github.com/sugarlabs/sugar/pull/482 for details. You can test by editing /usr/share/sugar/extensions/cpsection/language/model.py and then restart Sugar. The problem only occurs when the LO tag is set to something that ends in UTF-8. I acknowledge the comments in the previous patches to model.py, but with units in the field already I think we're stuck with the .UTF-8 suffix. -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel