[Sugar-devel] Debian Advocacy for Sugar - Update

shaansubbaiah.cs18 at bmsce.ac.in shaansubbaiah.cs18 at bmsce.ac.in
Sat Jun 6 13:57:41 EDT 2020

 Hello Ibiam,Installing the libglib2.0-dev package fixes the issue. I have also just found that this issue is mentioned in the browse-activity readme '' Unusually, Browse also depends on glib-compile-schemas tocompile a Gio.Settings schema. ''.
Online searches also return similar results, eg. :https://askubuntu.com/questions/204643/getting-missing-dependency-for-compilation-glib-compile-schemas 
 and https://askubuntu.com/questions/161739/why-does-launchpad-fail-to-find-glib-compile-schemas-while-building-for-ppa
I'm fairly certain that this is the correct fix, however, I have not found libglib2.0-dev as a dependency of Browse Activity for the earlier releases of Debian at https://packages.debian.org/search?keywords=sugar-browse-activity . So I do not know how this was handled in older releases or if it was handled at all. 
   On Saturday, June 6, 2020, 10:47:34 PM GMT+5:30, Chihurumnaya Ibiam <ibiamchihurumnaya at gmail.com> wrote:  
 Can you test to confirm if it's the problem?
Ibiam Chihurumnaya 
ibiamchihurumnaya at gmail.com

On Sat, Jun 6, 2020 at 9:11 AM Shaan Subbaiah B C <shaansubbaiah.cs18 at bmsce.ac.in> wrote:

Hello Ibiam,Great to know that the markdown formatted as html is more convenient.
I'm not entirely sure that the web activity issue is due to libglib2.0-dev no being present as a depenency but the error seems to be caused due to some header file missing that is fixed by installing that package.
I'll open the issues as you specified and test further.
On Sat, 6 Jun, 2020, 4:40 am Chihurumnaya Ibiam, <ibiamchihurumnaya at gmail.com> wrote:

Thanks for the update Shaan,
The error you shared in 2) happens in #840 like you said but the traceback in the logs is seen for the first timeand looks like it's a Python 3 port regression, kindly open an issue in sugar so it can be tracked.
Can you confirm that 3) is caused by libglib2.0-dev not listed as a dependency in the control file?
Could you open an issue for 4) in the write repo?

I find the markdown rendered as HTML convenient and most of it appears as plaintext in the devel archive,except the bullet points that start with a `-` above them.
Ibiam Chihurumnaya 
ibiamchihurumnaya at gmail.com

On Fri, Jun 5, 2020 at 10:08 AM shaansubbaiah.cs18 at bmsce.ac.in <shaansubbaiah.cs18 at bmsce.ac.in> wrote:

I have tried to install sucrose on the standard Debian Live ISO (it has no Desktop Environment, only CLI) as there were some issues while trying to do so in the Debian Live (KDE Plasma) ISO:
Attempting to install sucrose v117-x after adding the unstable repositories to sources.list and setting the default release as stable by sudo apt install -t unstable sucrose causes 100’s of packages to be removed (Including all KDE applications, Firefox, Konsole, etc) and initiates the install of several 100 language packs for Firefox, LibreOffice, etc. 

Installing by setting the default release as unstable and sudo apt install sucrose causes the same issue above.

Setting default release as ‘stable’ and attempting to install using sudo apt install sucrose/unstable does not cause this issue but requires including all the dependencies with /unstable postfix (otherwise dependencies are fetched from the stable repo itself). This is very messy, the Desktop Environment and almost all useful preinstalled applications get wiped, some dependencies aren’t satisfied while testing Sugar after install. 

Install Debian Live Standard ISO

Set default package repository to unstable
# /etc/apt/apt.conf.d/my-default-release
APT::Default-Release "unstable";

Update, Install gcc-8-base, sucrose 
sudo apt update
sudo apt install gcc-8-base # select 'yes' on the prompt
sudo apt install sucrose

Debian Live Standard doesn’t come with a Display Manager by default, install lightdm
sudo apt install lightdm

Reboot, select Sugar and log in.

On testing:

1) Sugar launches. Again most activities work without issues. Listed issues below.

2) Error in shell.log
1591278095.943871 ERROR dbus.proxies: Introspect error on :1.28:/org/laptop/Activity/376730b6f93a8aa9b2929c28e423b45b73f2b515: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
1591278095.944801 ERROR root: set_active() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.28 was not provided by any .service files
1591278100.365706 ERROR dbus.proxies: Introspect error on :1.30:/org/laptop/Activity/376730b6f93a8aa9b2929c28e423b45b73f2b515: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
1591278100.366105 ERROR root: set_active() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.30 was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py", line 69, in do_size_allocate
    self._layout.allocate_children(allocation, self._children)
  File "/usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py", line 250, in allocate_children
    name_hash = hashlib.md5(child.get_bundle_id().decode())
AttributeError: 'str' object has no attribute 'decode'

^ Seems to be similar to Sugar issues #840 and #843

3) Web Activity doesn’t launch, error:
sh: 1: glib-compile-schemas: not found
Traceback (most recent call last):
  File "/usr/bin/sugar-activity3", line 5, in <module>
  File "/usr/lib/python3/dist-packages/sugar3/activity/activityinstance.py", line 230, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/usr/lib/python3/dist-packages/sugar3/activity/activityinstance.py", line 59, in create_activity_instance
    activity = constructor(handle)
  File "/usr/share/sugar/activities/Browse.activity/webactivity.py", line 192, in __init__
    self._tabbed_view = TabbedView(self)
  File "/usr/share/sugar/activities/Browse.activity/browser.py", line 145, in __init__
    self.settings = _get_local_settings(activity)
  File "/usr/share/sugar/activities/Browse.activity/browser.py", line 127, in _get_local_settings
    source = Gio.SettingsSchemaSource.new_from_directory(path, None, True)
gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/home/ssbc/.sugar/default/org.laptop.WebActivity/data/schemas/gschemas.compiled”: open() failed: No such file or directory (4)
Terminated by signal 11, pid 866 activity_id 376730b6f93a8aa9b2929c28e423b45b73f2b515

^ This occurred while using the other installation methods as well. It was fixed by installing libglib2.0-dev. This may be a packaging issue where ‘libglib2.0-dev’ is not specified as a dependency for the Web Activity?

4) Write Activity crashes when trying to move a table.
^ Reproduced by: Opening Words Activity -> Insert a table -> Try dragging/resizing one of the inner row/horizontal lines (Not the ones forming the outer boundary) -> Crash
Terminated by signal 11, pid 4715 activity_id 6305d02f3035c4afc03030e685fe338e6e394807

I’m trying to keep a log/executed snippets in markdown on a Github repository. Some files may not contain anything useful, just snippets for future reference. I’ll make it public after I clean it up a bit. 

I’ll post anything important through mail. I have used the ‘Markdown Here’ extension to render markdown as HTML. Let me know if you find this more convenient and I’ll have to check how this appears in the Sugar Devel Archive. If not suitable, I’ll revert back to markdown/plaintext.
Sugar-devel mailing list
Sugar-devel at lists.sugarlabs.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200606/5de5d0ce/attachment-0001.htm>

More information about the Sugar-devel mailing list