from bidi import get_display in 0.5.0
from bidi.algorithm import get_display in 0.4.2
File "/usr/local/lib/python3.8/site-packages/xhtml2pdf/util.py", line 25, in
from bidi.algorithm import get_display
ModuleNotFoundError: No module named 'bidi.algorithm'
xhtml2pdf latest (0.2.16) version also has
# Copyright 2010 Dirk Holtwick, holtwick.it
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import annotations
import contextlib
import logging
import re
from copy import copy
from typing import Any
import arabic_reshaper
import reportlab
import reportlab.pdfbase._cidfontdata
from bidi.algorithm import get_display
from bidi import get_displayin 0.5.0from bidi.algorithm import get_displayin 0.4.2File "/usr/local/lib/python3.8/site-packages/xhtml2pdf/util.py", line 25, in
from bidi.algorithm import get_display
ModuleNotFoundError: No module named 'bidi.algorithm'
xhtml2pdf latest (0.2.16) version also has