module (config.py) in python-speechd breaks python's help system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
speech-dispatcher (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: speech-dispatcher
Release: Ubuntu 9.10
Version: python-speechd 0.6.7+git200909
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 help.
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/
if __name__ == "__main__":
sys.
else:
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.
Related branches
tags: | added: patch |
Changed in speech-dispatcher (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in speech-dispatcher (Ubuntu): | |
status: | Triaged → Fix Released |
On lucid the python shell crashes with ...
[ 755.703883] python[4762]: segfault at bf2dcf48 ip 00dd7caa sp bf2dcf4c error 6 in libc-2. 11.1.so[ d9b000+ 14d000]
[ 755.703978] Process 4762(python) has RLIMIT_CORE set to 0
[ 755.703980] Aborting core