title: Windows- Pyinstaller Error "failed to execute script " When App Clicked
body: <p>I am having a tough time overcoming this error, I have searched everywhere for that error message and nothing seems relevant to my situation:</p>
  
  <pre><code>"failed to execute script new-app" 
  </code></pre>
  
  <p><strong>new-app</strong> is my python GUI program. When I run pyinstaller using this command:</p>
  
  <pre><code>pyinstaller.exe --onedir --hidden-import FileDialog --windowed --noupx new-app.py
  </code></pre>
  
  <p>It does work smoothly. In addition, when I execute the command line to run the gui program, it works perfectly and the GUI is generated using this command:</p>
  
  <pre><code>.\dist\new-app\new-app.exe
  </code></pre>
  
  <p>But when I go to that file hopefully to be able to click the app to get the GUI, it gives me the error said above. Why is that?</p>
  
  <p>I am using python2.7 and the OS is Windows 7 Enterprise.</p>
  
  <p>Any inputs will be appreciated and thanks a lot in advance.</p>