title: Python Flask Heroku Cannot import module
body: <p>I am getting the following error</p>
  
  <pre><code>"ModuleNotFoundError: No module named 'class1'"
  </code></pre>
  
  <p>Structure</p>
  
  <pre><code>- hello-world
     - src
         - __init__
         - main
         - class1
  - Procfile
  </code></pre>
  
  <p>The <code>main1</code> file looks like this:</p>
  
  <pre><code>from class1 import G
  
  APP = Flask(__name__)
  @APP.route('/', methods=['GET'])
  def index() -&gt; str:
      return 'We are alive'
  </code></pre>
  
  <p>Profile:</p>
  
  <pre><code>web: gunicorn src.main:app --log-file -
  </code></pre>
  
  <p>The heroku logs shows us the following errors:</p>
  
  <blockquote>
    <p>ModuleNotFoundError: No module named 'class1'</p>
  </blockquote>
  
  <p>I don't know what I am doing wrong. I am using <code>pipenv</code>to install dependencies and it contains <code>gunicorn</code>.</p>