Re: [Sugar-devel] Run Turtleart-activity in local machine

2020-03-01 Thread James Cameron
"sudo apt install sucrose" may work, or may not, it depends on the
operating system and release.

Please tell us what operating system and release you are using?
e.g. Ubuntu 20.04

The log file you sent has an installation path that I'm not familiar
with;

/usr/lib/Python2.7/dist-packages/sugar3/graphics/icon.py

On Debian and Ubuntu the "p" of python is lowercase.  I've no idea how
this could happen on your system.

I agree with Ibiam.  It looks like you are using an old version of
Log activity built for Python 2, but the TurtleArt activity is now
Python 3.  As you've got an old version of Log, chances are it is
because you have an old version of Sugar.

The Python 2 version of Sugar cannot start a Python 3 version of an
activity, and the result you observed (icon pulsing then fail to start
error) is consistent with that.

In future please list all relevant versions or release numbers, as it
can help us answer without delay.  ;-)

On Sun, Mar 01, 2020 at 06:29:38PM +0530, b18050 b18050 wrote:
> I installed sugar using this command.
> 
> sudo apt install sucrose
> 
> On Sun, Mar 1, 2020 at 2:15 PM Chihurumnaya Ibiam <[1]
> ibiamchihurumn...@gmail.com> wrote:
> 
> The log you sent shows you're running a python2 version of log activity 
> and
> the activity has been ported to python3, the issues pointed out by the log
> have also been fixed.
> How did you install sugar? 
> 
> On Sat, Feb 29, 2020, 8:47 PM b18050 b18050 <[2]
> b18...@students.iitmandi.ac.in> wrote:
> 
> The log file at 
> ~/.sugar/default/logs/org.laptop.TurtleArtActivity*.log
> is empty.
> But I have log file which has this error.
> ** (sugar-activity:3712): WARNING **: Couldn't connect to 
> accessibility
> bus: Failed to connect to socket /tmp/dbus-Ld7oBuIM7S: Connection
> refused
> /usr/share/sugar/activities/Log.activity/logviewer.py:25: PyGIWarning:
> Gtk was imported without specifying a version first . Use
> gi.require_version('Gtk', '3.0') before import to ensure that right
> version gets loaded.
>  from gi.repository import Gtk
> /usr/lib/Python2.7/dist-packages/sugar3/graphics/icon.py:25:
> PyGIWarning: Rsvg was imported without specifying a version first . 
> Use
> gi.require_version('Rsvg', '2.0') before import to ensure that right
> version gets loaded.
>  from gi.repository import Rsvg
> /usr/lib/Python2.7/dist-packages/sugar3/activity/activity.py:87:
> PyGIWarning: SugarExt was imported without specifying a version first 
> .
> Use gi.require_version('SugarExt', '1.0') before import to ensure that
> right version gets loaded.
>  from gi.repository import SugarExt
> 1583002965.344058 WARNING root: No Gtk.AccelGroup in the top level
> window.
> 1583002965.365016 WARNING root: No Gtk.AccelGroup in the top level
> window.
> 1583002965.389279 WARNING root: No Gtk.AccelGroup in the top level
> window.
> 1583003083.163259 WARNING root: No Gtk.AccelGroup in the top level
> window.
> 1583003083.164215 WARNING root: No Gtk.AccelGroup in the top level
> window.
> Exited with status 0, pid 3712 data (None, ', mode
> 'w' at 0x7fc2c0ad04b0>,'f3aee6e4ef8b9f972da64bbc0f479c9e11601f')
> 
> On Sat, Feb 29, 2020 at 6:08 PM Chihurumnaya Ibiam <[3]
> ibiamchihurumn...@gmail.com> wrote:
> 
> Can you share the log file at ~/.sugar/default/logs/
> org.laptop.TurtleArtActivity*.log?
> 
> --
> 
> Ibiam Chihurumnaya
> [4]ibiamchihurumn...@gmail.com
>
>
> 
> On Sat, Feb 29, 2020 at 12:55 PM b18050 b18050 <[5]
> b18...@students.iitmandi.ac.in> wrote:
> 
> Thank you .
> I moved cloned turtleart directory sugar directory. I have 
> been
> able to setup turtleart-activity in my sugar desktop. But , 
> one
> thing , it does not open . The screen with turtle icon blinks
> for some time and then it shows your activity fails to start. 
> May be I need to install some dependencies.
>  or anything I am missing. Please guide me.
> 
> References:
> 
> [1] mailto:ibiamchihurumn...@gmail.com
> [2] mailto:b18...@students.iitmandi.ac.in
> [3] mailto:ibiamchihurumn...@gmail.com
> [4] mailto:ibiamchihurumn...@gmail.com
> [5] mailto:b18...@students.iitmandi.ac.in

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Running Sugar Activities

2020-03-01 Thread James Cameron
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 
> from shareable_activity import ShareableActivity
>   File "/usr/share/sugar/activities/Calculate.activity/shareable_activity.py",
> line 5, in 
> from sugar3.activity import activity
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 175, in 
> 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 
> from sugar3.activity import activity
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 175, in 
> 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@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Running Sugar Activities

2020-03-01 Thread Alex Perez
Soham,

Two details we'll need which are missing from your report are: which version of 
Sugar do you have installed, and how are you installing the activities?

On 3/1/2020 2:35:34 AM, soham bhattacharya <116cs0...@nitrkl.ac.in> 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 
    from shareable_activity import ShareableActivity
  File "/usr/share/sugar/activities/Calculate.activity/shareable_activity.py", 
line 5, in 
    from sugar3.activity import activity
  File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py", 
line 175, in 
    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 
    from sugar3.activity import activity
  File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py", 
line 175, in 
    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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Run Turtleart-activity in local machine

2020-03-01 Thread b18050 b18050
I installed sugar using this command.

sudo apt install sucrose


On Sun, Mar 1, 2020 at 2:15 PM Chihurumnaya Ibiam <
ibiamchihurumn...@gmail.com> wrote:

> The log you sent shows you're running a python2 version of log activity
> and the activity has been ported to python3, the issues pointed out by the
> log have also been fixed.
> How did you install sugar?
>
> On Sat, Feb 29, 2020, 8:47 PM b18050 b18050 <
> b18...@students.iitmandi.ac.in> wrote:
>
>> The log file at ~/.sugar/default/logs/org.laptop.TurtleArtActivity*.log
>> is empty.
>> But I have log file which has this error.
>> ** (sugar-activity:3712): WARNING **: Couldn't connect to accessibility
>> bus: Failed to connect to socket /tmp/dbus-Ld7oBuIM7S: Connection refused
>> /usr/share/sugar/activities/Log.activity/logviewer.py:25: PyGIWarning:
>> Gtk was imported without specifying a version first . Use
>> gi.require_version('Gtk', '3.0') before import to ensure that right version
>> gets loaded.
>>  from gi.repository import Gtk
>> /usr/lib/Python2.7/dist-packages/sugar3/graphics/icon.py:25: PyGIWarning:
>> Rsvg was imported without specifying a version first . Use
>> gi.require_version('Rsvg', '2.0') before import to ensure that right
>> version gets loaded.
>>  from gi.repository import Rsvg
>> /usr/lib/Python2.7/dist-packages/sugar3/activity/activity.py:87:
>> PyGIWarning: SugarExt was imported without specifying a version first . Use
>> gi.require_version('SugarExt', '1.0') before import to ensure that right
>> version gets loaded.
>>  from gi.repository import SugarExt
>> 1583002965.344058 WARNING root: No Gtk.AccelGroup in the top level window.
>> 1583002965.365016 WARNING root: No Gtk.AccelGroup in the top level window.
>> 1583002965.389279 WARNING root: No Gtk.AccelGroup in the top level window.
>> 1583003083.163259 WARNING root: No Gtk.AccelGroup in the top level window.
>> 1583003083.164215 WARNING root: No Gtk.AccelGroup in the top level window.
>> Exited with status 0, pid 3712 data (None, ', mode
>> 'w' at 0x7fc2c0ad04b0>,'f3aee6e4ef8b9f972da64bbc0f479c9e11601f')
>>
>> On Sat, Feb 29, 2020 at 6:08 PM Chihurumnaya Ibiam <
>> ibiamchihurumn...@gmail.com> wrote:
>>
>>> Can you share the log file at
>>> ~/.sugar/default/logs/org.laptop.TurtleArtActivity*.log?
>>>
>>> --
>>>
>>> Ibiam Chihurumnaya
>>> ibiamchihurumn...@gmail.com
>>>
>>>
>>>
>>> On Sat, Feb 29, 2020 at 12:55 PM b18050 b18050 <
>>> b18...@students.iitmandi.ac.in> wrote:
>>>
 Thank you .
 I moved cloned turtleart directory sugar directory. I have been able to
 setup turtleart-activity in my sugar desktop. But , one thing , it does not
 open . The screen with turtle icon blinks for some time and then it shows
 your activity fails to start.
 May be I need to install some dependencies.
  or anything I am missing. Please guide me.

>>>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Running Sugar Activities

2020-03-01 Thread soham bhattacharya
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  
from shareable_activity import ShareableActivity 
File "/usr/share/sugar/activities/Calculate.activity/shareable_activity.py", 
line 5, in  
from sugar3.activity import activity 
File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 
175, in  
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  
from sugar3.activity import activity 
File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 
175, in  
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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Run Turtleart-activity in local machine

2020-03-01 Thread Chihurumnaya Ibiam
The log you sent shows you're running a python2 version of log activity and
the activity has been ported to python3, the issues pointed out by the log
have also been fixed.
How did you install sugar?

On Sat, Feb 29, 2020, 8:47 PM b18050 b18050 
wrote:

> The log file at ~/.sugar/default/logs/org.laptop.TurtleArtActivity*.log is
> empty.
> But I have log file which has this error.
> ** (sugar-activity:3712): WARNING **: Couldn't connect to accessibility
> bus: Failed to connect to socket /tmp/dbus-Ld7oBuIM7S: Connection refused
> /usr/share/sugar/activities/Log.activity/logviewer.py:25: PyGIWarning: Gtk
> was imported without specifying a version first . Use
> gi.require_version('Gtk', '3.0') before import to ensure that right version
> gets loaded.
>  from gi.repository import Gtk
> /usr/lib/Python2.7/dist-packages/sugar3/graphics/icon.py:25: PyGIWarning:
> Rsvg was imported without specifying a version first . Use
> gi.require_version('Rsvg', '2.0') before import to ensure that right
> version gets loaded.
>  from gi.repository import Rsvg
> /usr/lib/Python2.7/dist-packages/sugar3/activity/activity.py:87:
> PyGIWarning: SugarExt was imported without specifying a version first . Use
> gi.require_version('SugarExt', '1.0') before import to ensure that right
> version gets loaded.
>  from gi.repository import SugarExt
> 1583002965.344058 WARNING root: No Gtk.AccelGroup in the top level window.
> 1583002965.365016 WARNING root: No Gtk.AccelGroup in the top level window.
> 1583002965.389279 WARNING root: No Gtk.AccelGroup in the top level window.
> 1583003083.163259 WARNING root: No Gtk.AccelGroup in the top level window.
> 1583003083.164215 WARNING root: No Gtk.AccelGroup in the top level window.
> Exited with status 0, pid 3712 data (None, ', mode 'w'
> at 0x7fc2c0ad04b0>,'f3aee6e4ef8b9f972da64bbc0f479c9e11601f')
>
> On Sat, Feb 29, 2020 at 6:08 PM Chihurumnaya Ibiam <
> ibiamchihurumn...@gmail.com> wrote:
>
>> Can you share the log file at
>> ~/.sugar/default/logs/org.laptop.TurtleArtActivity*.log?
>>
>> --
>>
>> Ibiam Chihurumnaya
>> ibiamchihurumn...@gmail.com
>>
>>
>>
>> On Sat, Feb 29, 2020 at 12:55 PM b18050 b18050 <
>> b18...@students.iitmandi.ac.in> wrote:
>>
>>> Thank you .
>>> I moved cloned turtleart directory sugar directory. I have been able to
>>> setup turtleart-activity in my sugar desktop. But , one thing , it does not
>>> open . The screen with turtle icon blinks for some time and then it shows
>>> your activity fails to start.
>>> May be I need to install some dependencies.
>>>  or anything I am missing. Please guide me.
>>>
>>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel