You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an application for face recognition that is working fine (python and QT5) in the development environment. Now I am facing a problem when I am packaging it using PyInstaller.
Following is the command I use to compile the package:
pyinstaller --onefile --windowed out_window.py
I have created a .exe file but when I run it I receive the following exception:
Traceback (most recent call last):
File "out_window.py", line 12, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "face_recognition_init.py", line 7, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "face_recognition\api.py", line 20, in
RuntimeError: Unable to open C:\Users\abc\AppData\Local\Temp_MEI147682\face_recognition_models\models\shape_predictor_68_face_landmarks.dat
Following are the required libraries for the project
Description
I have created an application for face recognition that is working fine (python and QT5) in the development environment. Now I am facing a problem when I am packaging it using PyInstaller.
Following is the command I use to compile the package:
pyinstaller --onefile --windowed out_window.py
I have created a .exe file but when I run it I receive the following exception:
Traceback (most recent call last):
File "out_window.py", line 12, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "face_recognition_init.py", line 7, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "face_recognition\api.py", line 20, in
RuntimeError: Unable to open C:\Users\abc\AppData\Local\Temp_MEI147682\face_recognition_models\models\shape_predictor_68_face_landmarks.dat
Following are the required libraries for the project
absl-py==1.0.0
altgraph==0.17.2
astunparse==1.6.3
auto-py-to-exe==2.18.0
av==9.0.1
bottle==0.12.19
bottle-websocket==0.2.9
cachetools==5.0.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.12
click==8.0.4
cmaker==0.0.6
colorama==0.4.4
comtypes==1.1.11
distlib==0.3.4
dlib==19.23.1
Eel==0.12.4
face-recognition==1.3.0
face-recognition-models==0.3.0
filelock==3.6.0
flatbuffers==2.0
future==0.18.2
gast==0.5.3
gevent==21.12.0
gevent-websocket==0.10.1
google-auth==2.6.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
greenlet==1.1.2
grpcio==1.44.0
gTTS==2.2.4
h5py==3.6.0
idna==3.3
jedi==0.17.2
keras==2.8.0
Keras-Preprocessing==1.1.2
libclang==13.0.0
Markdown==3.3.6
mypy==0.942
mypy-extensions==0.4.3
numpy==1.22.2
oauthlib==3.2.0
opencv-python==4.5.5.64
opt-einsum==3.3.0
parso==0.7.1
pefile==2021.9.3
Pillow==9.0.1
platformdirs==2.5.1
playsound==1.3.0
pluggy==1.0.0
protobuf==3.19.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pyinstaller==4.10
pyinstaller-hooks-contrib==2022.2
pypiwin32==223
PyQt5==5.15.6
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.1
pyqtdeploy==3.1.2
PySide2==5.15.2.1
PySide6==6.2.3
python-jsonrpc-server==0.4.0
python-language-server==0.36.2
pyttsx3==2.90
pywin32==303
pywin32-ctypes==0.2.0
requests==2.27.1
requests-oauthlib==1.3.1
rsa==4.8
shiboken2==5.15.2.1
shiboken6==6.2.3
six==1.16.0
tensorboard==2.8.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow-io-gcs-filesystem==0.24.0
termcolor==1.1.0
tf-estimator-nightly==2.8.0.dev2021122109
toml==0.10.2
tomli==2.0.1
typing_extensions==4.1.1
ujson==5.1.0
urllib3==1.26.8
virtualenv==20.14.0
Werkzeug==2.0.3
whichcraft==0.6.1
wrapt==1.13.3
zope.event==4.5.0
zope.interface==5.4.0
Please guide me on how to resolve this issue.
Regards
The text was updated successfully, but these errors were encountered: