rdhyee / py-applescript

An easy-to-use Python wrapper for NSAppleScript, allowing Python scripts to communicate with AppleScripts and AppleScriptable applications.
Creative Commons Zero v1.0 Universal
140 stars 7 forks source link

Error when I install using command : python3 setup.py install #12

Closed necklinux closed 2 years ago

necklinux commented 2 years ago

Traceback (most recent call last): File "setup.py", line 20, in 'Programming Language :: Python :: 3' File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 108, in setup _setupdistribution = dist = klass(attrs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 426, in init k: v for k, v in attrs.items() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 267, in init getattr(self.metadata, "set" + key)(val) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 1227, in set_requires distutils.versionpredicate.VersionPredicate(v) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/versionpredicate.py", line 114, in init raise ValueError("expected parenthesized list: %r" % paren) ValueError: expected parenthesized list: '-core'

According to https://stackoverflow.com/questions/16127080/setup-py-expected-parenthesized-list-when-required-package-name-contains-a-dash

In file setup.py , change "requires" to "install_requires" and then everything is good.

rdhyee commented 2 years ago

Thank you @necklinux for reporting this issue and specifying the fix! I've updated the master branch and am now working on updating PyPI -- I just need to remind myself how to do so.