#12878 NORM Future : software update doesn't work

Zarro Boogs per Child bugtracker at laptop.org
Mon Mar 30 02:03:56 EDT 2015


#12878: software update doesn't work
-------------------------------+------------------------------------------
            Reporter:  Quozl   |          Owner:  dsd
                Type:  defect  |         Status:  new
            Priority:  normal  |      Milestone:  Future Release
           Component:  distro  |        Version:  Software Build 13.2.3-16
          Resolution:          |       Keywords:
          Blocked By:          |       Blocking:
Deployments affected:          |  Action Needed:  code
            Verified:  0       |
-------------------------------+------------------------------------------
Changes (by Quozl):

 * owner:  Quozl => dsd
 * component:  sugar => distro


Old description:

> In My Settings, Software Update, the updater doesn't complete.
>
> This is caused by Sugar 0.104 switching default updater backend to ASLO,
> and also a
> [https://github.com/sugarlabs/sugar/commit/d43b926ffbe61da2400395be1fa09c0a5bc52892
> #diff-4292575b2bd601c8467f96df5d516dc5 change] from using gvfs to libsoup
> for downloading.  The version of libsoup may be incompatible with the
> downloader.
>
> To reconfigure to use the microformat updater:
> {{{
> 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
> }}}
>
> Resulting error message is:
> {{{
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-
> packages/jarabe/model/update/microformat.py", line 216, in _got_chunk_cb
>     self._parser.feed(data.get_data())
> AttributeError: 'Bytes' object has no attribute 'get_data'
> }}}

New description:

 In My Settings, Software Update, the updater doesn't complete.

 This is caused by Sugar 0.104 switching default updater backend to ASLO,
 and also a
 [https://github.com/sugarlabs/sugar/commit/d43b926ffbe61da2400395be1fa09c0a5bc52892
 #diff-4292575b2bd601c8467f96df5d516dc5 change] from using gvfs to libsoup
 for downloading.

 To reconfigure to use the microformat updater:
 {{{
 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
 }}}

 Resulting error message is:
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-
 packages/jarabe/model/update/microformat.py", line 216, in _got_chunk_cb
     self._parser.feed(data.get_data())
 AttributeError: 'Bytes' object has no attribute 'get_data'
 }}}

 This is caused by g_bytes_get_data method missing from the gobject
 introspection system.

 Workaround is a [http://dev.laptop.org/~quozl/y/1YcSik.txt patch] to use
 unref_to_array instead of get_data, but this won't work on later versions
 of gobject-introspection.

 A better solution is to backport the corresponding gobject-introspection
 package change to our Fedora 18 dropbox.

--

--
Ticket URL: <http://dev.laptop.org/ticket/12878#comment:1>
One Laptop per Child <http://one.laptop.org/>
One Laptop per Child bug tracking system


More information about the Bugs mailing list