-
Notifications
You must be signed in to change notification settings - Fork 134
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
ImportError: No module named Foundation #37
Comments
Try installing the Foundation module? Perhaps this is it?https://pypi.python.org/pypi/Foundations/2.1.0 -------- Original message -------- Hi Everybody, I have installed pyttsx but I can't get it to work For some reason I need the module "Fondation" which I do not have I'm using OS 1010, and when I try to execute script using pyttsx functions I get the error below I'm not sure what to do, any help would be greatly appreciated! /Users/johanbjorck/bashrc: line 1: p: command not found Traceback (most recent call last): File "/Users/johanbjorck/Google Drive/Sublime/earsight/pyttsx_testpy", line 3, in
File "/usr/local/lib/python27/site-packages/pyttsx/init__py", line 39, in init
File "/usr/local/lib/python27/site-packages/pyttsx/enginepy", line 45, in __init
File "/usr/local/lib/python27/site-packages/pyttsx/driverpy", line 64, in init
File "/usr/local/lib/python27/site-packages/pyttsx/drivers/nssspy", line 18, in
ImportError: No module named Foundation [Finished in 01s with exit code 1] [shell_cmd: python -u "/Users/johanbjorck/Google Drive/Sublime/earsight/pyttsx_testpy"] [dir: /Users/johanbjorck/Google Drive/Sublime/earsight] [path: /usr/bin:/bin:/usr/sbin:/sbin] — |
Hmm it didn't work, the link you said was for "Foundations" but I'm missing "Foundation". Any other bets? |
I don't run macosx so I'm making guesses. Have you looked at and tried this? -------- Original message -------- Hmm it didn't work, the link you said was for "Foundations" but I'm missing "Foundation". Any other bets? — |
Thanks a lot. I tried adding that to my python path, but it still didn't work. Is there any other approach, or should I simply find another program? |
@snailrowen Try taking a look here: ImportError: No module named Foundation |
@snailrowen Did you solve this?
|
I ended up having to install pyobjc from top of tree, but now I get this error:
Any ideas? |
Hmm nothing on this topic seems to work. Does anyone know what is actually coursing this? |
I am getting the following error. I am running this code on mac. |
I'm having the same error as anjandv |
I got same error too, so how.? |
I'm also getting the error. Does anyone know any known configuration of Python this library works with? |
On OS X El Capitan version 10.11.3, I encountered this issue. I used the following workaround: |
Thanks @bolin-hsu ! Worked great for me. |
@JoshCalder That solution didn't work for me. Did you install anything else? |
@JoshuaCalder i was having the foundation error too on mac. I'm using Sierra OS. I resolved the foundation error by runnning it in a virtual environment and it works without any error. But in virtual environment, i'm unable to simulate function key. Installing PyObjc creates this error. Can anyone help me ? |
@sharma16aug I am using virtualenv in macOS Sierra. I installed PyObjc but still getting the below error.
|
@rishabhbhardwaj pyobjc might have some error with it. before installing pyobjc pyttsx was running fine. but now fro my poject i left this module and switched to mac default speakers. instead of using pyttsx you can use the inbuilt module to transform text into speech. use this : from os import system these work perfectly. |
‘ImportError: No module named Foundation’ Still have the same problem. |
need help, getting this error on my mac. Traceback (most recent call last): |
@cainesap I got an error regarding NSObject.To resolve this in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages.., replace pyttsx3 with my attached file or Any resolved pyttsx3 file from git hub(I have attached a link file) |
pip install pyobjc <- solved it for me |
I just found that I am not installed pyobjc |
I already installed pyobjc. Still doesn't work for me. I've tried everything on this thread. Has anyone found a solution? |
go to the location of site-packages there you will have a folder named foundation. do - >renaming sudo mv foundation/ Foundation/ this worked for me |
Hi Everybody, I have installed pyttsx but I can't get it to work. For some reason I need the module "Fondation" which I do not have. I'm using OS 10.10, and when I try to execute script using pyttsx functions I get the error below. I'm not sure what to do, any help would be greatly appreciated!
/Users/johanbjorck/.bashrc: line 1: p: command not found
Traceback (most recent call last):
File "/Users/johanbjorck/Google Drive/Sublime/earsight/pyttsx_test.py", line 3, in
engine = pyttsx.init()
File "/usr/local/lib/python2.7/site-packages/pyttsx/init.py", line 39, in init
eng = Engine(driverName, debug)
File "/usr/local/lib/python2.7/site-packages/pyttsx/engine.py", line 45, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/usr/local/lib/python2.7/site-packages/pyttsx/driver.py", line 64, in init
self._module = import(name, globals(), locals(), [driverName])
File "/usr/local/lib/python2.7/site-packages/pyttsx/drivers/nsss.py", line 18, in
from Foundation import *
ImportError: No module named Foundation
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u "/Users/johanbjorck/Google Drive/Sublime/earsight/pyttsx_test.py"]
[dir: /Users/johanbjorck/Google Drive/Sublime/earsight]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
The text was updated successfully, but these errors were encountered: