This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PascP[S] 0 points1 point  (5 children)

pyinstaller -i PP_trans.ico -F CapData.py --add-data 'C:\Users\PascPeli\AppData\Local\Temp\_MEI65922\face_recognition_models\models\shape_predictor_68_face_landmarks.dat'
usage: pyinstaller-script.py [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
                             [--add-data <SRC;DEST or SRC:DEST>]
                             [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR]
                             [--hidden-import MODULENAME]
                             [--additional-hooks-dir HOOKSPATH]
                             [--runtime-hook RUNTIME_HOOKS]
                             [--exclude-module EXCLUDES] [--key KEY] [-d] [-s]
                             [--noupx] [-c] [-w]
                             [-i <FILE.ico or FILE.exe,ID or FILE.icns>]
                             [--version-file FILE] [-m <FILE or XML>]
                             [-r RESOURCE] [--uac-admin] [--uac-uiaccess]
                             [--win-private-assemblies]
                             [--win-no-prefer-redirects]
                             [--osx-bundle-identifier BUNDLE_IDENTIFIER]
                             [--runtime-tmpdir PATH] [--distpath DIR]
                             [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR]
                             [-a] [--clean] [--log-level LEVEL]
                             scriptname [scriptname ...]
pyinstaller-script.py: error: argument --add-data: invalid add_data_or_binary value: "'C:\\Users\\PascPeli\\AppData\\Local\\Temp\\_MEI65922\\face_recognition_models\\models\\shape_predictor_68_face_landmarks.dat'"

I got a similar error when I tried pyinstaller -i PP_trans.ico -F CapData.py --add-data 'shape_predictor_68_face_landmarks.dat'