Fix Container
The :latest container image is broken and cannot start up
test-mat2-web-api-1 | [uWSGI] getting INI configuration from /etc/uwsgi/apps-enabled/mat2-web.ini
test-mat2-web-api-1 | *** Starting uWSGI 2.0.18-debian (64bit) on [Sat Jan 28 13:43:22 2023] ***
test-mat2-web-api-1 | compiled with version: 8.2.0 on 10 February 2019 02:42:46
test-mat2-web-api-1 | os: Linux-5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023
test-mat2-web-api-1 | nodename: 8271be393be6
test-mat2-web-api-1 | machine: x86_64
test-mat2-web-api-1 | clock source: unix
test-mat2-web-api-1 | pcre jit disabled
test-mat2-web-api-1 | detected number of CPU cores: 8
test-mat2-web-api-1 | current working directory: /var/www/mat2-web
test-mat2-web-api-1 | detected binary path: /usr/bin/uwsgi-core
test-mat2-web-api-1 | chdir() to /var/www/mat2-web/
test-mat2-web-api-1 | your memory page size is 4096 bytes
test-mat2-web-api-1 | *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
test-mat2-web-api-1 | detected max file descriptor number: 1048576
test-mat2-web-api-1 | lock engine: pthread robust mutexes
test-mat2-web-api-1 | thunder lock: disabled (you can enable it with --thunder-lock)
test-mat2-web-api-1 | uwsgi socket 0 bound to UNIX address /run/uwsgi/uwsgi.sock fd 3
test-mat2-web-api-1 | Python version: 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0]
test-mat2-web-api-1 | *** Python threads support is disabled. You can enable it with --enable-threads ***
test-mat2-web-api-1 | Python main interpreter initialized at 0x56372419e020
test-mat2-web-api-1 | your server socket listen backlog is limited to 100 connections
test-mat2-web-api-1 | your mercy for graceful operations on workers is 60 seconds
test-mat2-web-api-1 | mapped 145840 bytes (142 KB) for 1 cores
test-mat2-web-api-1 | *** Operational MODE: single process ***
test-mat2-web-api-1 | Traceback (most recent call last):
test-mat2-web-api-1 | File "./main.py", line 5, in <module>
test-mat2-web-api-1 | from matweb import utils, rest_api, frontend
test-mat2-web-api-1 | File "./matweb/utils.py", line 8, in <module>
test-mat2-web-api-1 | from libmat2 import parser_factory
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/__init__.py", line 7, in <module>
test-mat2-web-api-1 | from . import exiftool, video
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/exiftool.py", line 9, in <module>
test-mat2-web-api-1 | from . import abstract
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/abstract.py", line 7, in <module>
test-mat2-web-api-1 | class AbstractParser(abc.ABC):
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/abstract.py", line 36, in AbstractParser
test-mat2-web-api-1 | def get_meta(self) -> dict[str, Union[str, dict]]:
test-mat2-web-api-1 | TypeError: 'type' object is not subscriptable
test-mat2-web-api-1 | unable to load app 0 (mountpoint='') (callable not found or import error)
test-mat2-web-api-1 | Traceback (most recent call last):
test-mat2-web-api-1 | File "/var/www/mat2-web/main.py", line 5, in <module>
test-mat2-web-api-1 | from matweb import utils, rest_api, frontend
test-mat2-web-api-1 | File "./matweb/utils.py", line 8, in <module>
test-mat2-web-api-1 | from libmat2 import parser_factory
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/__init__.py", line 7, in <module>
test-mat2-web-api-1 | from . import exiftool, video
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/exiftool.py", line 9, in <module>
test-mat2-web-api-1 | from . import abstract
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/abstract.py", line 7, in <module>
test-mat2-web-api-1 | class AbstractParser(abc.ABC):
test-mat2-web-api-1 | File "/usr/local/lib/python3.7/dist-packages/libmat2/abstract.py", line 36, in AbstractParser
test-mat2-web-api-1 | def get_meta(self) -> dict[str, Union[str, dict]]:
test-mat2-web-api-1 | TypeError: 'type' object is not subscriptable
test-mat2-web-api-1 | unable to load app 0 (mountpoint='') (callable not found or import error)
test-mat2-web-api-1 | *** no app loaded. going in full dynamic mode ***
test-mat2-web-api-1 | *** uWSGI is running in multiple interpreter mode ***
test-mat2-web-api-1 | spawned uWSGI master process (pid: 11)
test-mat2-web-api-1 | spawned uWSGI worker 1 (pid: 18, cores: 1)