Closed pprw closed 1 month ago
You appear to not use the same virtual environment for hocr-tools
and python-bidi
. python-bidi
is only required for hocr-pdf
and thus needs to be installed manually. How this can be done should be documented somewhere for pipx
which I do not use, but AFAIK uses a dedicated virtual environment for each installation while being intended for CLI applications.
For python-bidi
, every version except 0.5.0 should be compatible, as only version 0.5.0 has the breaking change AFAIK and restored compatibility with 0.5.1 again.
Indeed! Thanks
$ python3 -m venv $HOME/.venvs/hocr $ source $HOME/.venvs/hocr/bin/activate $ pip install git+https://github.com/ocropus/hocr-tools.git@master --force $ pip install python-bidi
hocr-pdf --savefile output.pdf .
returns
hocr-pdf is installed from the master (with
pipx install git+https://github.com/ocropus/hocr-tools.git@master --force
)It seems python-bidi 0.4.2 and earlier used bidi.algorithm and in 0.5.0 and futher use bidi only. So I tried
In both case, I still have the `ModuleNotFoundError