title: Another Flask/AWS WSGIPath Error, specifically: WSGIPath refers to a file that does not exist
body: <p>I'm trying to deploy my Flask web app using AWS EB (Amazon Web Services Elastic Beanstalk). Unfortunately, I'm running into the following error:</p>
  
  <p><code>Your WSGIPath refers to a file that does not exist.</code></p>
  
  <p>I've looked at the answers <a href="https://stackoverflow.com/questions/20558747/how-to-deploy-structured-flask-app-on-aws-elastic-beanstalk">here</a> and <a href="https://stackoverflow.com/questions/31169260/your-wsgipath-refers-to-a-file-that-does-not-exist">here</a>; following the first suggestion didn't change anything (still received the same error). For reference, this fix involved creating an <code>.ebextensions/ethanWebsite-env.config</code> file with the contents below, where <code>ethanWebsite-env</code> is the name of my environment.</p>
  
  <pre><code>option_settings:
    "aws:elasticbeanstalk:container:python":
      WSGIPath: application.py
  </code></pre>
  
  <p>The second link suggests using the EB CLI command <code>eb config</code> to modify the <code>WSGIPath</code> environment variable. I've already done this using the AWS web GUI (the Software Configuration pane of the Configuration tab for my environment); it was already set to <code>application.py</code> but I reset it to no avail. The error I get from attempting <code>eb config</code> is perhaps more illuminating.</p>
  
  <pre><code>sh: -c: line 0: unexpected EOF while looking for matching `''
  sh: -c: line 1: syntax error: unexpected end of file
  </code></pre>
  
  <p>Similarly, if I specify the environment to configure with <code>eb config ethanWebsite-env</code>, I receive the same error.</p>
  
  <p>Here is the structure of my app.</p>
  
  <pre><code>ethan_website/
      application.py
      connect4.py
      isPrime.py
      requirements.txt
      .ebextensions/
          ethanWebsite-env.config
      .elasticbeanstalk/
          config.yml
      static/
          (various .css and .js files)
      templates/
          (various .html files)
  </code></pre>
  
  <p>I omitted a <code>flask/</code> folder at the main project level, with lots of subfolders, which appears to configure the python environment and does not seem relevant.</p>
  
  <p>If anyone has any insight into what could be the issue, please let me know. My error with eb config suggests to me that there is an issue with a config file, but I'm not sure where to start/look beyond the one I've already added. Thanks!</p>