[Sugar-devel] Running Sugar Activities

James Cameron quozl at laptop.org
Sun Mar 1 16:03:15 EST 2020


Hello Soham,

You have an unusual configuration;

- a PyGObject introspection module in /home/soham/.local instead of
  /usr, (caused by using pip instead of isntalling the python-gi
  package),

- the Sugar Toolkit is installed in /usr/local, (caused by building
  Sugar Toolkit from source without specifying a prefix),

I don't know what problems that may cause.  You're very brave.

However, answering your traceback, the TelepathyGLib namespace can be
installed on Ubuntu 18.04.3 by typing;

	sudo apt install gir1.2-telepathyglib-0.12

You didn't say what version of Calculate you had installed, but as the
traceback referenced Python 2 perhaps it was Calculate-45.  How did
you install this activity?

Latest is Calculate-46, which is Python 3.

On Ubuntu 20.04, the dependencies for the Calculate-46 activity could be;

python3, python3-sugar3, python3-gi, python3-dbus, gir1.2-glib-2.0,
gir1.2-gtk-3.0, gir1.2-pango-1.0, gir1.2-rsvg-2.0,
gir1.2-telepathyglib-0.12, and python3-matplotlib

So after you install gir1.2-telepathyglib-0.12 you may have to install
other packages.

On Sun, Mar 01, 2020 at 04:05:17PM +0530, soham bhattacharya wrote:
> Hi,
> I am Soham. I am running Sugar on Ubuntu 18.04.3 LTS. I also have the Sugar
> toolkit installed. The problem is after installing any sugar activity I am not
> being able to run it.
> 
> for example if I run Calculate.activity I get:
> 
> Traceback (most recent call last):
>   File "calculate.py", line 37, in <module>
>     from shareable_activity import ShareableActivity
>   File "/usr/share/sugar/activities/Calculate.activity/shareable_activity.py",
> line 5, in <module>
>     from sugar3.activity import activity
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 175, in <module>
>     gi.require_version('TelepathyGLib', '0.12')
>   File "/home/soham/.local/lib/python2.7/site-packages/gi/__init__.py", line
> 129, in require_version
>     raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace TelepathyGLib not available
> 
> Or if I try to run TurtleBlocks.activity:
> 
>   File "TurtleArtActivity.py", line 43, in <module>
>     from sugar3.activity import activity
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 175, in <module>
>     gi.require_version('TelepathyGLib', '0.12')
>   File "/home/soham/.local/lib/python2.7/site-packages/gi/__init__.py", line
> 129, in require_version
>     raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace TelepathyGLib not available
> 
> It looks like TelepathyGLib is missing from gi. What should I do. Help will be
> appreciated.
> 
> Thanks,
> Soham

> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list