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

Sam Parkinson sam.parkinson3 at gmail.com
Fri Apr 4 05:29:00 EDT 2014


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140404/9fa39b53/attachment-0001.html>


More information about the Sugar-devel mailing list