Jump to content

Python error after using cx_freeze to build exe

Hi, 

I have recently wanted to make my python script executable via cx_freeze. I tried python 3.5 and 3.6 same error...

Here is my setup.py code:

import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "Win32GUI"
setup(  name = "guifoo",
        version = "0.1",
        description = "My GUI application!",
        options = {"build_exe": build_exe_options},
        executables = [Executable("FileName.py", base=base)])
 
As attachment I put picture of an error I get
Any one know how to fix it :D

19401477_1579302168760078_1584279794_o.jpg

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×