[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Trolls Outta Luckland - 0.0.4



On Sat, Jan 2, 2010 at 8:27 AM, Michael George <mdgeorge@xxxxxxxxxxxxxx> wrote:
In 0.0.4:

ImportError: Bad magic number in lib/game_globals.pyc
  in file "/home/mdgeorge/tmp/trolls_outta_luckland/Trolls_Outta_Luckland.py"
Traceback (most recent call last):
 File "Trolls_Outta_Luckland.py", line 1012, in <module>
  main()
 File "Trolls_Outta_Luckland.py", line 989, in main
  jukebox = gumm_sound.Jukebox()
NameError: global name 'gumm_sound' is not defined


Hm...

Taking a guess: ./lib/ or /home/mdgeorge/tmp/trolls_outta_luckland/lib needs to be in your sys.path. The game automatically adds ./lib/ so this should work:

$ cd /home/mdgeorge/tmp/trolls_outta_luckland
$ ./Trolls_Outta_Luckland.py

Gumm