nateshmbhat / pyttsx3

Offline Text To Speech synthesis for python
Mozilla Public License 2.0
2.01k stars 322 forks source link

Error occurs installing PYTTSX3 #101

Closed hacker2909 closed 4 years ago

hacker2909 commented 4 years ago
ERROR: Command errored out with exit status 1:
 command: 'c:\users\adish\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\adish\\AppData\\Local\\Temp\\pip-install-t2laoanb\\pyobjc-framework-InputMethodKit\\setup.py'"'"'; __file__='"'"'C:\\Users\\adish\\AppData\\Local\\Temp\\pip-install-t2laoanb\\pyobjc-framework-InputMethodKit\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\adish\AppData\Local\Temp\pip-install-t2laoanb\pyobjc-framework-InputMethodKit\pip-egg-info'
     cwd: C:\Users\adish\AppData\Local\Temp\pip-install-t2laoanb\pyobjc-framework-InputMethodKit\
Complete output (15 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\adish\AppData\Local\Temp\pip-install-t2laoanb\pyobjc-framework-InputMethodKit\setup.py", line 21, in <module>
    Extension(
  File "C:\Users\adish\AppData\Local\Temp\pip-install-t2laoanb\pyobjc-framework-InputMethodKit\pyobjc_setup.py", line 408, in Extension
    os_level = get_os_level()
  File "C:\Users\adish\AppData\Local\Temp\pip-install-t2laoanb\pyobjc-framework-InputMethodKit\pyobjc_setup.py", line 218, in get_os_level
    pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
  File "c:\users\adish\appdata\local\programs\python\python38\lib\plistlib.py", line 99, in readPlist
    with _maybe_open(pathOrFile, 'rb') as fp:
  File "c:\users\adish\appdata\local\programs\python\python38\lib\contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "c:\users\adish\appdata\local\programs\python\python38\lib\plistlib.py", line 82, in _maybe_open
    with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR

necromuralist commented 4 years ago

I get this error too (on Ubuntu 19.10). I don't know why but sometimes installing it gives a different error saying PyObjC requires MacOS to build. pyobjc looks like it's an objective-C bridge so might the problem be our using linux and Windows? I've installed it before on linux.

imnexerio commented 4 years ago

hmm same error i am also getting

hembhagat99 commented 4 years ago

I am also getting the same error. Please solve this error as soon as possible

hembhagat99 commented 4 years ago

I also figured out that this problem occurs in the latest version. I installed pyttsx3 version 2.7 and there where no errors. So, I request the maintainers of this project to have a look at the latest version. I don't know from which version this error starts. But it is present in the latest version.

You can temporarily work with version 2.7. Just run this command, pip install pyttsx3==2.7

imnexerio commented 4 years ago

hmm it worked

nateshmbhat commented 4 years ago

@thesantoshprajapati can u please try installing 2.80 or 2.81 and see if they are working ?

amerizalde commented 4 years ago

I had the same issue using "pip install pyttsx3". Tried it with "==2.81" and it installed just fine. I tried "==2.83" and "==2.84" and both fail with the same error as listed above.

nateshmbhat commented 4 years ago

OK I will revert back to commit corresponding to 2.81

nateshmbhat commented 4 years ago

I have applied the fix for this issue : Latest release is 2.87. Just install the latest release with pip install pyttsx3 and please let me know if it fixed the issue.

gurleen-kaur-30 commented 4 years ago

I tried installing the latest release. The error goes away but another KeyError occurs. This is the error : File "/home/gurleen/.local/lib/python3.6/site-packages/pyttsx3/init.py", line 20, in init eng = _activeEngines[driverName] File "/usr/lib/python3.6/weakref.py", line 137, in getitem o = self.data [key] () KeyError: None

nateshmbhat commented 4 years ago

This might be related to right engine driver not being found 🤔

fagun18 commented 4 years ago

SyntaxError: invalid syntax

pip install pyttsx3 File "", line 1 pip install pyttsx3 ^ SyntaxError: invalid syntax

,,,,plz help me

abbaskali commented 2 years ago

i have the same problem but i solved it but this video https://www.youtube.com/watch?v=3T083ode1-E

imnexerio commented 2 years ago

It needs python 3.6 or lower

On Sat, Oct 16, 2021, 3:42 PM Abbas Ali @.***> wrote:

i have the same problem but i solved it but this video https://www.youtube.com/watch?v=3T083ode1-E

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nateshmbhat/pyttsx3/issues/101#issuecomment-944892395, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYQS6DUIOFN74HDF6UYRDTUHFFZHANCNFSM4LMLMHKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

qurbi commented 1 year ago

Hi I have pyttsx3 working fine in python (engine.say(....)), but when it comes to manim voiceover, it throws an error -"HeaderNotFoundError: can't sync to MPEG frame". Can you please help? (Attached is the python file, but renamed as txt)

pytts_not_working.txt

Thanks