Keep Looking, Don't Settle

figure out errors in cx_freeze

just got two errors today when building the exe file from PyQt4.

  1. the first one is when run python, there is no file built. after google, the solution is to run python build

  2. the second question is the error ImportError: No module named 'PyQt4.uic.port_v3.proxy_base'. the solution is to remove PyQt4 from the packages.

import cx_Freeze
import sys
import matplotlib

base = None

if sys.platform == 'win32':
   base = "Win32GUI"

executables = [cx_Freeze.Executable("", base=base)]

   name = "cre_rs_gui_v01",
   options = {"build_exe": {"packages":[ "pandas", "numpy", "os","sys", "collections"], 'excludes': [ '']}},
   version = "0.01",
   description = "CRE Test",
   executables = executables