Bug#1041564: lios: missing dependency 'speech-dispatcher'

2023-07-20 Thread Boruch Baum
Hi Samuel, I appreciate the quick response. Like I mentioned. I did get
lios working by installing the dependency. Fortunately, my terminal
emulator was still open and had what you asked for in its scroll-back,
so here's the python traceback:


$ lios
/usr/lib/python3/dist-packages/lios/ui/gtk/print_dialog.py:26: 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/dist-packages/lios/ui/gtk/terminal.py:24: 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:1979671): Gtk-WARNING **: 17:14:40.398: Cannot connect attribute 'text' 
for cell renderer class 'lios+ui+gtk+tree_view+CellRendererToggle' since 
attribute does not exist
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 591, in 
_connect_with_autospawn
self._server_spawn(connection_args)
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 687, in 
_server_spawn
raise SpawnError("Can't find Speech Dispatcher spawn command %s"
speechd.client.SpawnError: Can't find Speech Dispatcher spawn command 
/usr/bin/speech-dispatcher

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/lios", line 8, in 
linux_intelligent_ocr_solution()
  File "/usr/lib/python3/dist-packages/lios/main.py", line 184, in __init__
self.preferences.set_default_speech_module_and_language()
  File "/usr/lib/python3/dist-packages/lios/preferences.py", line 103, in 
set_default_speech_module_and_language
test = speech.Speech()
   ^^^
  File "/usr/lib/python3/dist-packages/lios/speech.py", line 24, in __init__
super(Speech,self).__init__(client_name)
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 578, in __init__
self._connect_with_autospawn(connection_args, autospawn)
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 594, in 
_connect_with_autospawn
raise ce
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 584, in 
_connect_with_autospawn
self._conn = _SSIP_Connection(**connection_args)
 ^^^
  File "/usr/lib/python3/dist-packages/speechd/client.py", line 190, in __init__
raise SSIPCommunicationError("Can't open socket using method "
speechd.client.SSIPCommunicationError: Can't open socket using method 
unix_socket
Original error: [Errno 2] No such file or directory
Additional error: Can't find Speech Dispatcher spawn command
/usr/bin/speech-dispatcher

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0



Bug#1041564: lios: missing dependency 'speech-dispatcher'

2023-07-20 Thread Samuel Thibault
Please always keep the bug in Cc, so that I am not the only recipient of
the mail. Writing to me only means risking falling in the middle of my
vacations and thus not getting an answer for weeks, or that I just don't
have the time to answer and thus you would at best get a terse answer,
or worse, no answer at all... Conversely, keeping the bug in Cc means
avoiding all these issues completely, you'll involve all the community
to help you, make the answers you get available to everyone, and even
archived for web crawlers to find them whenever somebody has the same
issue.

Boruch Baum, le jeu. 20 juil. 2023 18:16:23 -0400, a ecrit:
>   File "/usr/lib/python3/dist-packages/lios/preferences.py", line 103, in 
> set_default_speech_module_and_language
> test = speech.Speech()
>^^^

Ok, I see, that's on first launch.  It's indeed an upstream issue, I
have submitted a patch which we can include in Debian.

Thanks for your report,
Samuel



Bug#1041564: lios: missing dependency 'speech-dispatcher'

2023-07-20 Thread Samuel Thibault
Control: tags -1 + unreproducible

Hello,

boruch baum, le jeu. 20 juil. 2023 17:47:12 -0400, a ecrit:
> Running this program as packaged by debian fails with a python error
> pointing to a missing speech-dispatcher.

Please post the actual error you are getting, since I cannot reproduce
this error.

> Manually installing debian package 'speech-dispatcher{,-espeak}' fixes
> the issue.
> 
> My opinion is that there are two issues in this bug report. First,
> there is the issue of the missing dependency, which is definiely a
> debian issue. What might be an upstream issue is why a speech
> dispatcher is a requirement for a scanner / OCR program? At most, it
> should be a 'suggests' or 'recommends'. See that package lios
> currently has a 'depends' on package 'espeak'.

The error could tell how to fix this. Here I'm not seeing any issue.

Samuel



Bug#1041564: lios: missing dependency 'speech-dispatcher'

2023-07-20 Thread boruch baum
Package: lios
Version: 2.7.2-6
Severity: normal
X-Debbugs-Cc: boruch_b...@gmx.com

Dear Maintainer,

Running this program as packaged by debian fails with a python error
pointing to a missing speech-dispatcher. Manually installing debian
package 'speech-dispatcher{,-espeak}' fixes the issue.

My opinion is that there are two issues in this bug report. First,
there is the issue of the missing dependency, which is definiely a
debian issue. What might be an upstream issue is why a speech
dispatcher is a requirement for a scanner / OCR program? At most, it
should be a 'suggests' or 'recommends'. See that package lios
currently has a 'depends' on package 'espeak'.

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (680, 'stable-security'), (660, 'stable-updates'), (650, 
'stable'), (500, 'oldstable-security'), (450, 'testing'), (400, 'oldstable'), 
(300, 'oldoldstable'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-23-amd64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CRAP, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lios depends on:
ii  aspell-en2020.12.07-0-1
ii  espeak   1.48.15+dfsg-3
ii  gir1.2-gst-plugins-base-1.0  1.22.4-1
ii  gir1.2-gstreamer-1.0 1.22.0-2
ii  gir1.2-gtk-3.0   3.24.37-2
ii  gir1.2-vte-2.91  0.70.3-1
ii  imagemagick  8:6.9.11.60+dfsg-1.6
ii  imagemagick-6.q16 [imagemagick]  8:6.9.11.60+dfsg-1.6
ii  poppler-utils22.12.0-2+b1
ii  python3  3.11.2-1+b1
ii  python3-enchant  3.2.2-1
ii  python3-gi   3.42.2-3+b1
ii  python3-gi-cairo 3.42.2-3+b1
ii  python3-sane 2.9.1-2+b4
ii  python3-speechd  0.11.4-2
ii  tesseract-ocr5.3.0-2

Versions of packages lios recommends:
ii  gnome-icon-theme  3.12.0-5

Versions of packages lios suggests:
pn  cuneiform  

-- no debconf information