Re: [Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-24 Thread Mohit Taneja
Hi Tomeu,

Thanks for the help, I am able to run FoodForce2 on Soas as well on XO, and
I would be making an XO package on this weekend.

Regards,
Mohit Taneja


On Fri, Oct 23, 2009 at 2:53 PM, Tomeu Vizoso to...@sugarlabs.org wrote:

 On Wed, Oct 21, 2009 at 16:41, Mohit Taneja mohitge...@gmail.com wrote:
 
  Hi,
 
  I tried running the game on someone else's laptop using Soas. The problem
 regarding the graphics was solved but still it is not able to detect if it
 is running on sugar environment or not?
 
  @ bobby: if not olpcgames.ACTIVITY check is failing it should be able to
 read olpcgames.ACTIVITY, but it isnt able to do that. Any help regarding how
 to figure out  the platform will be really helpful.

 Hi Mohit,

 if you want to know whether you are running inside Sugar or not, as
 opposed to Sugar being installed or not, I think it's better that you
 check fr the existence of one of these environment variables:

 http://wiki.laptop.org/go/Low-level_Activity_API#Environment_Variables

 Regards,

 Tomeu


  Regards,
  Mohit Taneja
 
 
  On Wed, Oct 21, 2009 at 1:31 AM, Bobby Powers bobbypow...@gmail.com
 wrote:
 
  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 mohitge...@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 mohitge...@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@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 «Sugar Labs is anyone who participates in improving and using Sugar.
 What Sugar Labs does is determined by the participants.» - David
 Farning

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-23 Thread Tomeu Vizoso
On Wed, Oct 21, 2009 at 16:41, Mohit Taneja mohitge...@gmail.com wrote:

 Hi,

 I tried running the game on someone else's laptop using Soas. The problem 
 regarding the graphics was solved but still it is not able to detect if it is 
 running on sugar environment or not?

 @ bobby: if not olpcgames.ACTIVITY check is failing it should be able to read 
 olpcgames.ACTIVITY, but it isnt able to do that. Any help regarding how to 
 figure out  the platform will be really helpful.

Hi Mohit,

if you want to know whether you are running inside Sugar or not, as
opposed to Sugar being installed or not, I think it's better that you
check fr the existence of one of these environment variables:

http://wiki.laptop.org/go/Low-level_Activity_API#Environment_Variables

Regards,

Tomeu


 Regards,
 Mohit Taneja


 On Wed, Oct 21, 2009 at 1:31 AM, Bobby Powers bobbypow...@gmail.com wrote:

 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 mohitge...@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 mohitge...@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@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




--
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-21 Thread Mohit Taneja
Hi,

I tried running the game on someone else's laptop using Soas. The problem
regarding the graphics was solved but still it is not able to detect if it
is running on sugar environment or not?

@ bobby: if not olpcgames.ACTIVITY check is failing it should be able to
read olpcgames.ACTIVITY, but it isnt able to do that. Any help regarding how
to figure out  the platform will be really helpful.

Regards,
Mohit Taneja


On Wed, Oct 21, 2009 at 1:31 AM, Bobby Powers bobbypow...@gmail.com wrote:

 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 mohitge...@gmail.comwrote:

 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 mohitge...@gmail.comwrote:

 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@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-20 Thread Mohit Taneja
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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-20 Thread Mohit Taneja
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 mohitge...@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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Issues running FoodForce2 on Soas Strawberry

2009-10-20 Thread Bobby Powers
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 mohitge...@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 mohitge...@gmail.comwrote:

 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@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel