<div dir="ltr">Thanks all for quickly report and help analyze this issue.<div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 20, 2014 at 8:20 PM, Jerry Vonau <span dir="ltr"><<a href="mailto:me@jvonau.ca" target="_blank">me@jvonau.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On December 20, 2014 at 3:36 PM "Sam P." <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>><br>
<span class="">> wrote:<br>
><br>
><br>
> Hi,<br>
><br>
> I have submitted a new patch which work both inside sugar and in other<br>
> environments.<br>
><br>
> Please review: <a href="https://github.com/sugarlabs/sugar/pull/454" target="_blank">https://github.com/sugarlabs/sugar/pull/454</a><br>
><br>
<br>
</span>Looks good to me, +1<br>
<br>
Jerry<br>
<span class=""><br>
> Thanks,<br>
> Sam<br>
><br>
> On Sun, Dec 21, 2014 at 12:29 AM, Martin Abente <<br>
> <a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>> wrote:<br>
><br>
> > Hello Jerry,<br>
> ><br>
> > Thanks for the report, I have reproduce it, will revert this commit.<br>
> ><br>
> > @sam: to reproduce it just run ."/osbuild shell", and from inside the<br>
</span>> > shell run "sugar-install-bundle ".<br>
<span class="im HOEnZb">> ><br>
> > With your patch, and as Jerry suggested, this is what happens:<br>
> ><br>
> > [osbuild sugar-build-no-broot]$ sugar-install-bundle<br>
> > /home/tch/Downloads/Abacus-47.1.xo<br>
> > Traceback (most recent call last):<br>
> > File<br>
> > "/home/tch/Devel/sugar-build-no-broot/build/out/install/bin/sugar-install-bundle",<br>
> > line 19, in<br>
</span><div class="HOEnZb"><div class="h5">> > registry = get_registry()<br>
> > File<br>
> > "/home/tch/Devel/sugar-build-no-broot/build/out/install/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",<br>
> > line 652, in get_registry<br>
> > _instance = BundleRegistry()<br>
> > File<br>
> > "/home/tch/Devel/sugar-build-no-broot/build/out/install/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",<br>
> > line 78, in __init__<br>
> > self._mime_defaults = self._load_mime_defaults()<br>
> > File<br>
> > "/home/tch/Devel/sugar-build-no-broot/build/out/install/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",<br>
> > line 147, in _load_mime_defaults<br>
> > f = open(os.environ["SUGAR_MIME_DEFAULTS"], 'r')<br>
> > File<br>
> > "/home/tch/Devel/sugar-build-no-broot/build/out/sandbox/install/lib64/python2.7/UserDict.py",<br>
> > line 23, in __getitem__<br>
> > raise KeyError(key)<br>
> > KeyError: 'SUGAR_MIME_DEFAULTS'<br>
> ><br>
> > Without the commit works fine.<br>
> ><br>
> > Lets discuss what other solution we can find!<br>
> ><br>
> > Regards,<br>
> > tch.<br>
> ><br>
> ><br>
> > On Sat, Dec 20, 2014 at 6:28 AM, Sam P. <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>><br>
> > wrote:<br>
> >><br>
> >> Hi James,<br>
> >><br>
> >> On Sat, Dec 20, 2014 at 12:37 PM, James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
> >> wrote:<br>
> >><br>
> >>> Thanks for highlighting that patch, Jerry.<br>
> >>><br>
> >>> Yes, it looks like it would break olpc-os-builder, and would be a<br>
> >>> hurdle for adopting any release of Sugar that includes the patch.<br>
> >>><br>
> >><br>
> >> OK, let's fix this. Maybe we could run a check to check is sugar is<br>
> >> running. If sugar is running, use the registry (so the list is<br>
> >> updated).<br>
> >> If sugar is not running, use bundle.install (like pre-patch).<br>
> >><br>
> >><br>
> >>><br>
> >>> I'd like the patch reverted and rewritten, and tested without X or<br>
> >>> DBus present. That can be simulated by running it in a process with<br>
> >>> none of the critical environment variables.<br>
> >>><br>
> >><br>
> >><br>
> >> What is your tip for replicating this environment?<br>
> >><br>
> >><br>
> >>><br>
> >>> I didn't get any update from the bug system on ticket #4722, which is<br>
> >>> a surprise. I also didn't get any notification of a patch available<br>
> >>> for review.<br>
> >>><br>
> >><br>
> >> That's weird. I did submit a pull request which was merged by Gonzalo<br>
> >> a<br>
> >> little while back (a few days after submitting the pull request).<br>
> >><br>
> >> Thanks,<br>
> >> Sam<br>
> >><br>
> >><br>
> >>><br>
> >>> On Fri, Dec 19, 2014 at 06:22:41PM -0600, Jerry Vonau wrote:<br>
> >>> > Hi Sam,<br>
> >>> ><br>
> >>> > > On December 19, 2014 at 5:40 PM "Sam P."<br>
> >>> > > <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>><br>
> >>> > > wrote:<br>
> >>> > ><br>
> >>> > ><br>
> >>> > > Hi Jerry,<br>
> >>> > ><br>
> >>> > > I would guess that it does require X. The rational for using<br>
> >>> > > BundleRegistry is that it emits all the right signals to the gui<br>
> >>> > > of<br>
> >>> > > sugar,<br>
> >>> > > which requires X.<br>
> >>> > ><br>
> >>> > > I havn't tested it against OOB, but maybe I could add a<br>
> >>> "--no-registry"<br>
> >>> > > option in sugar-install-bundle? Would that fix the issue?<br>
> >>> > ><br>
> >>> ><br>
> >>> > I'll defer that to quozl as he is the reporter and the current<br>
> >>> maintainer<br>
> >>> > of OOB. I haven't looked at other distros yet, but mktinycorexo<br>
> >>> > would<br>
> >>> > suffer the same fate. Given the low priority assigned to the bug<br>
> >>> > I'd<br>
> >>> revert<br>
> >>> > and not break other scripts that might be out in the wild.<br>
> >>> ><br>
> >>> > Just my thoughts,<br>
> >>> ><br>
> >>> > Jerry<br>
> >>> ><br>
> >>> > > Thanks,<br>
> >>> > > Sam<br>
> >>> > ><br>
> >>> > > On Sat, Dec 20, 2014 at 10:18 AM, Jerry Vonau <<a href="mailto:me@jvonau.ca">me@jvonau.ca</a>><br>
> >>> > > wrote:<br>
> >>> > ><br>
> >>> > > ><br>
> >>> > > > Does the use of BundleRegistry()[1] require X to be started?<br>
> >>> > > > I'm<br>
> >>> > > > thinking<br>
> >>> > > > yes as 'protected_activities' in the __init__ part is really a<br>
> >>> > > > dconf-service setting that is returned as a string. I'm asking<br>
> >>> > > > as a<br>
> >>> > > > recent<br>
> >>> > > > commit was added[2] that just might break olpc-os-builder(OOB).<br>
> >>> > > > OOB<br>
> >>> > > > relies<br>
> >>> > > > upon<br>
> >>> > > > sugar-install-bundle[3] running in a chroot'ed cli environment<br>
> >>> where<br>
> >>> > > > dconf<br>
> >>> > > > may not be running. Has this change been tested with OOB?<br>
> >>> > > ><br>
> >>> > > ><br>
> >>> > > > Jerry<br>
> >>> > > ><br>
> >>> > > > 1.<br>
> >>> > > ><br>
> >>> > > ><br>
> >>> <a href="https://github.com/sugarlabs/sugar/blob/master/src/jarabe/model/bundleregistry.py" target="_blank">https://github.com/sugarlabs/sugar/blob/master/src/jarabe/model/bundleregistry.py</a><br>
> >>> > > > 2.<br>
> >>> > > ><br>
> >>> > > ><br>
> >>> <a href="https://github.com/sugarlabs/sugar/commit/d0d045379f097e35c686e9f5dc7f1a0a231041bd" target="_blank">https://github.com/sugarlabs/sugar/commit/d0d045379f097e35c686e9f5dc7f1a0a231041bd</a><br>
> >>> > > > 3.<br>
> >>> > > ><br>
> >>> > > ><br>
> >>> <a href="http://dev.laptop.org/git/projects/olpc-os-builder/tree/modules/sugar/kspost.75.install_bundles.inc" target="_blank">http://dev.laptop.org/git/projects/olpc-os-builder/tree/modules/sugar/kspost.75.install_bundles.inc</a><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>
> >>> > > 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>
> >>> > 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>
> >>> James Cameron<br>
> >>> <a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
> >>><br>
> >><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>
_______________________________________________<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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>