[Sugar-devel] Advice needed on sugar-runner

James Simmons nicestep at gmail.com
Tue Feb 20 14:21:32 EST 2024


James,

I've been reading about GObject Introspection and I think you've put me on
the right track. I'll let everyone know if I get it working. My more
immediate goal is to fix a minor bug in Get IA Books so I can publish it,
so I won't be looking at sugar-runner for a while.

Thanks again,

James Simmons


On Mon, Feb 19, 2024 at 6:07 PM James Cameron <quozl at laptop.org> wrote:

> I'll speculate.  Perhaps something changed in how GObject introspection
> packages are built and installed between the time that sugar-runner and
> sugar-toolkit-gtk3 were both supported, and the time now.  If so, then
> commits that change Makefile.am in sugar-toolkit-gtk3 may explain.
>
> To not speculate, use strace -f on the sugar-toolkit-gtk3 build steps to
> find out when and why the SugarExt typelib is installed, figure out what
> source file is responsible, then deduce how to make similar effect on
> sugar-runner.
>
> Hope that helps!
>
> On Mon, Feb 19, 2024 at 04:50:44PM -0600, James Simmons wrote:
> > James,
> >
> > I am a novice with Make. I did look at the Make files for sugar-runner
> and I
> > found that Makefile.in had some lines reported as Bad directive:
> >
> > @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/
> > libsugarrunner_la-sugar-runner-window.Plo at am__quote@ #
> am--include-marker
> >
> > @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/
> > libsugarrunner_la-sugar-runner.Plo at am__quote@ # am--include-marker
> >
> > $(am__depfiles_remade):
> >
> > @$(MKDIR_P) $(@D)
> >
> > @echo '# dummy' >$@-t && $(am__mv) $@-t $@
> >
> > am--depfiles: $(am__depfiles_remade)
> >
> > .c.o:
> >
> > @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF
> $(DEPDIR)/$*.Tpo
> > -c -o $@ $<
> >
> > @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo
> $(DEPDIR)/$*.Po
> >
> > @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@'
> libtool=no
> > @AMDEPBACKSLASH@
> >
> > @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE)
> $(depcomp)
> > @AMDEPBACKSLASH@
> >
> > @am__fastdepCC_FALSE@ $(AM_V_CC at am__nodep@)$(COMPILE) -c -o $@ $<
> >
> > .c.obj:
> >
> > @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF
> $(DEPDIR)/$*.Tpo
> > -c -o $@ `$(CYGPATH_W) '$<'`
> >
> > @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo
> $(DEPDIR)/$*.Po
> >
> > @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@'
> libtool=no
> > @AMDEPBACKSLASH@
> >
> > @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE)
> $(depcomp)
> > @AMDEPBACKSLASH@
> >
> > @am__fastdepCC_FALSE@ $(AM_V_CC at am__nodep@)$(COMPILE) -c -o $@
> `$(CYGPATH_W) '$
> > <'`
> >
> > The ones with red underlines are the ones. The generated Makefile does
> not
> > report any errors.
> >
> > I'm going to try generating a Makefile for sugar-toolkit-gtk3 and see if
> that
> > suggests anything.
> >
> > Thanks.
> >
> > James Simmons
> >
> > On Mon, Feb 19, 2024 at 1:42 PM James Cameron <[1]quozl at laptop.org>
> wrote:
> >
> >     Make sure the typelib has been installed correctly.  Perhaps the
> install
> >     steps are also bit rot.
> >
> >     Compare the steps against the SugarExt typelib installed by the
> >     sugar-toolkit-gtk3 package.
> >
> >     In particular, I seem to recall an introspection scanner step is
> required,
> >     but not sure if it is part of "make install" or if it fails if the
> tool is
> >     not installed.
> >
> >     On Mon, Feb 19, 2024 at 09:47:36AM -0600, James Simmons wrote:
> >     > I've been preparing an old computer I just replaced as a gift for a
> >     bright
> >     > eight year old boy and his older brother. It will run Fedora 39. In
> >     addition to
> >     > the XFCE environment I want to give him a Sugar environment with
> >     Activities.
> >     >
> >     > In the process of setting this up I discovered that some of the
> >     Activities I
> >     > wrote years ago have succumbed to bit rot and needed updating. I
> was able
> >     to do
> >     > this, but I was disappointed to find that I could not use
> sugar-runner to
> >     run
> >     > the Sugar environment in a window because it had not been
> maintained.
> >     >
> >     > I thought I'd take a stab at getting sugar-runner working. I
> checked out
> >     the
> >     > project, installed all the dependencies autogen.sh asked for,
> updated the
> >     > scripts to use python3, then ran what looked to be a successful
> make and
> >     sudo
> >     > make install. Then I tried to run
> >     >
> >     > sugar-runner
> >     >
> >     > and I got these Python errors:
> >     >
> >     > jamessimmons at unknownF4390913EB01:~$ sugar-runner
> >     > Traceback (most recent call last):
> >     >   File "/usr/local/bin/sugar-runner", line 28, in <module>
> >     >     gi.require_version('SugarRunner', '1.0')
> >     >   File "/usr/lib64/python3.12/site-packages/gi/__init__.py", line
> 126, in
> >     > require_version
> >     >     raise ValueError('Namespace %s not available' % namespace)
> >     > ValueError: Namespace SugarRunner not available
> >     >
> >     > At this point I'm stuck. If any of you have any suggestions on how
> to
> >     proceed
> >     > I'd love to hear them.
> >     >
> >     > Thanks,
> >     >
> >     > James Simmons
> >     >
> >
> >     > _______________________________________________
> >     > Sugar-devel mailing list
> >     > [2]Sugar-devel at lists.sugarlabs.org
> >     > [3]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1] mailto:quozl at laptop.org
> > [2] mailto:Sugar-devel at lists.sugarlabs.org
> > [3] http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20240220/69ed31f5/attachment.htm>


More information about the Sugar-devel mailing list