cx-freeze

import _tkinter # If this fails your Python may not be configured for Tk

橙三吉。 提交于 2019-11-27 08:29:40
Some initial information: I have windows 10 on my computer and all programs are 64-bit versions. I'm writting a game in python (3.6.1) using tkinter and now I would like to convert it to .exe. I have used cx_freeze (5.0.1) and it made the build, but when I try to open the game a window opens and then closes immediately. Therefore I tried to open it via cmd and the following error pops up: File "sliks.py", line 1, in <module> File "C:\Users\Tinka\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 36, in <module> import _tkinter # If this fails your Python may not be

Use cx-freeze to create an msi that adds a shortcut to the desktop

假装没事ソ 提交于 2019-11-27 08:25:52
I am using cx-freeze to create an MSI installer for a Python application. How can I install a link to the application from the desktop? joshuanapoli To create a shortcut to the application, give the shortCutName and shortcutDir options to the Executable. The shortcutDir can name any of the System Folder Properties (thanks Aaron). For example: from cx_Freeze import * setup( executables = [ Executable( "MyApp.py", shortcutName="DTI Playlist", shortcutDir="DesktopFolder", ) ] ) You can also add items to the MSI Shortcut table. This lets you create multiple shortcuts and set the working directory

creating .exe file with cx_freeze for a tkinter interface

会有一股神秘感。 提交于 2019-11-27 08:08:43
问题 I have searched for this answer all around the place, but i can't find an answer. I have a python script (3.3) that has an interface with tkinter. I used cx_freeze to create an executable out of it, got a build folder with some files and folders in it. I double clicked on the .exe file and nothing happened. I'm using the following setup: import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "simple_Tkinter", version = "0.1",

Scipy and CX_freeze - Error importing scipy: you cannot import scipy while being in scipy source directory

孤街浪徒 提交于 2019-11-27 07:46:28
问题 I'm having trouble compiling an exe while using cx_freeze and scipy. In particular, my script uses from scipy.interpolate import griddata The build process seems to complete successfully, however when I try to run the compiled exe, I get the following message. Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "gis_helper.py", line 13, in <module> File "C:\Python27\lib\site-packages\scipy\_

ImportError: No module named 'queue' while running my app freezed with cx_freeze

限于喜欢 提交于 2019-11-27 06:55:48
问题 I am using python 3.4. I am able to run my python script without any problem. But While running my freezed python script , following error have appeared. I am able to freeze my script successfully too with cx_freeze. C:\Program Files (x86)\utils>utils.exe Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\packages\__init__.py", line 27, i n <module> from . import urllib3 File "C:\Python34\lib\site-packages\requests\packages\urllib3\__init__.py", line 8, in <module

Images not showing when running a frozen pyqt app on another computer

冷暖自知 提交于 2019-11-27 06:22:12
问题 I have a PyQt4 program that I froze using cx_freeze. The problem I am having is when I make a QGraphicsPixmapItem, which it is getting its' pixmap made from a SVG file, the Item gets made no problem, but the Pixmap doesn't load so there is no image just the item in the scene. The thing that confuses me is that this only happens when I am running it on a different computer than the one that built the exe. When I run the exe on the computer that built it the program works perfectly. Even when I

cx-freeze doesn't find all dependencies

谁说胖子不能爱 提交于 2019-11-27 05:48:25
问题 I have a python script (2.7) with some "interesting" imports at the top. I initially wanted to use py2exe to compile this into an exe that I can more easily distribute (py2exe doesn't find all dependencies). I have given up and am trying to use cx-freeze instead. But, I am having problem there as well. The problems seem to be libraries I have added to Python (jinja2 and restkit). I see them in my python directory ./Lib/site-packages/Jinja2-2.6-py2.7.egg/jinja2 and here ./Lib/site-packages

cx_Freeze python single file?

不问归期 提交于 2019-11-27 05:34:45
问题 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. 回答1: 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:

What could be the reason for fatal python error:initfsencoding:unable to load the file system codec?

六眼飞鱼酱① 提交于 2019-11-27 04:56:36
I am using Python 3.7 (64-bit) and installed cx_Freeze for converting .py into .exe. I used this command prompt to convert Python script into an executable: python [filename] build It successfully build the executable. But when I executed my EXE file, I just get output: fatal python error:initfsencoding:unable to load the file system codec ImportError: invalid flags 1530052318 in 'encoding' Current thread 0X000013f8 : How to solve it and successfully make an executable file using cx_Freeze ? Edsource Fixed in 4c18633 . The problem is that for version x64 for Python 3.7 it is not working due to

How can I include a folder with cx_freeze?

一世执手 提交于 2019-11-27 03:49:13
问题 I am using cx_freeze to deploy my application. I would like to include a entire directory since including individual files doesn't put them in a folder. How can I include a folder? 回答1: You have to set up an include files argument for the building options. You can do this in different ways, but I will show a part of my configuration. The thing I describe here is for one specific file and one specific destination. I think you can also set a path like this, but I don't have tested this yet.