[Sugar-devel] Issues running FoodForce2 on Soas Strawberry

Bobby Powers bobbypowers at gmail.com
Tue Oct 20 16:01:41 EDT 2009


do you know which statement is failing in that try statement?  is it the
import olpcgames, import olpcgames.util, or the olpcgames.ACTIVITY access?

bobby

On Tue, Oct 20, 2009 at 1:38 PM, Mohit Taneja <mohitgenii at gmail.com> wrote:

> One more issue which i figured out after a little more debugging is that
> the check for Sugar platform is also failing on Soas. I am using the
> following check on Soas:
>>
>>
>>  #Flag to check the operating system
>  FLAG_XO = False
>
> try:
>     import olpcgames, olpcgames.util
>     if not olpcgames.ACTIVITY: raise RuntimeError
>     FLAG_XO = True
>  except (RuntimeError,ImportError):
>      FLAG_XO = False
>
> The same check is working fine on XO1.
>
> Regards,
> Mohit Taneja
>
>
>
> On Tue, Oct 20, 2009 at 8:25 PM, Mohit Taneja <mohitgenii at gmail.com>wrote:
>
>> Hi,
>>
>> I tried running FoodForce2 on Soas. The game ran fine, but there were some
>> issues regarding the display of the game, it was too much distorted.
>> Later I noticed that Soas comes with python 2.6, but I have done most of
>> the development on python 2.5.4. I ran the game through terminal directly
>> from the code itself and the following log was generated:
>>
>> /usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
>>> sha module is deprecated; use the hashlib module instead
>>>
>>> import sha
>>> ALSA lib pulse.c:272:(pulse_connect) PulseAudio: Unable to connect:
>>> Connection refused
>>>
>>>
>> Any ideas about what could be possible reason for the error?
>>
>> Regards,
>>  Mohit Taneja
>>
>
>
> _______________________________________________
> 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/20091020/c3be9a94/attachment-0001.htm 


More information about the Sugar-devel mailing list