This is the cxFreeze script that I use to freeze a .py file.`
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["pygame"]}
executables = [Executable("Zen Lights.py")]
setup(name="Zen Lights",
version="0.1",
description="A Simon Clone",
options={"build_exe": build_exe_options,
"include_files": ["beep1.wav", "beep2.wav", "beep3.wav", "beep4.wav"]},
executables = executables)
The thing is it doesn't work and the console sending me this error output.
Kaungs-MacBook-Air:Zen Lights kaungmyatzaw$ python3 setup.py build
Traceback (most recent call last):
File "setup.py", line 12, in <module>
executables = executables)
File "/usr/local/lib/python3.4/site-packages/cx_Freeze/dist.py", line 362, in setup
distutils.core.setup(**attrs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.4/site-packages/cx_Freeze/dist.py", line 24, in __init__
distutils.dist.Distribution.__init__(self, attrs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 236, in __init__
for (opt, val) in cmd_options.items():
AttributeError: 'list' object has no attribute 'items'