Error while loading the doctr.io and doctr.models #1597
-
after installing the doctr using the code model = ocr_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)` but getting the following error ~ OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0' please help 🙏😭 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Arya920 👋, with the next release you will be able to skip the weasyprint installation (extra dependency)
options: |
Beta Was this translation helpful? Give feedback.
-
Thank you @felixdittrich92 It solved the issue 🙏. I am closing this discussion |
Beta Was this translation helpful? Give feedback.
Hi @Arya920 👋,
This error is raised from the
weasyprint
installation.with the next release you will be able to skip the weasyprint installation (extra dependency)
For the current pypi released version you can do the following:
conda install weasyprint
Or
Or
pip3 install "python-doctr[torch,viz]@git+https://github.com/mindee/doctr.git@main"
(this will install from the main branch)options:
python-doctr[torch,tf,viz,html,contrib] <--- html requires weasyprint