cx-freeze

cx_Freeze - Preventing including unneeded packages

拟墨画扇 提交于 2020-02-19 09:50:28
问题 I have coded a tiny python program using PyQt4. Now, I want to use cx_Freeze to create a standalone application. Everything works fine - cx_Freeze includes automatically all necessary modules; the resulting exe works. The only problem is that cx_Freeze packs plenty of unneeded modules into the standalone. Even though I only use QtCore and QtGui, also modules like sqlite3, QtNetwork, or QtScript are included. Surprisingly, I find also PyQt5 dlls in the resulting folder. It seems to me as if cx

Failed making a standalone python/Qt application with cx_freeze (or Py2App) on Mac

▼魔方 西西 提交于 2020-02-07 04:23:04
问题 I am having trouble making a standalone application for Mac from a python Qt-based program, both when using cx_freeze and Py2App. (note that i did it successfully on Windows with cx_freeze). Actually, the 'PyQt4' example provided with cx_freeze does not run properly on Mac . Is anyone able to "build" and run this example on a Mac?! I couldn't find any information on this seemingly basic problem on forums. Indeed, let us build first: ~$ cd cx_Freeze-4.3.3/cx_Freeze/samples/PyQt4/ PyQt4$ ls

cx_Freeze help: is there a way to NOT make console open?

拈花ヽ惹草 提交于 2020-02-01 03:31:10
问题 I am trying to convert a python game (made with pygame) into a exe file for windows, and I did using cx_Freeze. No problems there. The thing is that when I launch myGame.exe, it opens the normal Pygame window and a console window(which I do not want). Is there a way to remove the console window? I read most of the documentation, but I saw nothing really (except base, but I don't get what that is). BTW, here is my setup file: import cx_Freeze exe = [cx_Freeze.Executable("myGame.py")] cx_Freeze

cx_Freeze: ImportError: No module named 'PyQt5.Qt'

女生的网名这么多〃 提交于 2020-01-30 05:42:08
问题 I am trying to build my GUI application using cx_Freeze . The setup.py is as follows: from cx_Freeze import setup, Executable import os import sys base = None if sys.platform == 'win32': base = 'Win32GUI' exe = [Executable("main.py", base=base, icon='window_icon_XbH_icon.ico')] os.environ['TCL_LIBRARY'] = r'C:\\Users\\dm\\AppData\\Local\\Programs\\Python\\Python36\\tcl\\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\\Users\\dm\\AppData\\Local\\Programs\\Python\\Python36\\tcl\\tk8.6' options = {

Paramiko not working properly after cx_Freeze?

霸气de小男生 提交于 2020-01-23 14:13:54
问题 so I've writing this code where I connect to a computer over SSH using Paramiko, the script works normally, but when I convert it to ".exe" using cx_Freeze the program stops working at "self.ssh.load_system_host_keys", so i remove that function from the script and it kept working as usual (maybe not always needed?), but then again, when I converted the script to .exe, it was the "self.ssh.connect" function of Paramiko which now seems to be stopping the program, and by that i mean, no

Having problems with making an .exe with cx_freeze with python and pygame, including additional files

旧城冷巷雨未停 提交于 2020-01-23 03:56:06
问题 I'm having trouble creating an .exe file with cx_Freeze. I'm trying to use this Pygame game which needs some .png's, .gif's and .ogg's to run. I have tried to compile a simple Python only (no pygame or additional files) using the commmand line and a setup.py, but neither worked and I'm a bit out of my death. I have installed cx_Freeze and checked it worked with ''import cx_freeze' in the IDLE not throwing an error. I'm using Python 3.3 on Windows 7 with the correct versions of pygame and cx

Error using Requests in a frozen app

ぃ、小莉子 提交于 2020-01-17 00:27:16
问题 I am trying to use the excelent requests library in a frozen app. The code works fine when interpreted, but it stops working when I generate the dist executable. I tried this solution, but it is not working (Requests library: missing file after cx_freeze) My setup.py file: import esky.bdist_esky from esky.bdist_esky import Executable as Executable_Esky from cx_Freeze import setup, Executable from myapp import VERSION import requests.certs packages = [ 'PIL', '_winreg', 'esky', ] includes = [

How to make an .exe file from python project with qt framework(pyside2) with cx_freeze properly?

人盡茶涼 提交于 2020-01-16 11:17:09
问题 I've searched this for quite a while and I give up. I've created setup.py file with all needed options. Call "python setup.py build" and I got the .exe file which is working, but only on my computer. When I'm trying to launch that file on the other computer - it fails to start. Because in all the chains of modules in the last one ther is something like it: "F:\*myfilepath from the original system to*\lib\site-packages\shiboken2\__init__.py", line 27 in <module> ImportError: DLL load failed:%1

How to make an .exe file from python project with qt framework(pyside2) with cx_freeze properly?

最后都变了- 提交于 2020-01-16 11:16:01
问题 I've searched this for quite a while and I give up. I've created setup.py file with all needed options. Call "python setup.py build" and I got the .exe file which is working, but only on my computer. When I'm trying to launch that file on the other computer - it fails to start. Because in all the chains of modules in the last one ther is something like it: "F:\*myfilepath from the original system to*\lib\site-packages\shiboken2\__init__.py", line 27 in <module> ImportError: DLL load failed:%1

Python - cxfreeze keeps saying file/directory non-existant

喜你入骨 提交于 2020-01-16 06:12:48
问题 I've got some very basic code which works, and I want to turn it into an exe. Since I'm using Python 3 because it seems so much cleaner than other Python editions, I've not been able to use Py2Exe, so I installed cxfreeze instead. Once I run cxfreeze with the following command: cxfreeze "C:\Users\pc user\Documents\Python\First project\Main.py" It says something about the directory/file not existing. That's about as in-depth as it goes. The exact error is something like "Could not find the