Belval / TextRecognitionDataGenerator

A synthetic data generator for text recognition
MIT License
3.24k stars 966 forks source link

ModuleNotFoundError: Arabic Reshaper #318

Open pourmand1376 opened 1 year ago

pourmand1376 commented 1 year ago

Currently, I am using docker image for trdg and it seems that arabic reshaper is not installed in the latest version.

Input:

docker run -v .:/app/out/ -v /home/amir/Downloads/B_NAZANIN/:/app/fonts -t belval/trdg:latest trdg --language ar --font_dir /app/fonts/ -c 30

Output:

Missing modules for handwritten text generation.
Traceback (most recent call last):
  File "/env/bin/trdg", line 33, in <module>
    sys.exit(load_entry_point('trdg==1.7.0', 'console_scripts', 'trdg')())
  File "/env/lib/python3.6/site-packages/trdg-1.7.0-py3.6.egg/trdg/run.py", line 409, in main
    from arabic_reshaper import ArabicReshaper
ModuleNotFoundError: No module named 'arabic_reshaper'

As it seems like from the dockerfile and requirements.txt file. It should have no problem. I think if you just rebuild the image, it should be fine.