cx-freeze

cx_Freeze: Executable with pytesseract fails on other PC

北战南征 提交于 2019-12-08 10:35:59
问题 I've made an executable file from my Python - OCR program ( import pytesseract ) using cx_Freeze. The resulting .exe works fine on my own machine. To test the program I made a zip-folder and shared it with some friends and colleagues on a share point. Now there is the following problem with the executable. It seems like pytesseract isn't included in the executable / zip-folder. Here is the ErrorLog: The file is not a PNG-file: 20181108 Kontaktanzeigen-Er_sucht_sie.jpg The file is not a PNG

how to add license text to cx_freeze bdist_msi?

我的梦境 提交于 2019-12-08 06:49:52
问题 I have a small python application and i want to add GNU GPL license text to MSI package, which cx_Freeze produces. I use this setup scrip, with bdist_msi option: import sys from cx_Freeze import setup, Executable path = sys.path + ["app"] build_exe_options = { "path": path, "icon": "resources\icons\clock.ico"} base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "app", version = "1.1", description = "My Application", options = {"build_exe": build_exe_options}, executables =

How to remove multiple versions of Python from the Windows registry

你。 提交于 2019-12-08 04:53:01
问题 I was trying to install cx_Freeze module and it gives me the could not locate network location error along with a non existent path name(supposedly pointing to python? but it wasnt). Then I tried installing another module py2exe , this time the installer was a bit more user friendly and informed that I got two mentions of Python in my registry. One pointing to the correct Python directory, the other pointing to the same wrong one. My question is how or is it possible to delete the wrong

cx_freeze ImportError: No module named 'idna'

孤街醉人 提交于 2019-12-08 04:14:02
问题 I'm using python 3.6 Trying to make and exe from my .py file. but when I run python setup.py build it give me an error raise ImportError("No module named %r" % name) ImportError: No module named 'idna' My setup file is like this setup file 回答1: Save: # thanks to https://www.youtube.com/watch?v=GSoOwSqTSrs from cx_Freeze import setup, Executable setup( name='KutsalAklinNerde?', version='0.1', #Further information about its version description='Parse stuff', #It's description executables=

Cx_Freeze executable doesn't work with pygame

末鹿安然 提交于 2019-12-08 04:09:18
问题 I am having trouble with creating an executable for my python program with cx_freeze.I am on windows (XP) and my program uses Tkinter, Pygame (and random) and is coded in python 3.2. I have tried creating a distils and running from command prompt: cxfreeze --target-dir dist On both I get this error: Traceback (most recent call last): File "C:\Python32\lib\site-packages\pygame\__init__.py", line 117, in <module> try: import pygame.display File "ExtensionLoader_pygame_display.py", line 12, in

cx_freeze error with matplotlib data

帅比萌擦擦* 提交于 2019-12-08 03:06:11
问题 I'm trying to freeze a Python program with cx_freeze, on a Debian 8 machine, but I run into this error message: copying /usr/lib/python2.7/dist-packages/matplotlib/mpl-data -> build/exe.linux-x86_64-2.7/mpl-data error: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/matplotlib/mpl-data' My setup.py file contains: from cx_Freeze import setup, Executable buildOptions = { "excludes": ["PyQt5"]} # PyQt5 conflicts with PyQt4 base = None executables = [ Executable('test

cx_Freeze and Python 3.3

社会主义新天地 提交于 2019-12-08 03:06:07
问题 So, I have some Python 3.3 code that I need to make an .exe from on Windows. I discovered the only way to do it is using cx_Freeze. But, I haven't even got further than installation. This question describes my problem perfectly (except I run Python 3.3), and has not been answered yet: installing/using cx_freeze When I try to run "python setup.py build" from cmd I get: "importerror: no module named cx_freeze" I can't get past this step, and have searched for a solution for an hour

Packing a Scrapy application using Cx_freeze or Py2Exe

五迷三道 提交于 2019-12-08 01:06:47
问题 I'm trying to package a web scraping script (built using scrapy) to run as a standalone application for my boss to use. I built a small desktop GUI using Tkinter that calls my Scrapy spiders through an os.system call. My current build implementation (using cx_Freeze) is below. It successfully packages my program into an .exe that works properly on my machine. However, when I try to port it to another Windows machine and run it, the GUI works but the system calls do not. I figure this is

Python cx_freeze 4.3.4: Setting targetName causes errors

半世苍凉 提交于 2019-12-08 00:21:52
问题 I am very new to cx_freeze and I am trying to understand it a bit better, I have this setup.py file: import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]} setup( name = "guifoo", version = "0.1", description = "My GUI application!", options = {"build_exe": build_exe_options}, executables = [Executable("mypy.py", base="Console", targetName="hello")]) which if

cx_freeze linking to libraries in /opt/local rather than the ones it copied over

别来无恙 提交于 2019-12-07 21:20:14
问题 I installed Python 3.4 and cx_freeze 4.3.4 on Macports and Mac OS 10.10, and built a frozen executable. However, a couple of linked libraries are pointing to their paths on my Macports installation in /opt/local . From otool -L: Load command 7 cmd LC_LOAD_DYLINKER cmdsize 32 name /usr/lib/dyld (offset 12) Load command 8 cmd LC_UUID cmdsize 24 uuid 2CE48062-D852-3DD1-B4BD-F5A60227CD19 Load command 9 cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.10 sdk 10.10 Load command 10 cmd LC_SOURCE