[Sugar-devel] Sugar-build : can't see my own activity

laurent bernabe laurent.bernabe at gmail.com
Sat Sep 14 18:33:39 EDT 2013


Thank you very much :)
It works now.

So, when I generate a skeleton from OLPC Games, I must edit the setup.py
and add a bundle_id.
Little modifications, but not I am aware about them.

Regards


2013/9/15 Daniel Narvaez <dwnarvaez at gmail.com>

> Looks like a gtk2 activity
>
> from sugar.activity import bundlebuilder
>
> I'm not sure how we can fix that, we are not making changes to
> sugar-toolkit anymore. As a workaround change that line (in setup.py) to
>
> from sugar3.activity import bundlebuilder
>
> Then call "./setup.py dev" and then you can revert the change.
>
>
> On 15 September 2013 00:10, laurent bernabe <laurent.bernabe at gmail.com>wrote:
>
>> Yes i can pass you the source code
>> it is in joined to this mail
>>
>> Notice that I downloaded the OLPC games 1.6 and generated a skeleton with
>> it.
>>
>>
>> 2013/9/15 Daniel Narvaez <dwnarvaez at gmail.com>
>>
>>> Do you have the code anywhere?
>>>
>>> At very least the setup.py must be importing sugar or sugar3, unless it
>>> implements its own dev command.
>>>
>>>
>>> On 14 September 2013 23:47, laurent bernabe <laurent.bernabe at gmail.com>wrote:
>>>
>>>> no neither import sugar, nor import sugar3 (and it does not seems to me
>>>> that I must rely on OLPC Games code for that) : maybe I missed that point.
>>>>
>>>>
>>>> 2013/9/14 Daniel Narvaez <dwnarvaez at gmail.com>
>>>>
>>>>> pygame aside, does it use sugar-toolkit (import sugar) or
>>>>> sugar-toolkit-gtk3 (import sugar3)?
>>>>>
>>>>> On 14 September 2013 23:38, laurent bernabe <laurent.bernabe at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> no it is a pygame activity built upon sugar olpc games
>>>>>>
>>>>>>
>>>>>> 2013/9/14 Daniel Narvaez <dwnarvaez at gmail.com>
>>>>>>
>>>>>>> Is it a gtk2 activity? If not, is it using "from sugar3.activity
>>>>>>> import bundlebuilder" in the setup.py?
>>>>>>>
>>>>>>>
>>>>>>> On 14 September 2013 22:06, Daniel Narvaez <dwnarvaez at gmail.com>wrote:
>>>>>>>
>>>>>>>> From terminal is fine, you are  inside the chroot. Looks like a bug
>>>>>>>> somewhere, investigating...
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 September 2013 22:03, laurent bernabe <
>>>>>>>> laurent.bernabe at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I don't think, as I started the sugar emulator with
>>>>>>>>> $> ./osbuild run
>>>>>>>>>
>>>>>>>>> rather than running $> ./osbuild shell
>>>>>>>>>
>>>>>>>>> And from the terminal activity, I enter the installation command
>>>>>>>>> for my own activity.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2013/9/14 Daniel Narvaez <dwnarvaez at gmail.com>
>>>>>>>>>
>>>>>>>>>> Did you run setup.py dev inside an osbuild shell? (Btw I don't
>>>>>>>>>> develop activities myself so your feedback is very useful)
>>>>>>>>>>
>>>>>>>>>> On Saturday, 14 September 2013, laurent bernabe wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> I've just installed my own activity in sugar-build, by the
>>>>>>>>>>> command
>>>>>>>>>>> $>python setup.py dev
>>>>>>>>>>>
>>>>>>>>>>> But, though I've restarted Sugar-build, I can't see my own
>>>>>>>>>>> application, even looking at the table view of the activities. And I did
>>>>>>>>>>> not see any trace of my own activity in the logs.
>>>>>>>>>>>
>>>>>>>>>>> Meanwhile, I launched "$> python setup.py dev" again, and I got
>>>>>>>>>>> the message "the activity is already installed in developpement mode".
>>>>>>>>>>>
>>>>>>>>>>> Also, I looked into the sugar-build folder, but did not see the
>>>>>>>>>>> subfolder activities, letting me think that the application is not properly
>>>>>>>>>>> installed.
>>>>>>>>>>>
>>>>>>>>>>> What did I misunderstood ?
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Daniel Narvaez
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Daniel Narvaez
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Daniel Narvaez
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Daniel Narvaez
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Daniel Narvaez
>>>
>>
>>
>
>
> --
> Daniel Narvaez
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130915/117038fb/attachment.html>


More information about the Sugar-devel mailing list