pydata

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 setup.py, there is no file built. after google, the solution is to run python setup.py 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("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
   )