title: error in including "shape_predictor_68_face_landmarks.dat" during conversion using pyinstaller in macos
body: <p>I have a code using dlib module in python, two lines in the code are</p>
  
  <pre><code>predictor_path = "./shape_predictor_68_face_landmarks.dat"
  predictor = dlib.shape_predictor(predictor_path)
  </code></pre>
  
  <p>the whole code runs fine in python interpreter.
  When I try to convert it to executable using pyinstaller, I put the "shape_predictor_68_face_landmarks.dat" file name in the data field of .spec file
  i.e.</p>
  
  <pre><code>a = Analysis(...
               binaries=[],
               datas=[("./shape_predictor_68_face_landmarks.dat", ".")]
               ...)
  </code></pre>
  
  <p>The process completes without any error. The .dat file also gets included in the folder. But when I run the executable file it shows error </p>
  
  <pre><code>RuntimeError: Unable to open ./shape_predictor_68_face_landmarks.dat
  [928] Failed to execute script new_run
  ...
  </code></pre>
  
  <p>If I put that .dat file in the binaries field in .spec file it shows error during conversion -</p>
  
  <pre><code>ValueError: Unknown Mach-O header: 0x01018188 in &lt;_io.BufferedReader 
  name='/Users/mac/Library/Application 
  Support/pyinstaller/bincache00_py37_64bit/shape_predictor_68_face_landmarks.dat'&gt;
  </code></pre>
  
  <p>I am using macOS, and python 3.6 the whole code runs fine in the python interpreter but this problem arising during the conversion.
  How to solve this problem?</p>