Dear cx-freeze-users.
Environment: WinXpSp3, WinPython-32bit-3.3.3.2Portable, Python3.3.3,
PySide1.2.1, PySerial-py3k2.6, PyModbus1.2.0, cx_Freeze4.3.2.
this is the script:
/
import sys///
/from cx_Freeze import setup, Executable/
//
/
/
//
/company_name = "MyCompanyName"/
//
/product_name = "MyProductName"/
//
/
/
//
/bdist_msi_options = {/
//
/"upgrade_code": "{66620F3A-DC3A-11E2-B341-002219E9B01E}",/
//
/"add_to_path": False,/
//
/"initial_target_dir": r"[ProgramFilesFolder]\%s\%s" % (company_name,
product_name),/
//
/}/
//
/includes = ["atexit", "PySide.QtNetwork", "decimal", "MyPyModbusGUI",
"MyPyModbusThread", "MyPyModbus_rc"]/
//
/excludes = ["tkinter"]/
//
/packages = ["serial", "pymodbus"]/
//
/path = []/
//
/includefiles = []/
//
/
/
//
/build_exe_options = {/
//
/"excludes":excludes,/
//
/"includes":includes,/
//
/"packages":packages,/
//
/"path":path,/
//
/"include_files":includefiles/
//
/}/
//
//
/base = "Win32GUI" if sys.platform == "win32" else None/
//
/
/
//
/exe = Executable(/
//
/script="C:\Documents and
Settings\Administrator\Desktop\MyPyModbus\MyPyModbus.py",/
//
/base=base,/
//
/icon="QT.ico"/
//
/)/
//
/
/
//
/setup(/
//
/name=product_name,/
//
/version = "0.1",/
//
/description = "MyDescription",/
//
/author = "MyAuthor",/
//
/author_email = "myaut...@email.com",/
//
/executables=[exe],/
//
/options={/
//
/"build_exe": build_exe_options,/
//
/"bdist_msi": bdist_msi_options}/
//
/)/
The QT "simple example of an Hello World in PySide" program
(http://qt-project.org/wiki/Hello-World-in-PySide) works smoothly when
"freezed".
The actual program that makes use of PySerial and PyModbus works without
any problem when launched from the Python console (not yet "freezed").
I "freezed" it with the same aforementioned script.
I launched the produced executable "MyPyModbus.exe" from "Command Prompt".
/
C:\Documents and
Settings\Administrator\Desktop\MyPyModbus\build\exe.win32-3.3>M//yPyModbus.exe//
///
For few seconds the MyPyModbus.exe process appears in the "Windows Task
Manager" with CPU Usage 11% and Memory Usage 31,008 K.
No window opens on the screen.
The "Command Prompt" gets back with no feedback.
/
C:\Documents and
Settings\Administrator\Desktop\MyPyModbus\build\exe.win32-3.3>/
I tried also to link every package installed in WinPython with the very
same result.
Thanks in advance for any help or suggestion!
Kind regards,
Daniel
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users