I have an python2 code and i used face_recognition library into this python code. my python code working successfully. I can compile this code with pyinstaller without any problem :

pyinstaller code.py --onefile

but when I running this compiled file i have an error:

[email protected]:~/Desktop# ./code Traceback (most recent call last):
File "code.py", line 10, in import face_recognition File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.dict) File "face_recognition/init.py", line 7, in File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.dict) File "face_recognition/api.py", line 17, in RuntimeError: Unable to open /tmp/_MEInI0MHf/face_recognition_models/models/shape_predictor_68_face_landmarks.dat [6836] Failed to execute script code

0 Answers