Я хочу установить приложение из этого репо , но я не могу обойтись в docker. Это журнал с консоли:
:/var/www/html# docker-compose up app
Starting html_app_1 ... done
Attaching to html_app_1
app_1 | [2020-04-09 16:57:43 +0000] [1] [INFO] Starting gunicorn 20.0.4
app_1 | [2020-04-09 16:57:43 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1)
app_1 | [2020-04-09 16:57:43 +0000] [1] [INFO] Using worker: sync
app_1 | [2020-04-09 16:57:43 +0000] [7] [INFO] Booting worker with pid: 7
app_1 | [2020-04-09 16:57:43 +0000] [8] [INFO] Booting worker with pid: 8
app_1 | unable to import 'smart_open.gcs', disabling that module
app_1 | unable to import 'smart_open.gcs', disabling that module
app_1 | [2020-04-09 16:57:45 +0000] [7] [ERROR] Exception in worker process
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
app_1 | worker.init_process()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 119, in init_process
app_1 | self.load_wsgi()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
app_1 | self.wsgi = self.app.wsgi()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
app_1 | self.callable = self.load()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
app_1 | return self.load_wsgiapp()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
app_1 | return util.import_app(self.app_uri)
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/util.py", line 358, in import_app
app_1 | mod = importlib.import_module(module)
app_1 | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
app_1 | return _bootstrap._gcd_import(name[level:], package, level)
app_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
app_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
app_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
app_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
app_1 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
app_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
app_1 | File "/app/app/app.py", line 4, in <module>
app_1 | from .validate import validate_text
app_1 | File "/app/app/validate.py", line 62, in <module>
app_1 | model = build_model(load_articles())
app_1 | File "/app/app/validate.py", line 52, in build_model
app_1 | index = similarities.MatrixSimilarity(lsi[corpus])
app_1 | File "/usr/local/lib/python3.8/site-packages/gensim/models/lsimodel.py", line 568, in __getitem__
app_1 | assert self.projection.u is not None, "decomposition not initialized yet"
app_1 | AssertionError: decomposition not initialized yet
app_1 | [2020-04-09 16:57:45 +0000] [8] [ERROR] Exception in worker process
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
app_1 | worker.init_process()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 119, in init_process
app_1 | self.load_wsgi()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
app_1 | self.wsgi = self.app.wsgi()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
app_1 | self.callable = self.load()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
app_1 | return self.load_wsgiapp()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
app_1 | return util.import_app(self.app_uri)
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/util.py", line 358, in import_app
app_1 | mod = importlib.import_module(module)
app_1 | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
app_1 | return _bootstrap._gcd_import(name[level:], package, level)
app_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
app_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
app_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
app_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
app_1 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
app_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
app_1 | File "/app/app/app.py", line 4, in <module>
app_1 | from .validate import validate_text
app_1 | File "/app/app/validate.py", line 62, in <module>
app_1 | model = build_model(load_articles())
app_1 | File "/app/app/validate.py", line 52, in build_model
app_1 | index = similarities.MatrixSimilarity(lsi[corpus])
app_1 | File "/usr/local/lib/python3.8/site-packages/gensim/models/lsimodel.py", line 568, in __getitem__
app_1 | assert self.projection.u is not None, "decomposition not initialized yet"
app_1 | AssertionError: decomposition not initialized yet
app_1 | [2020-04-09 16:57:45 +0000] [7] [INFO] Worker exiting (pid: 7)
app_1 | [2020-04-09 16:57:45 +0000] [8] [INFO] Worker exiting (pid: 8)
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 209, in run
app_1 | self.sleep()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 357, in sleep
app_1 | ready = select.select([self.PIPE[0]], [], [], 1.0)
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
app_1 | self.reap_workers()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
app_1 | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
app_1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/bin/gunicorn", line 8, in <module>
app_1 | sys.exit(run())
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
app_1 | WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 228, in run
app_1 | super().run()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 72, in run
app_1 | Arbiter(self).run()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 229, in run
app_1 | self.halt(reason=inst.reason, exit_status=inst.exit_status)
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 342, in halt
app_1 | self.stop()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 393, in stop
app_1 | time.sleep(0.1)
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
app_1 | self.reap_workers()
app_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
app_1 | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
app_1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Я использую последнюю версию docker, последнюю версию docker - composer, python 3 в файле docker. Если вам нужна дополнительная информация о коде, вы можете клонировать его из здесь , и вам потребуется только бэкэнд-сервер.