Oooh damn gtk2... This needs to be backported to sugar-toolkit commit fe192be798ac1a9bd13983d197cb5775b7da2ad5 Author: Daniel Narvaez <dwnarv...@gmail.com> Date: Wed Sep 11 16:36:31 2013 +0200
Add a SUGAR_HOME environment variable We should really use XDG directories but that will be a bit more complicated and require migration scripts. This is a short time solution to "expose" the dot sugar directory in sugar-build. On 4 April 2014 11:33, Gonzalo Odiard <godi...@sugarlabs.org> wrote: > Record is a gtk2 activity, then is using sugar.profile, not sugar3.profile, > and is not looking at the broot directory, but to .sugar/default/ > I think we discussed this issue about the compatibility with gtk2 > activities before, > but don't remember what we decided. > > Gonzalo > > > On Fri, Apr 4, 2014 at 7:26 AM, Daniel Narvaez <dwnarv...@gmail.com>wrote: > >> Aren't the keys supposed to be created by sugar on first start? >> >> >> On Friday, 4 April 2014, Sam Parkinson <sam.parkins...@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.gk...@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@lists.sugarlabs.org >>>> http://lists.sugarlabs.org/listinfo/sugar-devel >>>> >>>> >> >> -- >> Daniel Narvaez >> >> >> _______________________________________________ >> Sugar-devel mailing list >> Sugar-devel@lists.sugarlabs.org >> http://lists.sugarlabs.org/listinfo/sugar-devel >> >> > > > -- > Gonzalo Odiard > > SugarLabs - Learning Software for children > -- Daniel Narvaez
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel