cx-freeze

Attribute Error while using cx_Freeze

≯℡__Kan透↙ 提交于 2019-12-11 07:07:38
问题 while creating exe of my python game . I got the following error my code in setup.py is import cx_Freeze import os os.environ['TCL_LIBRARY'] = "C:\\Users\Vinayak Singla\\Appdata\\Local\\Programs\\Python\\Python36-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\Vinayak Singla\\Appdata\\Local\\Programs\\Python\\Python36-32\\tcl\\tk8.6" executables = [cx_Freeze.Executable("pong.py")] cx_Freeze.setup( name="Pongy", options={"build_exe": {"packages":["pygame","sys","random","time"],"include

AttributeError: 'list' object has no attribute 'item' Ask

↘锁芯ラ 提交于 2019-12-11 07:07:09
问题 I am getting an unexpected error. I realize that there are posts with similar errors but either could not understand the answer or could not relate it to my case (dictionary). I am trying to calculate a similarity score for each line of an input file and at every iteration (i.e for each line of input file) store the top 20 values of the score in a dictionary. Following is my code: import sys from cx_Freeze import setup, Executable includefiles = ['Arcade Funk.mp3', 'game over.wav', 'FrogTown

cx_freeze building a project to an .exe file, getting numpy import errors

霸气de小男生 提交于 2019-12-11 07:05:56
问题 I am trying to compile my project to an .exe file. I've read around the internet that cx_freeze is a good choice for this. So I have this setup.py script: import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["functions"], "excludes": ["tkinter"]} # GUI applications require a different base on Windows (the default is for a # console application). base = None if sys.platform == "win32":

Cx_Freeze build is not including python libraries in zip file

拈花ヽ惹草 提交于 2019-12-11 06:24:14
问题 I'm in trouble with cx_Freeze 5.0 I'm working on: Windows 10 LTSB x64 Python 3.4.4 x86 PyQt5 PyWin32 x86 I never had any issue with this process until I reinstall my Windows10 installation... it was working great and now I can't figured it out why it's happening ... When I Freeze my python app (python setup.py build) script is copying the whole python libraries outside the python34.zip. The only thing I got inside python34.zip is *.pyc files (only this.. but a lot) I don't know why it doesnt

Scipy.signal crashes application made with CX_Freeze

最后都变了- 提交于 2019-12-11 06:15:00
问题 I'm trying to use butter and lfilter from scipy.signal in a compiled program. After some debugging I found that when the program reached this line: b, a = butter(order, normal_cutoff, btype='low', analog=False) The executable was closing. My program runs fine when it's in the IDE. I've put some sample code below that will re-create the problem. from scipy.signal import butter, lfilter from tkinter import * master = Tk() def test_program(): def butter_lowpass(cutoff, fs, order=5): nyq = 0.5 *

Convert Tkinter py file into EXE file

大城市里の小女人 提交于 2019-12-11 05:45:10
问题 im trying to convert my tkinter file into EXE using cx_freeze, but i got this error all the time the error translation of the hebrew part: module didnt found my setup file code is: import sys from cx_Freeze import setup, Executable import os os.environ['TCL_LIBRARY'] = "C:\\Users\\royreznik\\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\\royreznik\\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tk8.6" build_exe_options = {"includes": [

cx_Freeze: shortcutDir gives error

醉酒当歌 提交于 2019-12-11 05:38:03
问题 I'm creating a single file exe for my Python program. I'm using cx_Freeze. Everything works perfect except one little annoying thing. When I install my program everything installs as it should do, including the shortcut on my desktop. BUT...When I want to start the program with the shortcut on the desktop I get the following error: When I try to run my program from within my program folder than it works. When I manually create a shortcut to the desktop than it works aswell. Does anyone know

Creating executable with Cx_freeze : ImportError: cannot import name _ni_support (scipy)

拥有回忆 提交于 2019-12-11 05:15:36
问题 I am trying to create an executable from a python script, I have had a few issues that I have solved simply manually importing other modules/scripts, but for some reason it doesn't worth with this one. The error message: File "C:\Program Files\Miniconda2\lib\site-packages\scipy\ndimage\filters.py", line 35, in <module> from . import _ni_support ImportError: cannot import name _ni_support Did anyone have this problem before? I can't seem to find it anywhere online. (I found similar problems

How do *.so files work, and where do they go in UNIX?

老子叫甜甜 提交于 2019-12-11 05:03:53
问题 I've recently been "compiling" python scripts into binary form for the purpose of internal distribution. I'm using the utility cx_freeze which, in it's default state, creates a directory with the primary binary executable in it as well as a bunch of binary *.so files. My understanding is that .so files are libraries, and they are obviously necessary to get the executable binary to function, but my question is how can I link stuff together so they don't all have to be in the same directory? Do

cx_Freeze unable fo find mkl: MKL FATAL ERROR: Cannot load mkl_intel_thread.dll

我与影子孤独终老i 提交于 2019-12-11 04:47:43
问题 I am struggling trying to generate a python executable on Windows 10. I have already tried the solution proposed in Cannot load mkl_intel_thread.dll on python executable and many variations, but still getting the error. My setup.py : from cx_Freeze import setup, Executable additional_mods = ["numpy", "pandas", "spacy"] # Dependencies are automatically detected, but it might need # fine tuning. # buildOptions = dict(packages=[], excludes=[], includes=additional_mods) buildOptions = dict