cx-freeze

subprocess.Popen behavior after cx_freeze

馋奶兔 提交于 2019-12-07 19:49:43
问题 I have some python code using subprocess.Popen to open a console application and get stdout/stderr from it. Launching from the interpreter works fine and as intended. After using cx_freeze with --base-name Win32GUI option the Popen pops up in a console window now and I can't capture stdout/stderr. If I remove --base-name Win32GUI it works as intended but I now have a console behind the UI. Here is the code (I've tried it without startupinfo and without shell=False ): startupinfo = subprocess

cx_freeze ImportError when executing file

流过昼夜 提交于 2019-12-07 19:39:10
问题 The program is designed to capture the title bar of the users foreground window and append that title along with the datetime to a log file. When I run this code on my computer it works, however when I run the executable on another computer I get the error you can see below: Python file: from win32gui import GetForegroundWindow, GetWindowText from datetime import datetime from time import sleep from os.path import join log_path = r'C:\Office Viewer\OV_Log.txt' while True: window_name =

Creating fewer files when freezing a Python application

爷,独闯天下 提交于 2019-12-07 17:20:31
问题 I'm using cxFreeze to freeze my Python application. All seems to be working as expected but peering into the build directory got me thinking... Is there a way I could have fewer files in the build directory? Currently, there's a bunch of PYD files and the necessary DLL files lying around. Then I have some configuration files (custom) and the rest of the stuff is thrown into a library.zip file. Is there a way I could bundle pretty much everything into the library.zip file so I could have fewer

Failed to build stand-alone application on Mac OS X Yosemite (10.10) with cx_Freeze

吃可爱长大的小学妹 提交于 2019-12-07 17:10:58
问题 I tried to build an application with cx_Freeze 4.3.1 on Mac OS X Yosemite 10.10 but it didn't worked. I use python version 2.7 and use Tkinter as my GUI for development. If I use python setup.py bdist_mac on the terminal, the build process fail with the following error message: [Errno2]/Library/Frameworks/Tcl.framework/versions/8.5/TCL no such file or directory The newest version (8.5) of Tcl/Tk is already installed. My setup file looks like this: from cx_Freeze import setup, Executable build

Error building executable with cx_Freeze: IndexError: tuple index out of range

半腔热情 提交于 2019-12-07 15:15:28
Background I have made a program that I am trying to turn into an executable using CX_Freeze. The setup.py file is placed inside the same directory as all files I am working with. I don't use any extra libraries other than TKinter and OS. The program works perfectly fine normally when I run it via PyCharm>Run Version Numbers cx_Freeze ver: - 5.0 cx_Freeze .whl: - cx_Freeze-5.0-cp36-cp36m-win_amd64.whl python ver: - 3.6.0b4 pycharm ver: - 2016.3.1 This is my setup.py file import cx_Freeze import sys from cx_Freeze import setup, Executable base = None if sys.platform == 'win32': base = "Win32GUI

Converting GUI-application into .exe-file with cx_Freeze: no plugin found for toolkit qt4

こ雲淡風輕ζ 提交于 2019-12-07 12:43:33
问题 My program contains mayavi, traits and pyqt5 elements in order to visualize something in 3D. I tried to convert my GUI-Application with cx_Freeze and it created the exe-file ,but running it I got the error: no traitsui.toolkits plugin found for toolkit qt4 After some google and stackoverflow research I figured out that it might has something to do with my environment: see creating standalone exe using pyinstaller with mayavi import According to the suggestions in further google research I

Package conflict when installing cx_freeze on anaconda

别等时光非礼了梦想. 提交于 2019-12-07 08:10:50
问题 I am trying to install the cx_freeze using anaconda prompt. Following what's on their website, I used: conda install -c pyzo cx_freeze I get this error: UnsatisfiableError: The following specifications were found to be in conflict: - cx_freeze - wincertstore Use "conda info <package>" to see the dependencies for each package. Does anyone know how I have to deal with dependencies here? Thanks. 回答1: So as of now, simply using pip worked for me. I opened the conda prompt and used the following:

cx_freeze how to include 3rd party modules, ImportError: No module named progressbar

邮差的信 提交于 2019-12-07 02:34:06
问题 i came across a problem when using cx_freeze, how to "include" 3rd party modules or packages ? according to the doc , it seems easy but ... my env : win7 x64 python 2.7.5 x64 here is my setup.py #!/usr/bin/env python2 from cx_Freeze import setup, Executable includefiles = [] includes = [] excludes = [] packages = ["lxml","lxml._elementpath","lxml.etree","lxml.html",'selenium','jinja2', "progressbar"] setup( name = 'myTool', version = '0.1', description = 'Brought to you by xxx', author =

cxfreeze aiohttp cannot import compat

扶醉桌前 提交于 2019-12-07 02:26:38
问题 I'm trying to use cx_freeze to build a binary dist for an web application written in Python 3 using the aiohttp package. Basically I did: cxfreeze server.py and got a dist output But when running the ./server binary, I got the following message: File "/usr/local/lib/python3.5/dist-packages/cx_Freeze/initscripts/__startup__.py", line 12, in <module> __import__(name + "__init__") File "/usr/local/lib/python3.5/dist-packages/cx_Freeze/initscripts/Console.py", line 24, in <module> exec(code, m._

Cx_Freeze executable doesn't work with pygame

血红的双手。 提交于 2019-12-06 22:37:28
I am having trouble with creating an executable for my python program with cx_freeze.I am on windows (XP) and my program uses Tkinter, Pygame (and random) and is coded in python 3.2. I have tried creating a distils and running from command prompt: cxfreeze --target-dir dist On both I get this error: Traceback (most recent call last): File "C:\Python32\lib\site-packages\pygame\__init__.py", line 117, in <module> try: import pygame.display File "ExtensionLoader_pygame_display.py", line 12, in <module> File "ExtensionLoader_pygame_surface.py", line 12, in <module> ImportError: No module named