runtime error

from .panoptic_fpn import PanopticFPN File "/home/user/.local/lib/python3.8/site-packages/detectron2/modeling/meta_arch/panoptic_fpn.py", line 14, in <module> from .rcnn import GeneralizedRCNN File "/home/user/.local/lib/python3.8/site-packages/detectron2/modeling/meta_arch/rcnn.py", line 9, in <module> from detectron2.data.detection_utils import convert_image_to_rgb File "/home/user/.local/lib/python3.8/site-packages/detectron2/data/__init__.py", line 2, in <module> from . import transforms # isort:skip File "/home/user/.local/lib/python3.8/site-packages/detectron2/data/transforms/__init__.py", line 4, in <module> from .transform import * File "/home/user/.local/lib/python3.8/site-packages/detectron2/data/transforms/transform.py", line 36, in <module> class ExtentTransform(Transform): File "/home/user/.local/lib/python3.8/site-packages/detectron2/data/transforms/transform.py", line 46, in ExtentTransform def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0): AttributeError: module 'PIL.Image' has no attribute 'LINEAR' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "app.py", line 15, in <module> from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification File "<frozen importlib._bootstrap>", line 1039, in _handle_fromlist File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1077, in __getattr__ value = getattr(module, name) File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1076, in __getattr__ module = self._get_module(self._class_to_module[name]) File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1088, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.layoutlmv2.modeling_layoutlmv2 because of the following error (look up to see its traceback): module 'PIL.Image' has no attribute 'LINEAR'

Container logs:

Fetching error logs...