cx-freeze

cx_Freeze python single file?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 05:23:16
I've been using cx_Freeze for a while now and there is one thing I've really wanted to do: put ALL files into ONE executable that I can distribute. It's not really user-friendly to send around a folder filled with 30 files, all in the same directory. How can I accomplish this? Thanks. Isn't this what bbfreeze does? Tutorial here: http://www.blog.pythonlibrary.org/2010/08/19/a-bbfreeze-tutorial-build-a-binary-series/ It's actually not that hard to roll your own with Python zipimport http://docs.python.org/library/zipimport.html You may prefer to use something like UPX which is a more general

cx_freeze fails to create exe with pandas library

耗尽温柔 提交于 2019-11-28 05:17:52
问题 Having problems creating exe using cx_freeze with a Pandas library. I have seen lots of others having issues with numPy but I was able to successfully bring in numPy. My big pain point has been Pandas. Is there anything in Pandas that might be causing to fail? Setup file from cx_Freeze import setup, Executable build_exe_options = { "includes": ['numpy', 'pandas'], "packages": [], 'excludes' : [], "include_files": []} setup( name = "appName", version = "0.1", description = "", author = "Dengar

cx-freeze fails to include modules even when included specifically

拥有回忆 提交于 2019-11-28 04:24:59
问题 I am trying to use cx-freeze to create a static self-contained distribution of my app (The Spye Python Engine, www.spye.dk), however, when I run cx-freeze, it says: Missing modules: ? _md5 imported from hashlib ? _scproxy imported from urllib ? _sha imported from hashlib ? _sha256 imported from hashlib ? _sha512 imported from hashlib ? _subprocess imported from subprocess ? configparser imported from apport.fileutils ? usercustomize imported from site This is my setup.py: #!/usr/bin/env

How do I use cx_freeze?

给你一囗甜甜゛ 提交于 2019-11-28 03:49:10
I've created my setup.py file as instructed but I don't actually.. understand what to do next. Typing "python setup.py build" into the command line just gets a syntax error. So, what do I do? setup.py: from cx_Freeze import setup, Executable setup( name = "On Dijkstra's Algorithm", version = "3.1", description = "A Dijkstra's Algorithm help tool.", exectuables = [Executable(script = "Main.py", base = "Win32GUI")]) Bryan Add import sys as the new topline You misspelled "executables" on the last line. Remove script = on last line. The code should now look like: import sys from cx_Freeze import

cx_Freeze: “No module named 'codecs'” Windows 10

我们两清 提交于 2019-11-28 01:49:01
I am currently making a game using pygame module. I have followed the following links' directions. https://pythonprogramming.net/converting-pygame-executable-cx_freeze/ I have solved some problems such as KeyError KeyError: 'TCL_Library' when I use cx_Freeze AttributeError Attribute Error while using cx_Freeze The build of setup.py has been done, but as I run the exe file of the game, it crashes with Fatal Python error: Py_Initialize: unable to load the file system codec Fatal Python error: Py_Initialize: unable to load the file system codec Traceback (most recent call last): File "C:\Users

cx_Freeze: “No module named 'codecs'”

不羁岁月 提交于 2019-11-28 01:22:05
I've been desperately trying to compile my python pygame program into standalone executables to no prevail. PyInstaller doesn't work properly with pygame, Nuitka doesn't make standalones that work and cx_Freeze is looking the best choice. However, when I compile using my setup.py , it makes a set of files but the main executable doesn't run. My setup.py is as below: import sys import cx_Freeze executables = [cx_Freeze.Executable("main.py")] images =["assets/images/1.png","assets/images/2.png","assets/images/3.png","assets/images/4.png","assets/images/5.png","assets/images/6.png","assets/images

This application failed to start because it could not find or load the Qt platform plugin “cocoa”

扶醉桌前 提交于 2019-11-27 22:55:50
问题 I think I did everything I could in the last 20 hours, but nothing seems to work. My app is running and working -- just as it should -- the only problem I have is that I cannot create a .app bundle from it. I tried both Py2App and cx_Freeze but non of them is working. Because of the multi-platform support I would stick with the latter -- if possible. The setup.py looks like this: import sys from cx_Freeze import setup, Executable base = None if sys.platform == 'win32': base = 'Win32GUI'

When using cx_Freeze and tkinter I get: “DLL load failed: The specified module could not be found.” (Python 3.5.3)

拈花ヽ惹草 提交于 2019-11-27 14:09:17
When using cx_Freeze and Tkinter, I am given the message: File "C:\Users\VergilTheHuragok\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py", line 35, in <module> import _tkinter # If this fails your Python may not be configured for Tk ImportError: DLL load failed: The specified module could not be found. Some things to note: I want to use Python 3+ (Currently using 3.5.3, 32-bit). Don't really care about a specific version, whatever works. My project has multiple files I need to compile. As far as I can tell, that leaves me with cx_Freeze or Nuitka. Nuitka had problems of its

installing cx_Freeze to python at windows

荒凉一梦 提交于 2019-11-27 10:32:51
问题 I am using python 3.4 at win-8. I want to obtain .exe program from python code. I learned that it can be done by cx_Freeze. In MS-DOS command line, I wrote pip install cx_Freeze to set up cx_Freeze. It is installed but it is not working. (When I wrote cxfreeze to command line, I get this warning:C:\Users\USER>cxfreeze 'cxfreeze' is not recognized as an internal or external command,operable program or batch file.) (I also added location of cxfreeze to "PATH" by environment variables) Any help

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

拜拜、爱过 提交于 2019-11-27 08:42:31
问题 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