Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete requirements on Mac #19

Closed
criswell opened this issue Oct 13, 2013 · 3 comments
Closed

Incomplete requirements on Mac #19

criswell opened this issue Oct 13, 2013 · 3 comments
Assignees
Milestone

Comments

@criswell
Copy link

This is actually the same error mentioned here
http://stackoverflow.com/questions/12758591/python-text-to-speech-in-macintosh

From that issue, you see the following stack trace:

File "/Users/manabchetia/Documents/Codes/Speech.py", line 2, in <module>
    engine = pyttsx.init()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx-1.0.egg/pyttsx/__init__.py", line 39, in init
    eng = Engine(driverName, debug)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx-1.0.egg/pyttsx/engine.py", line 45, in __init__
    self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx-1.0.egg/pyttsx/driver.py", line 64, in __init__
    self._module = __import__(name, globals(), locals(), [driverName])
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx-1.0.egg/pyttsx/drivers/nsss.py", line 18, in <module>
ImportError: No module named Foundation

From some digging, it seems to depending on pyobjc under Mac OS X. However, I make no guarantee that is the only missing dependency...only the one we encountered when we were trying to make it work on Mac.

@ghost ghost assigned parente Oct 14, 2013
@parente
Copy link
Collaborator

parente commented Oct 14, 2013

Will doc basic install instructions using pip on current versions of Windows, OSX, and Ubuntu.

@criswell
Copy link
Author

Honestly, I use it under Linux, and it was pretty straight forward for Arch, Debian, and Ubuntu.

However, when I was trying to help a friend get it running on OSX it was a royal pain. We eventually figured out that we needed

 --system-site-packages

with virtualenv to get access to Foundation (which is part of OSX base I guess?)

Granted, that may not have been the correct thing to do. So, I'll defer to someone who knows more about OSX than I :-)

EDIT: I should note that this is installing in a virtualenv. Since this package seems to be there by default in OSX, it may not even be a requirement if you install it all site-wide.

@parente
Copy link
Collaborator

parente commented Oct 16, 2013

Given how useful and common virtualenv is these days, I don't mind documenting installs with and without it. The doc is sorely lacking at the moment in both areas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants