#234 Bundled library exception request: allow Openteacher to bundle pyttsx
Closed: Fixed None Opened 11 years ago by echevemaster.

Hi everyone,
I've a package called Openteacher:

https://admin.fedoraproject.org/pkgdb/acls/name/openteacher

Currently this package is in Fedora in version 2.3 without issues, but upstream released the version 3.0 with a bundled lib especifficaly pyttsx, the library behavior has been modified for build the new feature Text to speech of Openteacher.

I've a talked with upstream to reach an agreement to do a planning to push them upstream/put them in a separate project but they argued that the libraries have been sufficiently modified for to be used by only the OpenTeacher project and would not be useful for other

In waiting for your comments.


Diff between standard pyttsx and OpenTeacher's fork.
openteacher-pyttsx-changes.patch

I've stared at the diff and the moduleManager code in openteacher for a quite a while now.... It really looks like the changes in the openteacher version of pyttsx are only there because openteacher is importing a bundled version. It only appears to determine where pyttsx looks for other pyttsx modules (inside of the openteacher tree instead of systemwide).

Have you tried modifying openteacher to use the system version of pyttsx and seeing if it just works?

I'll attach a potential patch to do that.

Patch to textToSpeech.py to use system pyttsx
openteacher-3.0-system-pyttsx.patch

Hi Toshio:
Thanks for the patch.

I quote the words of the developer OpenTeacher

The full thread of the conversation can be found here:

https://bugs.launchpad.net/openteacher/+bug/1074471

"We're not planning to push them upstream/put them in a separate project,
because the changes really are of no use for other projects. That's
because of the way the OpenTeacher code is structured: OT doesn't work
correctly when importing submodules in the default Python way (which
this text to speech library does if it's not adjusted). Therefore, we
did make those adjustments"

Likewise I prove the feature "Text to Speech" of OpenTeacher, with this patch and if it works, I will to closed this ticket . thanks

Hi again

I applied the patch, the feature "Text to Speech" worked. I do not know because the upstream argued that OT doesn't work correctly when importing submodules in the default Python way.
the application and the feature itself no fails.

Thanks by the help.

I'll push and build the package now.

Login to comment on this ticket.

Metadata