django .docutils.six модуль не найден в heroku - PullRequest
1 голос
/ 29 марта 2020

Это мой первый случай развертывания в облаке heroku, и когда я его разверну, он не просто загрузит, запустит и перекомпилирует все правильно. Если кто-то может помочь исправить это, это будет очень цениться.

Я думаю, что ошибка связана с django использует шесть, чье положение было удалено из django3, но я не знаю, как исправить это сам.

Это журнал от Heroku, содержащий сообщения об ошибках:

2020-03-29T12:01:12.508961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 35, in load_middleware
2020-03-29T12:01:12.508961+00:00 app[web.1]: middleware = import_string(middleware_path)
2020-03-29T12:01:12.508961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/utils/module_loading.py", line 17, in import_string
2020-03-29T12:01:12.508962+00:00 app[web.1]: module = import_module(module_path)
2020-03-29T12:01:12.508962+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
2020-03-29T12:01:12.508962+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-03-29T12:01:12.508963+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2020-03-29T12:01:12.508963+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2020-03-29T12:01:12.508963+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2020-03-29T12:01:12.508964+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2020-03-29T12:01:12.508964+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2020-03-29T12:01:12.508964+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-03-29T12:01:12.508964+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/whitenoise/middleware.py", line 10, in <module>
2020-03-29T12:01:12.508965+00:00 app[web.1]: from django.utils.six.moves.urllib.parse import urlparse
2020-03-29T12:01:12.508971+00:00 app[web.1]: ModuleNotFoundError: No module named 'django.utils.six'
2020-03-29T12:01:12.509454+00:00 app[web.1]: [2020-03-29 12:01:12 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-03-29T12:01:12.638899+00:00 app[web.1]: [2020-03-29 12:01:12 +0000] [12] [ERROR] Exception in worker process
2020-03-29T12:01:12.638902+00:00 app[web.1]: Traceback (most recent call last):
2020-03-29T12:01:12.638903+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-03-29T12:01:12.638904+00:00 app[web.1]: worker.init_process()
2020-03-29T12:01:12.638904+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-03-29T12:01:12.638905+00:00 app[web.1]: self.load_wsgi()
2020-03-29T12:01:12.638905+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-03-29T12:01:12.638905+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-03-29T12:01:12.638906+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-03-29T12:01:12.638906+00:00 app[web.1]: self.callable = self.load()
2020-03-29T12:01:12.638907+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-03-29T12:01:12.638907+00:00 app[web.1]: return self.load_wsgiapp()
2020-03-29T12:01:12.638907+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-03-29T12:01:12.638908+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-03-29T12:01:12.638908+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-03-29T12:01:12.638909+00:00 app[web.1]: mod = importlib.import_module(module)
2020-03-29T12:01:12.638909+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
2020-03-29T12:01:12.638910+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-03-29T12:01:12.638910+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2020-03-29T12:01:12.638910+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2020-03-29T12:01:12.638911+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2020-03-29T12:01:12.638911+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2020-03-29T12:01:12.638911+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2020-03-29T12:01:12.638912+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-03-29T12:01:12.638912+00:00 app[web.1]: File "/app/GyroScope/wsgi.py", line 16, in <module>
2020-03-29T12:01:12.638913+00:00 app[web.1]: application = get_wsgi_application()
2020-03-29T12:01:12.638913+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
2020-03-29T12:01:12.638913+00:00 app[web.1]: return WSGIHandler()
2020-03-29T12:01:12.638914+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 127, in __init__
2020-03-29T12:01:12.638914+00:00 app[web.1]: self.load_middleware()
2020-03-29T12:01:12.638915+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 35, in load_middleware
2020-03-29T12:01:12.638915+00:00 app[web.1]: middleware = import_string(middleware_path)
2020-03-29T12:01:12.638916+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/utils/module_loading.py", line 17, in import_string
2020-03-29T12:01:12.638916+00:00 app[web.1]: module = import_module(module_path)
2020-03-29T12:01:12.638916+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
2020-03-29T12:01:12.638917+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-03-29T12:01:12.638917+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2020-03-29T12:01:12.638917+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2020-03-29T12:01:12.638918+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2020-03-29T12:01:12.638918+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2020-03-29T12:01:12.638932+00:00 app[web.1]: File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2020-03-29T12:01:12.638933+00:00 app[web.1]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-03-29T12:01:12.638933+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/whitenoise/middleware.py", line 10, in <module>
2020-03-29T12:01:12.638933+00:00 app[web.1]: from django.utils.six.moves.urllib.parse import urlparse
2020-03-29T12:01:12.638934+00:00 app[web.1]: ModuleNotFoundError: No module named 'django.utils.six'
2020-03-29T12:01:12.639296+00:00 app[web.1]: [2020-03-29 12:01:12 +0000] [12] [INFO] Worker exiting (pid: 12)
2020-03-29T12:01:12.721295+00:00 app[web.1]: Traceback (most recent call last):
2020-03-29T12:01:12.721303+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 209, in run
2020-03-29T12:01:12.721738+00:00 app[web.1]: self.sleep()
2020-03-29T12:01:12.721757+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 357, in sleep
2020-03-29T12:01:12.722075+00:00 app[web.1]: ready = select.select([self.PIPE[0]], [], [], 1.0)
2020-03-29T12:01:12.722098+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-03-29T12:01:12.722355+00:00 app[web.1]: self.reap_workers()
2020-03-29T12:01:12.722382+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-03-29T12:01:12.722809+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-03-29T12:01:12.722869+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-03-29T12:01:12.722871+00:00 app[web.1]: 
2020-03-29T12:01:12.722872+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2020-03-29T12:01:12.722872+00:00 app[web.1]: 
2020-03-29T12:01:12.722897+00:00 app[web.1]: Traceback (most recent call last):
2020-03-29T12:01:12.722919+00:00 app[web.1]: File "/app/.heroku/python/bin/gunicorn", line 8, in <module>
2020-03-29T12:01:12.723078+00:00 app[web.1]: sys.exit(run())
2020-03-29T12:01:12.723101+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2020-03-29T12:01:12.723292+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2020-03-29T12:01:12.723293+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 228, in run
2020-03-29T12:01:12.723555+00:00 app[web.1]: super().run()
2020-03-29T12:01:12.723558+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
2020-03-29T12:01:12.723755+00:00 app[web.1]: Arbiter(self).run()
2020-03-29T12:01:12.723758+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 229, in run
2020-03-29T12:01:12.724066+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
2020-03-29T12:01:12.724069+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 342, in halt
2020-03-29T12:01:12.724395+00:00 app[web.1]: self.stop()
2020-03-29T12:01:12.724419+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2020-03-29T12:01:12.724760+00:00 app[web.1]: time.sleep(0.1)
2020-03-29T12:01:12.724784+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-03-29T12:01:12.725035+00:00 app[web.1]: self.reap_workers()
2020-03-29T12:01:12.725059+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-03-29T12:01:12.725456+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-03-29T12:01:12.725492+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-03-29T12:01:13.036542+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-29T12:01:13.023410+00:00 heroku[web.1]: Process exited with status 1
2020-03-29T12:01:15.000000+00:00 app[api]: Build succeeded
2020-03-29T12:02:07.850509+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gyroweb.herokuapp.com request_id=1f156b6c-85f9-4643-bb58-e65c92b51b43 fwd="45.250.244.172" dyno= connect= service= status=503 bytes= protocol=https
2020-03-29T12:02:08.891529+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gyroweb.herokuapp.com request_id=2822f4ae-f5ca-4308-a9e1-a946ea17157e fwd="45.250.244.172" dyno= connect= service= status=503 bytes= protocol=https

1 Ответ

0 голосов
/ 29 марта 2020

Попробуйте установить более старую версию Django (желательно> = Django 2.0)

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...