cx-freeze

cx_Freeze not able to build msi with pandas

我的未来我决定 提交于 2019-12-14 01:38:38
问题 Hi I have following cx_Freeze setup.py file for an application that uses pandas module. When I generate msi I am facing issues. I looked all over the google for this but none of them are working for me. include-files = ['aardvark.dll'] includes = [] excludes = [] base = "Win32GUI" exe = Executable( script="test.py", initScript=None, base=base, targetName="test.exe", copyDependentFiles=True, compress=False, appendScriptToExe=False, appendScriptToLibrary=False, shortcutDir="MyProgramMenu",

'module' object has no attribute 'to_bytes' Python

只愿长相守 提交于 2019-12-13 21:11:04
问题 Please advise how I can cx-freeze my python program which uses serial : import serial import serial.tools.list_ports; print serial.tools.list_ports() Here's my setup.py import sys from cx_Freeze import setup, Executable setup( name = "My test program", version = "3.1", description = "My test", executables = [Executable("pystest.py", base = "Win32GUI")]) After I build using cx_freeze, this is my error : --------------------------- cx_Freeze: Python error in main script ------------------------

No module _cffi_ freezing with cx_Freeze

两盒软妹~` 提交于 2019-12-13 20:24:04
问题 I am developing a PySide application (Qt for Python) and I would like to freeze it using cx_Freeze. When I run python setup.py build using my setup file below, it creates the build directory without errors, but then when I run the .exe file generated, I get the error message shown below: from cx_Freeze import setup, Executable target = Executable( script="main_window.py", base = "Win32GUI", icon="images\\icon.ico" ) setup(name = "DemiurgoXMLgen" , version = "0.1" , description = "" , options=

Problems with python file(.py) to executable(.exe) with cx_Freeze

浪尽此生 提交于 2019-12-13 18:23:39
问题 TO BE MORE SPECIFIC: This program is not running AT ALL, only opening the command prompt and suddenly shutting down... Heres my setup.py file... I imported os and added the links to tcl and tk to prevent another issue for occurring. After solving that issue and now I am able to successfully build an .exe from my raw python code but, when opening the freshly created .exe file... All it will do it open a command prompt screen for mere milliseconds and close once again. I am assuming there was

Freezing (.exe) a traitsUI program, realistically feasible?

蹲街弑〆低调 提交于 2019-12-13 14:01:16
问题 I'm trying to freeze with either cx_freeze or pyInstaller a TraitsUI program that makes use of Chaco, Traits, TraitsUI and to a lesser extent mayavi (could actually be taken out). I need this to run on mac, linux, ubuntu so am avoiding py2exe. I've intentionally uninstalled pyqt and pyside so that only the wx backend is available. Using cx_freeze, I encountered and reported a bug, so pyInstaller seems to be getting me the furthest. It generated an .exe file, but when I run the file I get

Traceback from CX_Freeze doesn't make sense

老子叫甜甜 提交于 2019-12-13 07:42:40
问题 I've been trying to get my python script distributed to other for a while now, have tried py2app etc. Finally seem to have made the most progress with CX_Freeze. It completes building the app with a simple helloworld wxpython script from cx_freeze but fails with my script. It fails with this traceback: running bdist_dmg running bdist_mac running build running build_exe creating directory build/exe.macosx-10.5-x86_64-2.7 copying //anaconda/lib/python2.7/site-packages/cx_Freeze-4.3.3-py2.7

Yapsy finding plugins through eclipse versus cx_Freeze executable

流过昼夜 提交于 2019-12-13 06:50:58
问题 I'm working on a program that uses Yapsy as a backend for a plugin system. User's can write their own plugins and load them at runtime. I've got a menu that displays all the loaded plugins, each as it's own menuitem. I also supply two pre-made plugins with the program. These pre-made plugins load fine when running the program through eclipse (i.e. the menu displays both plugins); however, after I've create an executable, using cx_Freeze, the plugins are not loading correctly for some reason.

rpy2 works good in PyCharm and doesn't work in .exe file

﹥>﹥吖頭↗ 提交于 2019-12-13 03:49:53
问题 I am making an app using rpy2 library in Python 3.6.1. Everything works great when I am running the script from PyCharm but in .exe file there is a problem. When I click on the button (I am using tkinter for GUI) I don't get any statistics calculated in rpy2 (and again, everything works in PyCharm). I used cx_freeze to convert to .exe file. Does anyone have the idea what is the problem ? Thanks 来源: https://stackoverflow.com/questions/45391537/rpy2-works-good-in-pycharm-and-doesnt-work-in-exe

pysnmp.smi.error.MibNotFoundError: No module __SNMP-FRAMEWORK-MIB loaded at <pysnmp.smi.builder.MibBuilder object at 0x0418A110>

泪湿孤枕 提交于 2019-12-13 03:19:09
问题 I'm just starting out in Python so please bear with me. I've been trying to find a solution to this error for the last 3 days in google, Stack Overflow, Github, python.org and also snmplabs.com. I have progressed from other errors (thanks in part to the above websites) but this one has me stumped and I cannot seem to resolve it. I'm running the following versions of stuff: Windows 10 Enterprise 64-bit python 3.6, pysnmp 4.4.4, pyasn1 0.2.3 and I am using paramiko for ssh and tkinter as a GUI

Can't run Pygame script that plays a OGG file compiled through cx_Freeze

不想你离开。 提交于 2019-12-13 01:53:42
问题 When I compile the following script: # play.py import os, re import pygame.mixer pygame.mixer.init(11025) pygame.mixer.music.load('song.ogg') pygame.mixer.music.play(-1) os.system("PAUSE") Using the following setup.py : from cx_Freeze import setup, Executable exe = Executable( script="play.py", ) setup( executables = [exe] ) Through: python setup.py build Executing play.exe gives me the following error: Traceback (most recent call last): File "C:\Python33\lib\site-packages\cx_Freeze