Python 3.3和cx_freeze:尽管64位Pygame加载libvorbisfile.dll失败?

时间:2013-04-29 20:51:26

标签: python dll pygame 32bit-64bit cx-freeze

然而,更多的Pygame / cx_freeze地狱。

我有一个主要在Ubuntu 13.04上制作的游戏。 cx_freeze(最新版本)在那里工作正常,没有抱怨(还有!)。但是,我正在尝试使用cx_freeze将我的游戏构建到Windows 7(64位)上的单个可执行文件中,因为我想在Windows和Linux上分发它。它构建很好,但在加载游戏后,我得到了这个堆栈跟踪:

Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in <module>
    exec(code, m.__dict__)
  File "__init__.py", line 56, in <module>
  File "__init__.py", line 32, in main
  File "C:\Users\Jesse\Documents\GitHub\Invasodado\core\gsm.py", line 29, in update
    _current_state.events(pygame.event.get())
  File "C:\Users\Jesse\Documents\GitHub\Invasodado\game\splash.py", line 47, in events
    self.change_state(MainMenu)
  File "C:\Users\Jesse\Documents\GitHub\Invasodado\core\gamestate.py", line 85, in change_state
    self.next_state = state_type(*args, **kwargs)
  File "C:\Users\Jesse\Documents\GitHub\Invasodado\game\mainmenu.py", line 67, in __init__
    config.play_music('title.ogg')
  File "C:\Users\Jesse\Documents\GitHub\Invasodado\core\config.py", line 94, in play_music
    pygame.mixer.music.load(join('sfx', name))
pygame.error: Failed loading libvorbisfile.dll: %1 is not a valid Win32 application.

我正在使用Python 3.3和Pygame 1.9.2(我认为)用于64位计算机。是的,我在游戏目录中确实有libvorbisfile.dll,以及libogg.dlllibvorbis.dll

任何提示?

0 个答案:

没有答案