For me I have downloaded fribidi.dll and put it in the same python code dir, then in the code before using PIL Image I added it to path.
import os import sys os.environ['FRIBIDI_PATH'] = str(Path(sys.executable).parent / "fribidi.dll")