[Bug 534190] [NEW] module (config.py) in python-speechd breaks python's help system

Geir Hauge geir.hauge at gmail.com
Mon Mar 8 05:44:41 GMT 2010

Public bug reported:

Binary package hint: speech-dispatcher

Release: Ubuntu 9.10
Version: python-speechd 0.6.7+git20090914~unofficial-0ubuntu4

When searching for modules in python's help system, it stops and
requests user input when it reaches the modules provided by the python-
speechd package.

Steps to reproduce:

1. Launch a python shell
2. In the python shell, run: help()
3. At the help prompt, search for any module. e.g.: modules foo
You'll get output like the following:

help> modules foo

Here is a list of matching modules.  Enter any module name to get more

Speech Dispatcher configuration tool
Do you want to setup a completely new configuration? [yes] :

The expected behavior would be to get a list of matching modules, then
be returned to the "help> " prompt

The culprit is /usr/share/pyshared/speechd_config/config.py with the
following lines at the end of the file:

if __name__ == "__main__":

main() should only be executed if __name__ == "__main__", so removing
the else-clause should fix the problem, though I don't know if any parts
of speechd expects that module to behave that way.

** Affects: speech-dispatcher (Ubuntu)
     Importance: Undecided
         Status: New

module (config.py) in python-speechd breaks python's help system
You received this bug notification because you are a member of
Accessibility, which is subscribed to speech-dispatcher in ubuntu.

More information about the Ubuntu-accessibility-bugs mailing list