0 Replies - 2008 Views - Last Post: 21 August 2012 - 01:43 PM Rate Topic: -----

#1 jephindavis  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 19
  • Joined: 13-November 09

Problem With Compiled Executable

Posted 21 August 2012 - 01:43 PM

Hi everyone, I used a setup.py and py2exe to convert my game into executable. The compilation went well, but when i run the final product, that is, the exe file, i am getting this error:

Traceback (most recent calls last)
File "SHADOW.py", line 66, in <module>
File "SHADOW.py",line 60, in main
File "menu..pyc", line 235, in main
IOError:unable to read font filename

So i tried changing the non-system fonts in the program and used default font.
But then the error i get is:

Fatal python error: (pygame parachute) Segmentation fault
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


What am i doing wrong?
The setup.py file i used is :

from distutils.core import setup
 
import py2exe, glob,sys,os


origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
        if os.path.basename(pathname).lower() in ("libogg-0.dll", "sdl_ttf.dll"):
                return 0
        return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL


 
opts = { 
 "py2exe": { 
   'includes':[
              ]
 } 
} 
 
setup(
 
  console=['SHADOW.py'],
 
  options=opts,
 
  data_files = [
    ("frames", glob.glob("frames\\*.*")),
    ("ghost shadow", glob.glob("ghost shadow\\*.*")) ,
    ("resource", glob.glob("resource\\*.*")),
    ("sounds", glob.glob("sounds\\*.*"))
  ],
 
  zipfile="lib/shared.zip"
)


This post has been edited by atraub: 23 August 2012 - 08:10 AM
Reason for edit:: Removed caps from topic name


Is This A Good Question/Topic? 0
  • +

Page 1 of 1