title: Pyinstaller Error when converting .py to .exe
body: <p>Whenever I try to put any .py file into pyinstaller I always get an error <code>TypeError: expected str, bytes or os.PathLike object, not NoneType</code> I havent been able to find any fixes that make sense.</p>
  
  <p>Ive tried reinstalling pyinstaller and different files.</p>
  
  <p>I dont think there is any code problems since this occurs no matter what file I use</p>
  
  <p>Expected: a compiled exe file.</p>
  
  <p>Actual Result:
  <code>TypeError: expected str, bytes or os.PathLike object, not NoneType</code> 
  error and nothing is compiled</p>