nbingham1 / hocr2html

Convert hocr output to html+css
3 stars 1 forks source link

usage and pyHTML error #1

Open cbertelli opened 5 years ago

cbertelli commented 5 years ago

Hello, thank you for providing this tool. Unfortunately I couldn't run it successfully. If I issue this command:

$ hocr2html.py prova1.hocr 

I get

Traceback (most recent call last):
  File "/usr/local/bin/hocr2html.py", line 4, in <module>
    from pyhtml import parse
ImportError: cannot import name parse

either with python2 and python3. What am I doing wrong?

cbertelli commented 5 years ago

I understand, pyhtml is not the standard one in pypi, but this specific version:

https://github.com/nbingham1/pyhtml/tree/581a5e5b762ce21906aaa0fc5c0f8d7c46ac9ebe

When installing the right pyhtml, it runs.