pyinstaller

pyinstaller executable doesn't run in Ubuntu 18.04.1

落花浮王杯 提交于 2021-02-20 02:54:46
问题 I looked through other posts and they didn't seem to address the specific issue where nothing happens when I try to execute a compiled program. Not sure if this is an Ubuntu issue or a python issue... Either way I'm very new to both so I'm sure there's some simple answer to this. I wrote a simple program print("hello") input("now") and used pyinstaller to compile it into a single file. pyninstaller --onefile test.py When I try to run the file by double clicking it in the GUInothing at all

PyInstaller .exe file not working

跟風遠走 提交于 2021-02-19 06:29:06
问题 EDIT: I found out that the error is that the resources couldn't be opened. Copying the directory into the folder where the .exe is didn't fix it. I tried removing the resources from the .spec file and the size of the .exe file is now 9 MB as opposed to 52 MB so I'm pretty sure the resources are included, but somehow they can't seem to be opened by the .exe. In case anything is wrong with it, This is my .spec file - I only modified the Tree thing to include the resources, the .exe filename and

pyinstaller and geckodriver generate issue after compile to exe

a 夏天 提交于 2021-02-19 06:24:05
问题 I hope i will get help here. I'm writing program who will read and export to txt 'devices live logging events' every two minutes. Everything works fine until i generate exe file. What is more interesting, program works on my enviroment(geckodriver and python libraries installed), but does not work on computers without python enviroment. Even if I generate exe with --onedir. Any ideas or tips? part of code is below(without tkinter): browser = webdriver.Firefox() def logs(): global writing

pyinstaller and loading pickle file

落爺英雄遲暮 提交于 2021-02-19 03:56:07
问题 Has anyone worked with pyinstaller to create windows executables from python scripts? I'm trying to create an executable that loads a pickle file but not successful. import pickle filename='test.sav' try: model = pickle.load(open(filename, 'rb')) print('model loaded') except: print('An error occurred.') When run with python 3, it works and loads the model correctly but when run with the executable created by pyinstaller , it will through an exception. Help appreciated. 回答1: Im using kivy with

PyInstaller “ValueError: too many values to unpack”

喜夏-厌秋 提交于 2021-02-18 10:28:25
问题 Pyinstaller version 3.2 OS: win10 My python script work well in Winpython Python Interpreters. But when I using Pyinstaller packages a python script include caffe module, I will face the problem: “You may load I/O plugins with the skimage.io.use_plugin” I follow the answer above to fix my spec file(hook file??). And I have been getting following error: (ValueError: too many values to unpack) Traceback (most recent call last): File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib

No module named 'win32api' // PY2EXE

给你一囗甜甜゛ 提交于 2021-02-17 05:54:25
问题 I am using Python 3.6.7 in conda 4.5.12 (Win10,64bit) and I want to compile my Python project to an .exe-File using Pyinstaller (3.5 dev). I keep getting the same error: ModuleNotFoundError: No module named 'win32api' [65600] Failed to execute script pyi_rth_win32comgenpy I already reinstalled pywin32 as recommended in 25314463, the import of win32com works. I also tried: pip install pypiwin32 as described in 21343774. The Installation was successful. But I still get the same Error. pip

pyinstaller打包python+opencv 无法在别人电脑上正常运行 问题所在:opencv_ffmpeg341_64.dll

爷,独闯天下 提交于 2021-02-13 07:56:56
用python+opencv写了个程序,在自己电脑上一切正常,但在别人电脑上就是运行不了 报错: Exception in Tkinter callback Traceback (most recent call last): File "tkinter\__init__.py", line 1699, in __call__ File "ShowTheWay.py", line 53, in main NameError: name 'img' is not defined Traceback (most recent call last): File "ShowTheWay.py", line 25, in on_mouse NameError: name 'img' is not defined 然后我又回去查代码,也没有写错啊,后来加了几个检查点,才发现是视频读取这里就已经出了问题 def re_size(): global img img = None re_set() if shipin.isOpened(): ret, frame = shipin.read() h, w, _ = frame.shape img = cv2.resize(frame, (int(w / s), int(h / s)), interpolation= cv2.INTER_AREA)

Main KV File cant be found in Pyinstaller exe

我与影子孤独终老i 提交于 2021-02-11 14:48:05
问题 I'm at my wits end here... So I have a kivy app that runs fine from the interpreter and fine when built as a directory. But it doesn't seem to matter how I build it, the resulting exe always fails to find my main.kv file. My file structure is that I basically have images and a bunch of screens. main.py main.kv resources/image 1 /image 2 /kv_files/screen1 /screen2 I have been over all the similar question on SO including this one, and this one and this one. I think I have tried all of the

Code(keylogger) converted into .exe with pyinstaller not working as it was

本秂侑毒 提交于 2021-02-11 14:45:22
问题 I was working with a keylogger code in python 3.5. It records keystrokes with pynput in a txt file and also sends the keystrokes recorded via email with smtplib. The code works correctly as it should when it is a .py file but doesn't record keystrokes in a file nor sends them through email when converted into a .exe file with pyinstaller. Please help me find out what's causing this problem and fix it. Thank you for looking into this matter. Have a good day! I used the command pyinstaller - w

Can not run .exe packed by pyinstaller

老子叫甜甜 提交于 2021-02-11 13:12:58
问题 My source code I am using pyfiglet in my project and when compiling the .exe it returns Traceback (most recent call last): File "pkg_resources\__init__.py", line 358, in get_provider KeyError: 'pyfiglet.fonts' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Dragon_Game.py", line 5, in <module> File "pyfiglet\__init__.py", line 65, in figlet_format File "pyfiglet\__init__.py", line 820, in __init__ File "pyfiglet\__init__.py", line