1

while creating exe of my python game . I got the following errorError

my code in setup.py is

import cx_Freeze
import os

os.environ['TCL_LIBRARY'] = "C:\\Users\Vinayak Singla\\Appdata\\Local\\Programs\\Python\\Python36-32\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Users\Vinayak Singla\\Appdata\\Local\\Programs\\Python\\Python36-32\\tcl\\tk8.6"

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

cx_Freeze.setup(
    name="Pongy",
    options={"build_exe": {"packages":["pygame","sys","random","time"],"include_files":["boing.wav","out.wav"]}},
    executables = executables
)

Can anyone help me to solve this.

Vinayak Singla
  • 142
  • 1
  • 12

1 Answers1

1

You might need a version in your setup script. Like:

cx_Freeze.setup(
    name="Pongy",
    version='1.0',
    options={"build_exe": {"packages":["pygame","sys","random","time"],"include_files":["boing.wav","out.wav"]}},
    executables = executables
)

Hope this will solve your problem.

xmcp
  • 3,347
  • 2
  • 23
  • 36