Answer the question
In order to leave comments, you need to log in
How to fix error when compiling python application: "Unable to find PyQt5\Qt\translations\qtwebengine_locales"?
I am writing a small python window application using PyQt5. When compiling with pyinstaller, it gives the following:
(base) E:\vOICe\dbtest>pyinstaller --onefile db.py
117 INFO: PyInstaller: 3.6
117 INFO: Python: 3.7.4 (conda)
119 INFO: Platform: Windows-10-10.0.17763-SP0
...
10116 INFO: Processing module hooks...
10117 INFO: Loading module hook "hook-encodings.py"...
10262 INFO: Loading module hook "hook-pydoc.py"...
10264 INFO: Loading module hook "hook-PyQt5.py"...
...
17950 INFO: Loading module hook "hook-PyQt5.QtTest.py"...
18483 INFO: Loading module hook "hook-PyQt5.QtWebEngineWidgets.py"...
Unable to find "E:\anaconda\lib\site-packages\PyQt5\Qt\translations\qtwebengine_locales" when adding binary and data files.
from io import BytesIO
import sqlite3
import sys
from PyQt5.Qt import (QFont)
from PyQt5.QtWidgets import (
QApplication, QWidget, QPushButton,
QLabel, QLineEdit, QTextEdit, QGridLayout, QComboBox,
QFileDialog, QTableWidget, QTableWidgetItem, QHeaderView)
from PyQt5.QtGui import (QPixmap, QRegExpValidator)
from PyQt5.QtCore import (Qt, QRegExp)
from datetime import (datetime)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question