cx-freeze

Cx_Freeze 5.0.1 + Python3.4 virtualenv error

柔情痞子 提交于 2019-12-23 12:39:15
问题 I have been trying to figure out what the following error means but unfortunately I am not being able to handle it. The complete traceback resulting from the execution of the generated executable is: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible File "

cx_freeze and importing modules

独自空忆成欢 提交于 2019-12-23 10:16:35
问题 I want to compile a Python 3.3 module with submodules using cx_freeze. So, my dir strucuture is: projectname/ __init__.py submodule1/ __init__.py bootstrap.py script1.py submodule11/ script2.py submodule2/ ... In the __init__.py I import from submodule1 import bootstrap and from the bootstrap import submodule1.submodule11.script2 If I run the init file, anything is good and the script with the submodule imports is executed correctly. When I compile it, I use this setup.py: from cx_Freeze

Importing GDAL with cx_Freeze, Python3.4

六月ゝ 毕业季﹏ 提交于 2019-12-23 05:41:58
问题 I'm trying to create an executable for some code in Python3.4, for distribution to Windows. This program requires GDAL for some mapping functions, but it comes up in the Missing Modules during the cx_Freeze build: Missing modules: ? _gdal imported from osgeo, osgeo.gdal ? _gdal_array imported from osgeo.gdal_array ? _gdalconst imported from osgeo.gdalconst ? _ogr imported from osgeo.ogr ? _osr imported from osgeo.osr The cx_Freeze .exe still builds, but when I try to run it, I naturally get:

Problems with Cx_freeze

孤街浪徒 提交于 2019-12-23 04:38:19
问题 If I'm actually asking you for help, it's because I spend many hours for nothing into trying to fix my problem: I would like to compile my python script into .exe: (I am using Python 32 bits 3.1.4 and pygame) I have 4 files: Class .pyc, _Class_game.pyc, _ressources.pyc et main.py and a folder @ressources with all images and songs This is my scritp setup.py: import cx_Freeze executables = [cx_Freeze.Executable("main.py"), base = "Win32GUI"] cx_Freeze.setup( name="Strike The square", version =

PySide “hello world”: py2exe/pyinstaller/cx_freeze and access violation

允我心安 提交于 2019-12-23 03:53:07
问题 I am trying to build a very basic executable (Windows) using PySide. The following script runs properly in the interpreter (Python 2.7, PySide 1.1.2) #!/usr/bin/python import sys sys.stdout = open("my_stdout.log", "w") sys.stderr = open("my_stderr.log", "w") import PySide.QtGui from PySide.QtGui import QApplication from PySide.QtGui import QMessageBox # Create the application object app = QApplication(sys.argv) # Create a simple dialog box msgBox = QMessageBox() msgBox.setText("Hello World -

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

大兔子大兔子 提交于 2019-12-23 02:51:14
问题 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

python program works but .exe does not open cx_Freeze

人盡茶涼 提交于 2019-12-23 02:16:15
问题 So my program works fine in PyCharm but for some reason when I create a .exe using cx_freeze it won't open. Everything goes fine with the build and my .exe is created but when I try to open it, nothing happens. This is my first time creating a .exe and I have tried it with another (more simple) script and it still does not open! See my below setup.py: import cx_Freeze import sys base = None if sys.platform=='win32': base="Win32GUI" executables=[cx_Freeze.Executable("MyDog.py",base=base)] cx

How to create .EXE file in python using cx_freeze

。_饼干妹妹 提交于 2019-12-22 08:27:07
问题 I have one application developed in python 3.2, which has inbuilt modules(ex: Tkinter, matplotlib, openpyxl), user defined modules & classes(ex: draw_graph, generate_report), icon files, log file, .csv, .docx etc. I am running this application from script(ex: testapplication.py) I have setup file as import sys from cx_Freeze import setup, Executable exe = Executable( script=r"C:\Python32\testapplication.py", base="Win32GUI", ) setup( name = "TESTApp", version = "0.1", description = "An

Converting tkinter to exe

 ̄綄美尐妖づ 提交于 2019-12-22 08:23:23
问题 Currently I'm trying to convert my tkinter python script to a exe file. I'm using cx_freeze to do this. When i try to add an aditional file, it somehow is not working anymore. In the minimum example I'm using below you can see the method I've used. import tkinter as tk import numpy.core._methods, numpy.lib.format class Main(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.geometry("700x400") self.wm_iconbitmap('test.ico') container = tk.Frame(self)

Python 3.4 multiprocessing does not work with py2exe

╄→гoц情女王★ 提交于 2019-12-22 08:11:24
问题 This is pretty much the same as this question, but the given solution there (calling freeze_support()) does not work for me. I have the following script called start.py that I use to build a standalone executable with py2exe (version 0.9.2.2). I also have python.exe in the same directory. import multiprocessing def main(): print('Parent') p = multiprocessing.Process(target=new_process) multiprocessing.set_executable('python.exe') p.start() p.join() def new_process(): print('Child') if __name_