<div dir="ltr"><div><div><div><div><div>I haven't done any Sugar Activity coding in awhile and I just found out that some of my Activities don't work on recent versions of Sugar. I'm working my way through these and fixing them, and so far it hasn't been too difficult.<br><br></div>However, while fixing up Read ETexts I discovered that text to speech is disabled. There are a few lines that try to determine if the espeak gstreamer plugin is installed, and if it is the TTS buttons are added to the toolbar, otherwise they aren't. This is that code:<br><br>supported = True<br><br>try:<br>    import gst<br>    gst.element_factory_make('espeak')<br>    from speech_gst import *<br>    _<a href="http://logger.info">logger.info</a>('use gst-plugins-espeak')<br>except Exception, e:<br>    _<a href="http://logger.info">logger.info</a>('disable gst-plugins-espeak: %s' % e)<br>    try:<br>        from speech_dispatcher import *<br>        _<a href="http://logger.info">logger.info</a>('use speech-dispatcher')<br>    except Exception, e:<br>        supported = False<br>        _<a href="http://logger.info">logger.info</a>('disable speech: %s' % e)<br><br></div>This is supposed to throw an exception if the espeak gstreamer plugin is not installed, but it is installed and I still get the exception. It looks like the gst module exists, but its trying to do something itself that causes the exception. "Could not import gobject" is the text in the exception.<br><br></div>Other Activities like Speak are using code that looks like mine, so I don't know what is happening.<br><br></div>Thoughts?<br><br></div>James Simmons<br> <br></div>