#1 24.01.2019 15:12:10

HarleyDavidson
Mitglied

Problem mit AUR Paket "lios-git"

Hallo zusammen,
ich habe für die OCR Engine "Tesseract" ein GUI für das Training von Nadeldrucker-Dokumente gesucht und
das Package "lios-git" im AUR gefunden. Beim Start von der OCR-Applikation bekomme ich folgende Fehlermeldungen (das Programm ist allerdings verwendbar):

[dominik@vmarch ~]$ lios
/usr/lib/python3.7/site-packages/lios/ui/gtk/text_view.py:21: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3.7/site-packages/lios/ui/gtk/print_dialog.py:23: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
/usr/lib/python3.7/site-packages/lios/cam.py:19: PyGIWarning: GstVideo was imported without specifying a version first. Use gi.require_version('GstVideo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GdkX11, GstVideo
/usr/lib/python3.7/site-packages/lios/ui/gtk/terminal.py:21: PyGIWarning: Vte was imported without specifying a version first. Use gi.require_version('Vte', '2.91') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, Vte

(lios:3172): Gtk-WARNING **: 14:03:42.598: Cannot connect attribute 'text' for cell renderer class 'lios+ui+gtk+tree_view+CellRendererToggle' since attribute does not exist
update_scanner_list Started
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/site-packages/lios/main.py", line 660, in <lambda>
    child_conn.send(tuple(self.available_scanner_driver_list[self.preferences.scan_driver].get_available_devices()))),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/lios/main.py", line 434, in new
    if(self.textview.new()):
  File "/usr/lib/python3.7/site-packages/lios/editor.py", line 122, in new
    del self.save_file_name
AttributeError: save_file_name
ocr_selected_areas Started
deu
Tesseract Open Source OCR Engine v4.0.0 with Leptonica
(...)

Das Starten der Tesseract-Trainer Applikation führt zu einem ähnlichen Fehler und einer Exception.
Das Laden der Trainingsdaten befindet sich hier in einer Endlosschleife ...

[dominik@vmarch ~]$ train-tesseract 
/usr/lib/python3.7/site-packages/lios/ui/gtk/loop.py:21: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3.7/site-packages/lios/ui/gtk/terminal.py:21: PyGIWarning: Vte was imported without specifying a version first. Use gi.require_version('Vte', '2.91') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, Vte

(train-tesseract:3237): Gtk-WARNING **: 14:07:11.603: Cannot connect attribute 'text' for cell renderer class 'lios+ui+gtk+tree_view+CellRendererToggle' since attribute does not exist
language_combobox_changed Started
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/site-packages/lios/train_tesseract.py", line 643, in language_combobox_changed
    self.output_terminal.run_command(cmd)
  File "/usr/lib/python3.7/site-packages/lios/ui/gtk/terminal.py", line 48, in run_command
    self.feed_child(command, length)
TypeError: Vte.Terminal.feed_child() takes exactly 2 arguments (3 given)

Fehlt mir hier eventuell eine Python-Bibliothek?
Kann ich den Fehler selbst fixen?
(Ich hab schon versucht "gi.require_version('Gtk', '3.0')" an die entsprechende Stelle im Python-Skript zu
schreiben, aber das hat auch nicht den Fehler behoben...)

Offline

Schnellantwort auf dieses Thema

Schreibe deinen Beitrag und versende ihn
Deine Antwort

Fußzeile des Forums