Package: gespeaker
Version: 0.8.6-1
Tags: patch
Dear Maintainer,
Per xqqy's "gespeaker fails to start" bug report below, I'm attaching
a patch that resolves the error for me.
On Tue, 05 Jan 2021 21:27:20 +0800 xqqy <[email protected]> wrote:
> Install this package with'sudo apt install gespeaker' command and
> try to starting it... The program would not start, and raise a
> expect: "ImportError: No module named dbus"
With this patch, gespeaker prints a warning indicating that the
package was not installed as expected, but starts up nonetheless.
> loading available plugins...
> Module import error: No module named dbus
Thank you for your time,
Nick
--- gespeaker.py 2015-08-03 18:27:39.000000000 -0500
+++ gespeaker.py.new 2021-08-22 09:22:22.526681537 -0500
@@ -43,7 +43,10 @@
plugins_path = [handlepaths.getPath('plugins')]
for loader, name, isPkg in pkgutil.iter_modules(plugins_path):
file, pathname, description = imp.find_module(name, plugins_path)
+ try:
imp.load_module(name, file, pathname, description)
+ except ImportError as e:
+ print("Module import error: {0}".format(e))
main = gespeakerUI.gespeakerUI()
plugins.signal_proxy('load')