[Sugar-devel] Activity Installation Problem - help!

Peter Hewitt prh at mulawa.net
Sun Sep 19 23:01:38 EDT 2010


Hi,

I successfully installed my first activity on my soas box but it took a lot 
of trial and error! I thought I wrote down all the steps but when I tried 
my second activity it failed. I spent a lot of time with alsroot - the app 
worked fine for him - could I have an soas issue here?

Thanks ... Peter

test.py
=======

import pygame,sys
def main():
     pygame.init()
     screen=pygame.display.set_mode()
     gwidth,gheight=screen.get_size()
     print gwidth
     print gheight
     pygame.display.quit()
     pygame.quit()
     sys.exit()

if __name__=="__main__":
     main()

steps:
=====
cd ~/peter/OLPCGames-1.6/skeleton
python buildskel.py –n test -t test -m test:main
cd test.activity
python setup.py dev
restart sugar
try hammer icon -> fails - error log:
'module' object has no attribute 'main'



More information about the Sugar-devel mailing list