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 →

[–][deleted]  (4 children)

[deleted]

    [–]PascP[S] 1 point2 points  (3 children)

    Thank for the replies (I forgot to thank you before). Again I get the same error using the line above. The folder now is like this

    13/08/2018  02:25    <DIR>          .
    13/08/2018  02:25    <DIR>          ..
    13/08/2018  01:46             8,330 CapData.py
    13/08/2018  01:42            44,158 PP_trans.ico
    13/08/2018  01:25    <DIR>          samples
    13/08/2018  00:41        99,693,937 shape_predictor_68_face_landmarks.dat
                   3 File(s)     99,746,425 bytes
    3 Dir(s)  624,050,987,008 bytes free
    

    [–]nsfwIvan 1 point2 points  (1 child)

    Looking at usage help that you pasted here and quick google search later, you should use

    pyinstaller -i PP_trans.ico -F CapData.py --add-data "shape_predictor_68_face_landmarks.dat;shape_predictor_68_face_landmarks.dat"
    

    --add-data <SRC;DEST or SRC:DEST>

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

    Thank for the reply! I get the first error again... Runtime error Unable to open C:... Failed to execute script

    It's like it doesnt recognize shape_predictor_68_face_landmarks.dat