ModuleNotFoundError: No module named 'main'
at ._find_and_load_unlocked ( :984 )
at ._find_and_load ( :1007 )
at ._gcd_import ( :1030 )
at .import_module ( /layers/google.python.runtime/python/lib/python3.9/importlib/__init__.py:127 )
at .import_app ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/util.py:371 )
at .load_wsgiapp ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py:48 )
at .load ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py:58 )
at .wsgi ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/base.py:67 )
at .load_wsgi ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/workers/base.py:146 )
at .init_process ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/workers/base.py:134 )
at .init_process ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/workers/gthread.py:95 )
at .spawn_worker ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:609 )
&
gunicorn.errors.HaltServer:
at .reap_workers ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:530 )
at .handle_chld ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:242 )
at .stop ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:396 )
at .halt ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:342 )
at .run ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/arbiter.py:229 )
at .run ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/base.py:72 )
at .run ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/base.py:236 )
at .run ( /layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py:67 )
at . ( /layers/google.python.pip/pip/bin/gunicorn:8 )
это моя структура папок

< /p>
это мой app.yaml
runtime: python39
entrypoint: gunicorn -b :$PORT main:app
handlers:
- url: /.*
script: auto
Подробнее здесь: https://stackoverflow.com/questions/792 ... navailable
Мобильная версия