AppImportError("Application object must be callable.")

Oct 26 08:12:18 AM  ==> Running 'gunicorn app:app'
Oct 26 08:12:27 AM  Traceback (most recent call last):
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/bin/gunicorn", line 8, in <module>
Oct 26 08:12:27 AM      sys.exit(run())
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
Oct 26 08:12:27 AM      WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/base.py", line 236, in run
Oct 26 08:12:27 AM      super().run()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/base.py", line 72, in run
Oct 26 08:12:27 AM      Arbiter(self).run()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 58, in __init__
Oct 26 08:12:27 AM      self.setup(app)
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 118, in setup
Oct 26 08:12:27 AM      self.app.wsgi()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
Oct 26 08:12:27 AM      self.callable = self.load()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
Oct 26 08:12:27 AM      return self.load_wsgiapp()
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
Oct 26 08:12:27 AM      return util.import_app(self.app_uri)
Oct 26 08:12:27 AM    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/gunicorn/util.py", line 442, in import_app
Oct 26 08:12:27 AM      raise AppImportError("Application object must be callable.")
Oct 26 08:12:27 AM  gunicorn.errors.AppImportError: Application object must be callable.

Hi,

I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). Then, you can update this post when we get to the solution.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.