For anyone still using this after macOS 12.3
See original GitHub issueApple removed the system python 2. I use this workflow all the time and needed to bring it back. Here’s what I did.
First get python 2 back
# Download/run the legacy macOS installer (pick which one for your sys)
https://www.python.org/downloads/release/python-2716/
# Add pip for python2.7
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip2.py
python2 get-pip2.py
# Add the missing macos plist lib alfred uses
curl https://raw.githubusercontent.com/python/cpython/2.7/Lib/plistlib.py -o /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py
# Add missing pip for this workflow
python2 -m pip install delorean
# Optionally add the helpers like easy_install back onto your path
# In your ~/.zprofile or whatever bash/shell profile equivalent
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
Now open alfred preferences > Workflows > double click on the script filter square in the workflow GUI Update the script filter to one of the two below.
If which python
shows 2.7
/usr/local/bin/python process.py "{query}"
If which python
shows 3…
/usr/local/bin/python2 process.py "{query}"
For more legacy python2 help I wrote an SO post: https://stackoverflow.com/a/71513250/786389
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
What's new in the updates for macOS Monterey - Apple Support
macOS Monterey 12.5 includes enhancements, bug fixes and security updates. TV app adds the option to restart a live sports game already in ......
Read more >macOS 12.3 is Out! - What's New? - YouTube
macOS Monterey 12.3 has been released and is out for everyone. macOS 12/3 adds Universal Control, Updates to TV, Podcasts, Bugs fixes, ...
Read more >macOS 12 Monterey: Versions, problems, and fixes - Macworld
macOS Monterey is the latest Macs operating system. Here are the new features you can enjoy and details of the problems people have ......
Read more >macOS Monterey: All the New Features Detailed - MacRumors
Compared to macOS Big Sur, macOS Monterey is a smaller update, but there are still many notable new features that improve the Mac...
Read more >Apple releases macOS 12.3 with Universal Control, new emoji
Does anyone know if this update addresses the external USB webcam bug ? It's been present since Monterey came out and has yet...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created a Python 3 compatible fork here: https://github.com/alexmerkel/alfred-datetime-format-converter
Thanks to a pull request by @fg6a5gf this functionality is added now.