just got two errors today when building the exe file from PyQt4.
-
the first one is when run
python setup.py
, there is no file built. after google, the solution is to runpython setup.py build
-
the second question is the error
ImportError: No module named 'PyQt4.uic.port_v3.proxy_base'
. the solution is to removePyQt4
from the packages.
import cx_Freeze
import sys
import matplotlib
base = None
if sys.platform == 'win32':
base = "Win32GUI"
executables = [cx_Freeze.Executable("cre_right_sizing_gui_v01.py", base=base)]
cx_Freeze.setup(
name = "cre_rs_gui_v01",
options = {"build_exe": {"packages":[ "pandas", "numpy", "os","sys", "collections"], 'excludes': [ 'collections.abc']}},
version = "0.01",
description = "CRE Test",
executables = executables
)