Cobra Forum

Other Discussion and Support => Assistive Technology & Accessibility => Topic started by: kalpana on Nov 09, 2023, 05:31 AM

Title: Linux OCR solution (Lios)
Post by: kalpana on Nov 09, 2023, 05:31 AM
Ubuntu 22.04.2 LTS


I install Lios with the Software Center, whisout any Problems and i try sudo apt-get install lios.
All dependencies are installed: python3, python3-imaging-sane|python3-sane, python3-speechd, tesseract-ocr, imagemagick, cuneiform, espeak,poppler-utils, python3-enchant,aspell-en, gir1.2-gst-plugins-base-1.0, gir1.2-gstreamer-1.0

When i try to start Lios i get :

$ lios

Traceback (most recent call last):
File "/usr/bin/lios", line 3, in <module>
from lios.main import *
File "/usr/local/lib/python3.10/dist-packages/lios/main.py", line 27, in <module>
from lios import scanner, editor, imageview, cam, ocr, preferences, speech
File "/usr/local/lib/python3.10/dist-packages/lios/editor.py", line 20, in <module>
from lios.ui.gtk import text_view, tree_view, widget, dialog, file_chooser, containers, window
File "/usr/local/lib/python3.10/dist-packages/lios/ui/gtk/text_view.py", line 21, in <module>
import gi
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 102
repository = Repository.get_default()
^
IndentationError: unindent does not match any outer indentation level

any idea???