title: OR-Tools CP-Sat with Pyinstaller
body: <p>Model works pretty fine on my pc using VS Code. Once I create an exe with pyinstaller and try to run the .exe nothing works. A small window appears for 1 sec and nothing else. I also tried some tk msg box and nothing happens.</p>
  <p>Here are the imports of my main :</p>
  <pre><code>import csv
  import os 
  import openpyxl
  import sft_gen
  from ortools.sat.python import cp_model
  </code></pre>
  <p>The imports of my 2nd file (sft_gen):</p>
  <pre><code>import csv
  from tkinter import Tk
  from tkinter.filedialog import askopenfilename
  </code></pre>
  <p>When I run the .exe in the cmd prompt I get :
  <a href="https://i.stack.imgur.com/iUDjl.png" rel="nofollow noreferrer">Error msg in prompt</a></p>
  <p>Edit.1. : After testing, found out that :</p>
  <pre><code>from ortools.sat.python import cp_model
  </code></pre>
  <p>is the reason why the .exe fails to execute.</p>
  <p>What could be the solution to this? I really want to deploy my CP model to other users... In the meantime I'll try other .exe apps like py2exe and mention here if I have any success with it.</p>