This is my first post here, so if I make a mistake please tell me, I'll correct it. I am in python
3.6, windows 10, I have a program that I need to compile with cx_Freeze
. I cannot get my setup.py
to work, it has an error when I try to compile. The program I am trying to compile starts with:
import pygame
from pygame.locals import *
import sys
import time
import tkinter
from tkinter import filedialog
from tkinter import messagebox
I need all of these to make the program work, yet I need to compile it with cx_Freeze
, Somebody please help me!
My setup.py
is
from cx_Freeze import setup, Executable
base = None
executables = [Executable("to-compile.py", base=base)]
packages = ["idna","os","sys","tkinter","pygame"]
options = {'build_exe' : {'packages':packages}}
setup(name="<any name>",options=options,version="<any number>",description="<any description>",executables=executables)
I have a compiler.bat that contains:
python setup.py build
And my error is: Powershell Error
Seems like I cannot insert images yet I need a reputation.
PyInstaller does not work:
I will post error code on pastebin
If there is a solution to the problem with py2exe(or whatever variation of that compiler), please tell me just keep in mind that I am in python 3.