0
 import cx_Freeze

 executables = [cx_Freeze.Executable("dodgegame.py")]

cx_Freeze.setup(
    name="A bit Racey",
    options={"build_exe": {"packages":["pygame"],
                           "include_files":["racecar.png","icon.png","Crash.mp3","Feel_The_Funk.mp3"]}},
     executables = executables

     )

The app is not starting. I have almost been working for an hour but could not find a solution.

  • Are you following a tutorial from a guy's channel called _sentdex_? If so he has a tutorial covering this: https://www.youtube.com/watch?v=EY6ZCPxqEtM – Christian Dean Aug 09 '16 at 14:16
  • Sure I am using following this tutorial. By the way I am using python 2.7 – Rissam Asghar Aug 10 '16 at 16:27
  • If your following his tutorial then you should be using python3.x not python 2. This might cause his[sentdex] script to compile differently then yours. – Christian Dean Aug 10 '16 at 16:34
  • But I am a python 2.x programmer. Is there any software to convert python 2.x to executable? – Rissam Asghar Aug 10 '16 at 16:39
  • That's fine that you prefer python 2.x over python 3.x. But if your going to be following a tutorial specifically made for python 3.x, then It's probably be a better idea to use python 3.x. As for the software for conversion, I'll point you to another one Sentdex tutorials: https://www.youtube.com/watch?v=8qxKYnAsNuU – Christian Dean Aug 10 '16 at 16:42
  • But is there any software for python 2.x + tutorial? – Rissam Asghar Aug 10 '16 at 16:51
  • Oh. sorry I, misread your comment. If you really want to keep using python 2.x, I'd recommend using **pyinstaller**: http://www.pyinstaller.org/. It can convert both python 3.x and python 2.x code to a executable. – Christian Dean Aug 10 '16 at 16:53

0 Answers0