pyinstaller

exe does not find dlls using pyinstaller with pyqt

为君一笑 提交于 2019-12-24 06:33:41
问题 When I use pyinstaller --windowed main.py on my program I get the following error when I run the resulting executable main.exe : This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix the problem. The folder structure looks like this: main ├── PyQt5 | └── Qt | └── plugins | ├── iconengines | ├── imageformats | ├── platforms | └── printsupport ├── main.exe └── ... The error disappears when I change it to:

Pyinstaller with PIL. ImportError: cannot import name _imaging

孤者浪人 提交于 2019-12-24 05:13:28
问题 I am having trouble running a compiled executable that includes pillow. I have used pyinstaller which seems to compile well enough, however after running the exe, an error is thrown. Seems there is a conflict with '_imaging' being referenced instead of 'Image'. First off, I find it strange how pillow installs to a PIL directory rather than a pillow and the modules are also referenced as PIL. I doubt that has anything to do with the problem though. There isn't actually a _imaging.py file in

PyQt5 Executable is crashing with Missing DLL

坚强是说给别人听的谎言 提交于 2019-12-24 00:54:21
问题 My issue is related to a pyqt5 executable I created with pyinstaller. The only command I'm using is: pyinstaller script.py I'm not very experienced with Pyinstaller's output messages. So I'm posting this question in case someone else can help me figure out what the missing modules or files are. Here is copy of the entire Compile output: Github - Pyinstaller Output Here is a copy of the error that appears.. it happens like in a millisecond: Any comments or help are appreciated. If you think

How to bundle cx_oracle with Pyinstaller

拟墨画扇 提交于 2019-12-24 00:46:19
问题 My goal is to use Pyinstaller to bundle an exe file from a simple python script that uses Tkinter and cx_oracle to access a database. The python code is developed on a windows machine with Anaconda, cx_oracle package and oracle client installed. Then I need to run the exe file in many target windows machines without oracle client or Python. I am using Python 2.7 and Pyinstaller 3.1 on the development machine. I searched quite a while online but only found one tutorial on this: https://mail

Pyinstaller command not found (MacOS)

二次信任 提交于 2019-12-24 00:27:05
问题 I've been trying to use PyInstaller on my program, scratch_1.py. The PyCharm project folder is called "idigen", which is saved in my desktop. So, I changed the director like so: cd /Users/joelsaarinen/Desktop/idigen then, moved on to use pyinstaller, and I get this error: pyinstaller scratch_1.py -bash: pyinstaller: command not found I'm confused because when I use: pip show pyinstaller to verify that I have pyinstaller installed, it returns a positive result. Is there an additional command I

Permission Error When Trying to Use PyInstaller

若如初见. 提交于 2019-12-24 00:24:52
问题 When trying to deploy a Kivy App using PyInstaller, I am getting Permission Denied errors even when using and Administrator CMD. The folder has all open editing options for every user. Python has firewall access. How to fix this? PS C:\Users\theguy\Documents\Python\myapp-build> python -m PyInstaller --name "MyApp" "./" 422 INFO: PyInstaller: 3.3.1 422 INFO: Python: 3.6.5 424 INFO: Platform: Windows-10-10.0.17134-SP0 425 INFO: wrote C:\Users\theguy\Documents\Python\myapp-build\myapp.spec 426

nltk-hook unable to find nltk_data

不羁岁月 提交于 2019-12-24 00:24:36
问题 When using pyinstaller to build an executable I get unable to find /home/usr/nltk_data when adding binary and data files. I've tried almost every single solution on the internet 回答1: Change hook-nltk.py file to this import os import nltk from PyInstaller.utils.hooks import collect_data_files # add datas for nltk datas = collect_data_files('nltk', False) # loop through the data directories and add them for p in nltk.data.path: if os.path.exists(p): datas.append((p, "nltk_data")) # nltk.chunk

pip install pyinstaller no module named pyinstaller

别来无恙 提交于 2019-12-23 17:27:48
问题 I wanted to install pyinstaller module with the following command: pip install pyinstaller But I always get the following error: 回答1: I tried everything, but finally i found the solution. You just have to downgrade your pip from version 19 to 18.1 : pip install pip==18.1 Then install PyInstaller : pip install pyinstaller . As you see i managed to install it : . After that you can upgrade again your pip : python -m pip install --upgrade pip 回答2: There seems to be a problem when using pip-19.0

PyQt5 GUI - exe made with PyInstaller doesn't open

霸气de小男生 提交于 2019-12-23 13:31:27
问题 I've got a GUI which runs perfectly fine when I execute it from the Anaconda Prompt. I get the following window as output: I have installed pyinstaller using pip, and have then run the line pyinstaller.exe --onefile [my file path]\mytest.py with my actual file path instead of [my file path] . This creates a file called 'mytest.exe'. However, when I double-click on it, all that happens is that a black window is shown for about 5 seconds, then I get this message for a split second: The window

Python, Pyinstaller creating shortcuts in windows

心不动则不痛 提交于 2019-12-23 12:43:42
问题 I am making a python script that creates a shortcut ( .lnk ) file, using win32com.client module, I am using pyinstaller to convert it to exe. I'm also using Tkinter , so I need --tk support in pyinstaller . Pyinstaller doesn't seem to work with --tk and import win32com.client at the same time (I have no idea why) I need this to work. Maybe there's a way to create shortcuts without win32com.client (I've searched a lot without success) or to make pyinstaller work (I foud an issue between