-
Notifications
You must be signed in to change notification settings - Fork 234
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
Not working on the latest MacOS 12.3 #182
Comments
I think Apple finally removed python2.7 from macOS since the command
|
It's especially ironic given the text:
Yeah, well, for some time it's been obviously that Python2 was going away. For it to "just work" now, it needs python 3 support. at the bottom of https://www.deanishe.net/alfred-workflow/supported-versions.html#why-no-python-3-support |
For anyone else in the same boat, might want to check out this fork: https://github.com/NorthIsUp/alfred-workflow-py3 (found via the pinned issue: #97) |
macOS has removed the python2.7. You need to follow the steps to solve your problem: First, you need to reinstall Python 2. To do so, install Homebrew then run the following in a terminal:
Now you can use "python filename.py" to run your python2 file in the macOS terminal. But if you use bash to run your python2 file in Alfred, you need to do one more thing. |
Here's Apple's release notes on the subject. Namely:
See also, this Stack Exchange thread |
I agree with you, the sentence you quoted is ridiculous. Even if the developers stick to their views, they should be prepared for python3 in another branch. "just work" can become "just not work" in one night, now, it happens and no official "just work" solutions. |
and you should replace '/usr/bin/python' -> '/usr/local/bin/python' in /workflow/background.py |
I also don't get why we didn't have a version of the code that would work on both version of Python, plenty of libraries do that. |
I faced the same issue a few weeks ago and decided to bite the bullet and migrate all my workflows to Dart because it can be compiled into a standalone executable eliminating the need for any external prerequisites. In the process, I had to build a library just like this one in Dart. The Alfred docs helped a lot. Was a lot of work but fun 😊 |
See #183 |
非常感谢!解决了我的问题! |
First of all, thank you.
Not working on the latest MacOS 12.3
The text was updated successfully, but these errors were encountered: