title: Problem turning python file into an app using py2app
body: <p>So I am trying to turn my code: <a href="https://github.com/TheLostProgrammer/Video_Downloader/blob/main/Video_Downloader.py" rel="nofollow noreferrer">https://github.com/TheLostProgrammer/Video_Downloader/blob/main/Video_Downloader.py</a>
  Into an .app file using py2app so I can use it on my mac...</p>
  <p>Every time I go to open the .app file it opens and then immediately closes.</p>
  <p>Here is the contents of my setup.py:</p>
  <pre><code>from setuptools import setup
  
  APP = ['Converter.py']
  DATA_FILES = []
  OPTIONS = {
   'iconfile': 'AppIcon.icns',
   'argv_emulation': True,
   'packages': ['certifi'],
  }
  
  setup(
      app = APP,
      data_files = DATA_FILES,
      options = {'py2app': OPTIONS},
      setup_requires = ['py2app'],
  )
  </code></pre>
  <p>These are the steps that I have done in my terminal to turn the .py file into .app:</p>
  <pre><code>pip3.9 install virtualenv 
  virtualenv venv --system-site-packages
  source venv/bin/activate   
  pip3.9 install py2app==0.19
  python3 setup.py py2app
  </code></pre>
  <p>After all of this, in my home folder is the dist file and within is the .app file. When I open the .app file it closes immediately.</p>
  <p>I have tried to find an answer for this happening but none of the answers I have found have worked. I have also read through the documentation for py2app but I still have no idea how to fix this. Can someone please help?</p>