Bug 725521

Summary: Sugar-speak 'Ask any Question' mode broken
Product: [Fedora] Fedora Reporter: Samuel Greenfeld <samuel>
Component: sugar-speakAssignee: Steven M. Parrish <smparrish>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 18:37:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Samuel Greenfeld 2011-07-25 18:40:56 UTC
Description of problem:
Sugar-speak's 'Ask any Question' mode does not work in Fedora 15.  This may be due to a missing dependency or files.

Version-Release number of selected component (if applicable): 
sugar-speak-28-1 and 29-1 were looked at.

How reproducible: Always

Steps to Reproduce:
1. Install Sugar-Speak
2. Switch to the "Ask any question mode".  Note no introduction prompt is heard.
3. Attempt to ask a question in the main typing area.
  
Actual results:
You will be told that the system is unable to understand your question.  There is also an exception starting up the engine:
/usr/share/sugar/activities/Speak.activity/activity.py:232: PangoWarning: pango_layout_get_cursor_pos: assertion `index >= 0 && index <= layout->leng
th' failed
  pos = layout.get_cursor_pos(index)
Best voice for LANG en_US.utf8 seems to be en-us English (USA)
Loading brain from bot/sara.brn... Error restoring PatternMgr from file bot/sara.brn:
Traceback (most recent call last):
  File "/usr/share/sugar/activities/Speak.activity/brain.py", line 109, in load_brain
    kernel.loadBrain(brain['brain'])
  File "/usr/share/sugar/activities/Speak.activity/aiml/Kernel.py", line 157, in loadBrain
    self._brain.restore(filename)
  File "/usr/share/sugar/activities/Speak.activity/aiml/PatternMgr.py", line 69, in restore
    raise Exception, e
IOError: [Errno 2] No such file or directory: 'bot/sara.brn'
Loading brain from bot/alice.brn... Error restoring PatternMgr from file bot/alice.brn:
Traceback (most recent call last):
  File "/usr/share/sugar/activities/Speak.activity/brain.py", line 109, in load_brain
    kernel.loadBrain(brain['brain'])
  File "/usr/share/sugar/activities/Speak.activity/aiml/Kernel.py", line 157, in loadBrain
    self._brain.restore(filename)
  File "/usr/share/sugar/activities/Speak.activity/aiml/PatternMgr.py", line 69, in restore
    raise Exception, e
IOError: [Errno 2] No such file or directory: 'bot/alice.brn'


Expected results:
The "Ask any question" (alice-style bot) mode should work.

Comment 1 Samuel Greenfeld 2011-07-25 19:00:56 UTC
The %prep section of sugar-speak.spec for the RPM has the following:

%prep
%setup -q -n Speak.activity
rm -rf .0sugar bot


Are we intentionally removing this support, although in an awkward manner?

Comment 2 Fedora End Of Life 2012-08-07 18:37:53 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping