You must update sugar and sugar-toolkit<br><br>Gonzalo<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 6:37 PM, Walter Bender <span dir="ltr"><<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Mon, Nov 8, 2010 at 11:45 AM, Simon Schampijer <<a href="mailto:simon@schampijer.de">simon@schampijer.de</a>> wrote:<br>
> ---<br>
> extensions/cpsection/updater/backends/aslo.py | 9 ++++++---<br>
> extensions/cpsection/updater/model.py | 4 +++-<br>
> extensions/cpsection/updater/view.py | 2 +-<br>
> 3 files changed, 10 insertions(+), 5 deletions(-)<br>
><br>
> diff --git a/extensions/cpsection/updater/backends/aslo.py b/extensions/cpsection/updater/backends/aslo.py<br>
> index 5f257f9..3d63406 100644<br>
> --- a/extensions/cpsection/updater/backends/aslo.py<br>
> +++ b/extensions/cpsection/updater/backends/aslo.py<br>
> @@ -54,6 +54,9 @@ import traceback<br>
><br>
> import gio<br>
><br>
> +from sugar.bundle.bundleversion import NormalizedVersion<br>
> +from sugar.bundle.bundleversion import InvalidVersionError<br>
> +<br>
> from jarabe import config<br>
><br>
> _FIND_DESCRIPTION = \<br>
> @@ -127,10 +130,10 @@ class _UpdateFetcher(object):<br>
> size = None<br>
> else:<br>
> try:<br>
> - version = int(document.find(_FIND_VERSION).text)<br>
> - except ValueError:<br>
> + version = NormalizedVersion(document.find(_FIND_VERSION).text)<br>
> + except InvalidVersionError:<br>
> logging.error(traceback.format_exc())<br>
> - version = 0<br>
> + version = '0'<br>
><br>
> link = document.find(_FIND_LINK).text<br>
><br>
> diff --git a/extensions/cpsection/updater/model.py b/extensions/cpsection/updater/model.py<br>
> index 9845371..d58e3bc 100755<br>
> --- a/extensions/cpsection/updater/model.py<br>
> +++ b/extensions/cpsection/updater/model.py<br>
> @@ -33,6 +33,7 @@ import gio<br>
> from sugar import env<br>
> from sugar.datastore import datastore<br>
> from sugar.bundle.activitybundle import ActivityBundle<br>
> +from sugar.bundle.bundleversion import NormalizedVersion<br>
><br>
> from jarabe.model import bundleregistry<br>
><br>
> @@ -83,7 +84,8 @@ class UpdateModel(gobject.GObject):<br>
> logging.error('Error getting update information from server:\n'<br>
> '%s' % error_message)<br>
><br>
> - if version is not None and version > bundle.get_activity_version():<br>
> + if version is not None and \<br>
> + version > NormalizedVersion(bundle.get_activity_version()):<br>
> self.updates.append(BundleUpdate(bundle, version, link, size))<br>
><br>
> if self._cancelling:<br>
> diff --git a/extensions/cpsection/updater/view.py b/extensions/cpsection/updater/view.py<br>
> index 2164c0b..ce853fb 100644<br>
> --- a/extensions/cpsection/updater/view.py<br>
> +++ b/extensions/cpsection/updater/view.py<br>
> @@ -359,7 +359,7 @@ class UpdateListModel(gtk.ListStore):<br>
> row[self.SELECTED] = True<br>
> row[self.ICON_FILE_NAME] = bundle_update.bundle.get_icon()<br>
><br>
> - details = _('From version %(current)d to %(new)s (Size: %(size)s)')<br>
> + details = _('From version %(current)s to %(new)s (Size: %(size)s)')<br>
> details = details % \<br>
> {'current': bundle_update.bundle.get_activity_version(),<br>
> 'new': bundle_update.version,<br>
> --<br>
> 1.7.2.3<br>
><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
<br>
</div></div>I am getting this error from sugar-jhbuild built today (Nov 10):<br>
<br>
File "/home/walter/Desktop/sugar-jhbuild/install/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",<br>
line 29, in <module><br>
<div class="im"> from sugar.bundle.bundleversion import NormalizedVersion<br>
</div>ImportError: No module named bundleversion<br>
Window manager warning: Fatal IO error 11 (Resource temporarily<br>
unavailable) on display ':30'.<br>
<br>
I suspect that it is related to your recent patch.<br>
<br>
-walter<br>
<font color="#888888"><br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br>