Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pyttsx3 installation error

678 views
Skip to first unread message

Mehr Abrar Lak

unread,
Jan 25, 2020, 2:32:52 PM1/25/20
to
When I try to import pyytsx3 on python 3.7.3 having latest pip version then
I get error like exit code 1. I couldn't make it to install it I try using
pip install pyttsx3 but it doesn't work for me then I tried it's .whl wheel
file to install but instead fixing the issue am still facing the same one.
It tries to load and download some files but at some point it shows error
the exit status code 1 it is just because of the environment error2

Cameron Simpson

unread,
Jan 25, 2020, 11:03:31 PM1/25/20
to
Please post the full output of running:

pip install pyttsx3

so that we can see the error messages. Likewise, if the "import pyytsx3"
statement causes python to emit an error, please post the _full_
transcript of the failure. "error like exit code 1" is not sufficiently
precise.

Note that this is a text only list, so do not attach screenshots; insert
the error text straight into the message body.

If pip is working but an import fails, make sure the "pip" command
you're running installs for the python you're using. It is common for
systems to have both a python2 and python3 installed presently, so there
is some scope for pip installing into the wrong python.

Cheers,
Cameron Simpson <c...@cskk.id.au>

jlaa...@gmail.com

unread,
Mar 13, 2020, 3:52:18 PM3/13/20
to

Got the same error here please help
ERROR: Command errored out with exit status 1:
command: 'c:\users\jerald lashy jeffery\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Jerald Lashy Jeffery\\AppData\\Local\\Temp\\pip-install-ej949hlq\\pyobjc-framework-AddressBook\\setup.py'"'"'; __file__='"'"'C:\\Users\\Jerald Lashy Jeffery\\AppData\\Local\\Temp\\pip-install-ej949hlq\\pyobjc-framework-AddressBook\\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\Jerald Lashy Jeffery\AppData\Local\Temp\pip-install-ej949hlq\pyobjc-framework-AddressBook\pip-egg-info'
cwd: C:\Users\Jerald Lashy Jeffery\AppData\Local\Temp\pip-install-ej949hlq\pyobjc-framework-AddressBook\
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Jerald Lashy Jeffery\AppData\Local\Temp\pip-install-ej949hlq\pyobjc-framework-AddressBook\setup.py", line 22, in <module>
Extension(
File "C:\Users\Jerald Lashy Jeffery\AppData\Local\Temp\pip-install-ej949hlq\pyobjc-framework-AddressBook\pyobjc_setup.py", line 408, in Extension
os_level = get_os_level()
File "C:\Users\Jerald Lashy Jeffery\AppData\Local\Temp\pip-install-ej949hlq\pyobjc-framework-AddressBook\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "c:\users\jerald lashy jeffery\appdata\local\programs\python\python38-32\lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "c:\users\jerald lashy jeffery\appdata\local\programs\python\python38-32\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\users\jerald lashy jeffery\appdata\local\programs\python\python38-32\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.

MRAB

unread,
Mar 13, 2020, 5:45:08 PM3/13/20
to
Did you try to install from PyPI? It appears that you should clone the
project from GitHub. This might help:

https://medium.com/better-programming/an-introduction-to-pyttsx3-a-text-to-speech-converter-for-python-4a7e1ce825c3

I haven't tried it myself.

Marco Sulla

unread,
Mar 13, 2020, 7:52:51 PM3/13/20
to

jlaa...@gmail.com

unread,
Mar 14, 2020, 12:59:35 AM3/14/20
to
Thank you this worked for me.

jlaa...@gmail.com

unread,
Mar 14, 2020, 1:00:35 AM3/14/20
to
On Saturday, 14 March 2020 01:52:51 UTC+2, Marco Sulla wrote:
> It's a know bug. Solution: https://stackoverflow.com/a/59909885/1763602

Thank you for your concern.I tried the above solution first and it worked as well. Thank you
0 new messages