Closed andresh0816 closed 4 years ago
Hi and thanks for sharing this issue!
this appears to be an upstream-bug; this lib 'pyobjc-framework-SyncServices' is only available on MacOS. Somehow pyttsx3 tries to install this dependency on Windows (or Linux) as well.
I have opened a issue upstream:
https://github.com/nateshmbhat/pyttsx3/issues/82
Also pushed quick-fix (#656) fixing pyttsx3 to previous version till this issue is completely resolved - installation should work now!
Alright, thanks.
For someone with this problem:
1-go to installer/requirements.txt 2- search the line with pyttsx3 and replace with pyttsx3 == 2.71; sys_platform != 'darwin'
Thanks @pnhofmann
I can't install in windows. To continuation the logs.
============== Preparing virtualenv ==============
Shell: python36 -m virtualenv --version 16.7.9
Shell: Exit OK
Shell: env\Scripts\python.exe --version Python 3.8.0
Shell: Exit OK
============== Install requirements ==============
Shell: env\Scripts\pip.exe install -U -r installer/requirements.txt Ignoring pync: markers 'sys_platform == "darwin"' don't match your environment Collecting akinator.py Using cached akinator.py-2.0.3-py3-none-any.whl (17 kB) Collecting archey4 Using cached archey4-4.6.0.post1-py3-none-any.whl (14 kB) Collecting beautifulsoup4 Using cached beautifulsoup4-4.8.2-py3-none-any.whl (106 kB) Collecting colorama Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB) Collecting distro Using cached distro-1.4.0-py2.py3-none-any.whl (17 kB) Collecting flake8 Using cached flake8-3.7.9-py2.py3-none-any.whl (69 kB) Collecting forex-python Using cached forex-python-1.5.tar.gz (7.5 kB) Collecting googletrans Using cached googletrans-2.4.0.tar.gz (17 kB) Collecting IMDbPY Using cached IMDbPY-6.8-py3-none-any.whl (295 kB) Collecting instantmusic Using cached instantmusic-2.2.tar.gz (4.5 kB) Collecting mock Using cached mock-3.0.5-py2.py3-none-any.whl (25 kB) Collecting nltk Using cached nltk-3.4.5.zip (1.5 MB) Collecting pdfkit Using cached pdfkit-0.6.1-py3-none-any.whl (12 kB) Collecting pick Using cached pick-0.6.4-py2.py3-none-any.whl (6.9 kB) Collecting pluginmanager Using cached pluginmanager-0.4.1-py2.py3-none-any.whl (26 kB) Collecting psutil Using cached psutil-5.6.7-cp38-cp38-win32.whl (232 kB) Collecting pycricbuzz Using cached pycricbuzz-2.4-py2.py3-none-any.whl (10 kB) Collecting pydoc-markdown Using cached pydoc-markdown-2.0.5.tar.gz (14 kB) Collecting pypiwin32 Using cached pypiwin32-223-py3-none-any.whl (1.7 kB) Collecting pyreadline Using cached pyreadline-2.1.zip (109 kB) Collecting python-dateutil Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Collecting pytimeparse Using cached pytimeparse-1.1.8-py2.py3-none-any.whl (10.0 kB) Collecting pyttsx3 Using cached pyttsx3-2.80-py3-none-any.whl (39 kB) Collecting pywin32 Using cached pywin32-227-cp38-cp38-win32.whl (8.4 MB) Collecting requests[security] Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB) Collecting speedtest-cli Using cached speedtest_cli-2.1.2-py2.py3-none-any.whl (19 kB) Collecting sympy Using cached sympy-1.5.1-py2.py3-none-any.whl (5.6 MB) Collecting tabulate Using cached tabulate-0.8.6.tar.gz (45 kB) Collecting termdown Using cached termdown-1.16.0-py2.py3-none-any.whl (21 kB) Collecting wikipedia Using cached wikipedia-1.4.0.tar.gz (27 kB) Collecting windows-curses Using cached windows_curses-2.1.0-cp38-cp38-win32.whl (75 kB) Collecting soupsieve>=1.2 Using cached soupsieve-1.9.5-py2.py3-none-any.whl (33 kB) Collecting entrypoints<0.4.0,>=0.3.0 Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB) Collecting pyflakes<2.2.0,>=2.1.0 Using cached pyflakes-2.1.1-py2.py3-none-any.whl (59 kB) Collecting pycodestyle<2.6.0,>=2.5.0 Using cached pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB) Collecting mccabe<0.7.0,>=0.6.0 Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) Collecting simplejson Using cached simplejson-3.17.0.tar.gz (83 kB) Collecting SQLAlchemy Using cached SQLAlchemy-1.3.13.tar.gz (6.0 MB) Collecting lxml Using cached lxml-4.4.2-cp38-cp38-win32.whl (3.3 MB) Collecting youtube-dl Using cached youtube_dl-2020.1.24-py2.py3-none-any.whl (1.8 MB) Collecting eyed3 Using cached eyeD3-0.9-py2.py3-none-any.whl (141 kB) Collecting six Using cached six-1.14.0-py2.py3-none-any.whl (10 kB) Collecting MkDocs>=0.16.0 Using cached mkdocs-1.0.4-py2.py3-none-any.whl (1.2 MB) Collecting Markdown>=2.6.11 Using cached Markdown-3.1.1-py2.py3-none-any.whl (87 kB) Collecting PyYAML>=3.12 Using cached PyYAML-5.3-cp38-cp38-win32.whl (198 kB) Collecting pyobjc>=2.4 Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB) Collecting comtypes; "win32" in sys_platform Using cached comtypes-1.1.7.zip (180 kB) Collecting certifi>=2017.4.17 Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB) Collecting idna<2.9,>=2.5 Using cached idna-2.8-py2.py3-none-any.whl (58 kB) Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB) Collecting chardet<3.1.0,>=3.0.2 Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting pyOpenSSL>=0.14; extra == "security" Using cached pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB) Collecting cryptography>=1.3.4; extra == "security" Using cached cryptography-2.8-cp38-cp38-win32.whl (1.3 MB) Collecting mpmath>=0.19 Using cached mpmath-1.1.0.tar.gz (512 kB) Collecting click>=2.0 Using cached Click-7.0-py2.py3-none-any.whl (81 kB) Collecting pyfiglet>=0.7 Using cached pyfiglet-0.8.post1-py2.py3-none-any.whl (865 kB) Collecting filetype Using cached filetype-1.0.5-py2.py3-none-any.whl (17 kB) Collecting deprecation Using cached deprecation-2.0.7-py2.py3-none-any.whl (11 kB) Collecting livereload>=2.5.1 Using cached livereload-2.6.1-py2.py3-none-any.whl (23 kB) Collecting tornado>=5.0 Using cached tornado-6.0.3.tar.gz (482 kB) Collecting Jinja2>=2.7.1 Using cached Jinja2-2.10.3-py2.py3-none-any.whl (125 kB) Requirement already satisfied, skipping upgrade: setuptools>=36 in c:\users\devel\documents\proyectos\jarvis\env\lib\site-packages (from Markdown>=2.6.11->pydoc-markdown->-r installer/requirements.txt (line 18)) (45.1.0) Collecting pyobjc-framework-OpenDirectory==6.1; platform_release >= "10.0" Downloading pyobjc_framework_OpenDirectory-6.1-py2.py3-none-any.whl (12 kB) Collecting pyobjc-framework-LaunchServices==6.1 Downloading pyobjc_framework_LaunchServices-6.1-py2.py3-none-any.whl (3.3 kB) Collecting pyobjc-framework-DictionaryServices==6.1; platform_release >= "9.0" Downloading pyobjc_framework_DictionaryServices-6.1-py2.py3-none-any.whl (3.4 kB) Collecting pyobjc-framework-PreferencePanes==6.1 Downloading pyobjc_framework_PreferencePanes-6.1-py2.py3-none-any.whl (4.2 kB) Collecting pyobjc-framework-PubSub==6.1; platform_release >= "9.0" Downloading pyobjc_framework_PubSub-6.1-py2.py3-none-any.whl (4.7 kB) Collecting pyobjc-framework-SyncServices==6.1 Downloading pyobjc-framework-SyncServices-6.1.tar.gz (42 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\devel\documents\proyectos\jarvis\env\scripts\python38.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\setup.py'"'"'; file='"'"'C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\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\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\pip-egg-info' cwd: C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\ Complete output (15 lines): Traceback (most recent call last): File "", line 1, in
File "C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\setup.py", line 25, in
Extension(
File "C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\pyobjc_setup.py", line 408, in Extension
os_level = get_os_level()
File "C:\Users\devel\AppData\Local\Temp\pip-install-t35aiy2u\pyobjc-framework-SyncServices\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "C:\Users\devel\AppData\Local\Programs\Python\Python38-32\Lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "C:\Users\devel\AppData\Local\Programs\Python\Python38-32\Lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\Users\devel\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.
Shell: Exit FAIL Command 'env\Scripts\pip.exe install -U -r installer/requirements.txt' returned non-zero exit status 1
Installation failed
FATAL!