Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyInstaller is not attaching Face_recognition api #1415

Open
kamillec opened this issue Apr 1, 2022 · 0 comments
Open

PyInstaller is not attaching Face_recognition api #1415

kamillec opened this issue Apr 1, 2022 · 0 comments

Comments

@kamillec
Copy link

kamillec commented Apr 1, 2022

  • face_recognition version:1.3.0
  • Python version:3.10.2
  • Operating System: windows

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant