Answer the question
In order to leave comments, you need to log in
Why won't heroku start locally?
os ubuntu
When deploying to the server, it gives an error ,
so I try to follow the advice described here to run heroku local
while in the console -code=H10 desc="App crashed" method=GET path="/"
ModuleNotFoundError: No module named 'gettingstarted'
0:59:20 web.1 | [2020-08-05 00:59:20 +0500] [7169] [INFO] Starting gunicorn 20.0.4
0:59:21 web.1 | [2020-08-05 00:59:20 +0500] [7169] [INFO] Listening at: http://0.0.0.0:5000 (7169)
0:59:21 web.1 | [2020-08-05 00:59:20 +0500] [7169] [INFO] Using worker: sync
0:59:21 web.1 | [2020-08-05 00:59:20 +0500] [7172] [INFO] Booting worker with pid: 7172
0:59:21 web.1 | [2020-08-05 00:59:20 +0500] [7172] [ERROR] Exception in worker process
0:59:21 web.1 | Traceback (most recent call last):
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
0:59:21 web.1 | worker.init_process()
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
0:59:21 web.1 | self.load_wsgi()
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
0:59:21 web.1 | self.wsgi = self.app.wsgi()
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
0:59:21 web.1 | self.callable = self.load()
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
0:59:21 web.1 | return self.load_wsgiapp()
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
0:59:21 web.1 | return util.import_app(self.app_uri)
0:59:21 web.1 | File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
0:59:21 web.1 | mod = importlib.import_module(module)
0:59:21 web.1 | File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
0:59:21 web.1 | return _bootstrap._gcd_import(name[level:], package, level)
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 994, in _gcd_import
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 971, in _find_and_load
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 994, in _gcd_import
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 971, in _find_and_load
0:59:21 web.1 | File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
0:59:21 web.1 | ModuleNotFoundError: No module named 'gettingstarted'
0:59:21 web.1 | [2020-08-05 00:59:21 +0500] [7172] [INFO] Worker exiting (pid: 7172)
0:59:21 web.1 | [2020-08-05 00:59:21 +0500] [7169] [INFO] Shutting down: Master
0:59:21 web.1 | [2020-08-05 00:59:21 +0500] [7169] [INFO] Reason: Worker failed to boot.
[DONE] Killing all processes with signal SIGINT
0:59:21 web.1 Exited with exit code null
Answer the question
In order to leave comments, you need to log in
In the gunicorn config, gettingstarted should be changed to the normal path to the WSGI application
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question