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

Installation error (PyPI) for 2.80 (Linux and Windows) #82

Closed
pnhofmann opened this issue Jan 25, 2020 · 1 comment · Fixed by #89
Closed

Installation error (PyPI) for 2.80 (Linux and Windows) #82

pnhofmann opened this issue Jan 25, 2020 · 1 comment · Fixed by #89

Comments

@pnhofmann
Copy link

Taken from 'pyttsx3-2.80.dist-info/METADATA' of latest .whl package from mypy:

Requires-Dist: pyobjc (>=2.4)
Requires-Dist: pyobjc (>=2.4) ; "darwin" in sys_platform
Requires-Dist: comtypes ; "win32" in sys_platform

I don't understand why, but somehow 'pyobjc' is duplicated. Therefore pip wrongly tries to install pyobjc on Linux or Windows platforms - which of course fails since pyobjc is MacOS-only.

@asottile
Copy link
Contributor

the fix is to delete the following lines:

pyttsx3/setup.py

Lines 14 to 23 in 7f87def

# Ubuntu: sudo apt install espeak ffmpeg
install_requires = []
if platform.system() == 'Windows':
install_requires += [
'comtypes'
]
elif platform.system() == 'Darwin':
install_requires += [
'pyobjc>=2.4'
]

install_requires=install_requires ,

(these are unnecessary due to the platform-specific extras_require)

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

Successfully merging a pull request may close this issue.

2 participants