Skip to content

Error while loading the doctr.io and doctr.models #1597

Closed Answered by felixdittrich92
Arya920 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • install weasyprint via conda: conda install weasyprint
    Or
  • try the following fix: Kozea/WeasyPrint#1556 (comment)
    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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Arya920
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants