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

Re: [pygame] mixer.music in runtime



On Wed, Apr 2, 2008 at 4:16 PM, Bo Jangeborg <bo@xxxxxxxxxxx> wrote:
>  Have you tried it yourself's ?
>
using python 2.5 with pygame 1.8 and py2exe 0.6.6 on Windows XP sp2,

I tried a script that says this:
--------
import pygame
import pygame.mixer
print pygame.mixer.music
--------

with a py2exe building script of this:
--------
from distutils.core import setup
import py2exe
import sys

sys.argv.append("py2exe")

setup(windows=['test_file.py'],
      options = {'py2exe': {'optimize': 2, 'bundle_files':1} },
      zipfile=None)
--------

and the resulting exe ran fine, without any error on the
pygame.mixer.music access

I think the problem is definitely something specific to your config.
You should definitely try:
   import pygame.mixer_music
in the script that is currently having a problem