chrys87 / ocrdesktop

Accessiblity tool for use the current window with OCR technique
https://wiki.archlinux.org/index.php/Ocrdesktop
15 stars 3 forks source link

can't launch the application because of Tesserwrap #6

Closed vojtapolasek closed 2 years ago

vojtapolasek commented 2 years ago

Hello, on latest ARch Linux, probably after upgrade to Python 3.10, the ap does not work. I get this:

Traceback (most recent call last): File "/usr/bin/ocrdesktop", line 23, in from tesserwrap import tesseract File "/usr/lib/python3.10/site-packages/tesserwrap/init.py", line 1, in from .core import tr File "/usr/lib/python3.10/site-packages/tesserwrap/core.py", line 74, in tr = load_library('libtesserwrap', os.path.dirname(file)) File "/usr/lib/python3.10/site-packages/tesserwrap/core.py", line 70, in load_library raise exc File "/usr/lib/python3.10/site-packages/tesserwrap/core.py", line 67, in load_library return cdll[libpath] File "/usr/lib/python3.10/ctypes/init.py", line 449, in getitem return getattr(self, name) File "/usr/lib/python3.10/ctypes/init.py", line 444, in getattr dll = self._dlltype(name) File "/usr/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: /usr/lib/python3.10/site-packages/libtesserwrap.so: cannot open shared object file: No such file or directory

However, the python-tesserwrap package is installed, I compiled it against the latest Python.

chrys87 commented 2 years ago

as we use pytesseract now, this should be fixed