[Sugar-devel] unable to launch record activity in sugar development environment
Flavio Danesse
fdanesse at gmail.com
Fri Apr 4 10:14:46 EDT 2014
This is a bug that has been present for a while.
It occurs when your code have the same name for a class for the file that
contains it.
For example, this fails: from Record import Record
2014-04-04 9:01 GMT-03:00 Puneet Kaur <puneet.gkaur at gmail.com>:
> cool ! :-)
>
>
> On Fri, Apr 4, 2014 at 5:27 PM, Gonzalo Odiard <godiard at gmail.com> wrote:
>
>> Ok, we are looking at solving this issue in sugar-toolkit,
>> then copy the file is not needed in the future.
>>
>> Gonzalo
>>
>>
>> On Fri, Apr 4, 2014 at 8:55 AM, Puneet Kaur <puneet.gkaur at gmail.com>wrote:
>>
>>> yup that solved the problem.
>>>
>>> copied owner.key.pub file to ~/.sugar/default and now it runs :-)
>>>
>>>
>>> Thanks,
>>>
>>>
>>> On Fri, Apr 4, 2014 at 5:19 PM, Gonzalo Odiard <godiard at gmail.com>wrote:
>>>
>>>> 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
>>>>
>>>>
>>>
>>
>>
>> --
>> Gonzalo Odiard
>>
>>
>
> _______________________________________________
> 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/891d1284/attachment.html>
More information about the Sugar-devel
mailing list