[Sugar-devel] unable to launch record activity in sugar development environment

Gonzalo Odiard godiard at gmail.com
Fri Apr 4 07:49:57 EDT 2014


Can you copy the file in the directory ~/.sugar/default ?

Gonzalo


On Fri, Apr 4, 2014 at 8:48 AM, Puneet Kaur <puneet.gkaur at gmail.com> wrote:

> Hey,
>
> The key is already there in owner.key.pub file inside
> /home/dotsugar/default directory.
>
>
> On Fri, Apr 4, 2014 at 2:59 PM, Sam Parkinson <sam.parkinson3 at gmail.com>wrote:
>
>> Hi,
>>
>> Try copying your ssh keys to [dot sugar dir]/default/. You should copy
>> the id_rsa.pub to owner.key.pub
>>
>> Have a look at this for how to make ssh keys if you need to:
>> https://help.github.com/articles/generating-ssh-keys
>>
>> Hope that helps :)
>>
>> Sam
>> On Apr 4, 2014 8:15 PM, "Puneet Kaur" <puneet.gkaur at gmail.com> wrote:
>>
>>> I am unable to launch the record activity in my sugar development
>>> environment due to the following (as seen in the log):
>>>
>>> ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
>>> ** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
>>> Traceback (most recent call last):
>>>   File "/home/broot/sugar-build/
>>> build/out/install/bin/sugar-activity", line 164, in <module>
>>>     main()
>>>   File "/home/broot/sugar-build/build/out/install/bin/sugar-activity",
>>> line 122, in main
>>>     module = __import__(module_name)
>>>   File "/home/broot/sugar-build/activities/Record.activity/record.py",
>>> line 48, in <module>
>>>     from model import Model
>>>   File "/home/broot/sugar-build/activities/Record.activity/model.py",
>>> line 38, in <module>
>>>     from instance import Instance
>>>   File "/home/broot/sugar-build/activities/Record.activity/instance.py",
>>> line 6, in <module>
>>>     class Instance:
>>>   File "/home/broot/sugar-build/activities/Record.activity/instance.py",
>>> line 8, in Instance
>>>     keyHash = util.sha_data(key)
>>>   File "/home/broot/sugar-build/build/out/install/lib/python2.
>>> 7/site-packages/sugar/util.py", line 48, in sha_data
>>>     sha_hash.update(data)
>>> TypeError: must be string or buffer, not None
>>> Exited with status 1, pid 6433 data (None, <open file '<fdopen>', mode
>>> 'w' at 0xa163cd8>, '00ff052bdf454798f5c949c07f1ec80b985eaeba')
>>>
>>> As far as I have traced the error, it is due to the null value in key in
>>> line 7 in record/instance.py  which in turn is due to no os path in line 87
>>> in sugar-build/build/out/install/lib/python2.7/site-packages/sugar/profile.py,
>>> I saw the path it was set to /home/broot/.sugar/default/owner.key.pub whereas
>>> no such path exists when I look through the terminal, the correct path
>>> where the owner.key.pub is /home/dotsugar/default/owner.key.pub , I
>>> changed the path to this in line 83 of profile.py but still the condition
>>> of *not os.path.exists(key_path)* exists is true and its returning None
>>> because of which activity not launching. Other activities are running fine.
>>> I also looked into env.py there the follows the path through line 46 to 48,
>>> that is path = None condition is true.
>>>
>>> Can somebody please tell me why am I not able to launch record activity
>>> ? why is it giving such an error.I am on ubuntu 12.04
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>


-- 
Gonzalo Odiard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140404/995deae9/attachment-0001.html>


More information about the Sugar-devel mailing list