0

I made a python file with pygame that is a game. Using py2app I was able to make it a stand alone application for my computer(os x Yosemite) but when I tried to run it on a different computer the application crashed before opening. I made sure to include all the files I used in the game script. Is there something wrong with my setup.py file. Below is the setup.py file.

from setuptools import setup
APP = ['Tilegame.py']

DATA_FILES = ['BGmusic.wav', 'Clicknoise.wav', 'HighScoreeasy.txt', 
'Losenoise.wav', 'HighScoreimpossible.txt',
'HighScorehard.txt','HighScoreintermediate.txt']

OPTIONS = {'argv_emulation': False, 'includes': ['EXTERNAL LIBRARY']}

setup(
    app = APP,
    data_files = DATA_FILES,
    options = {'py2app':OPTIONS},
    setup_requires = ['py2app'],
)

This is the error message I get when I try to run the app on another computer: https://docs.google.com/document/d/13ehvvNy1hrhTxTB_P76b6KxZ5aTI51Cy3It9u0GwvMM/edit?usp=sharing

  • run it in a terminal ... and put the traceback ... my first guess is you dont have all the required files ... – Joran Beasley Feb 09 '15 at 20:50
  • when I run: sudo python3 setup.py py2app it runs without error and the .app file is made. @JoranBeasley – Donald Jones Feb 09 '15 at 20:54
  • no ... try and run the app file in the terminal .... and paste the traceback ... clearly it builds fine ... I could tell from your question – Joran Beasley Feb 09 '15 at 20:55
  • This is the error from the console: https://docs.google.com/document/d/13ehvvNy1hrhTxTB_P76b6KxZ5aTI51Cy3It9u0GwvMM/edit?usp=sharing @JoranBeasley – Donald Jones Feb 09 '15 at 21:02
  • you should add that to your question ... unfortunately not having worked with py2app I will be of little assistance(however that traceback is surely relevant to the question) – Joran Beasley Feb 09 '15 at 21:09
  • Please post the actual traceback rather than a link to it. Google docs is blocked on my network. – elParaguayo Feb 10 '15 at 12:49

0 Answers0