question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For anyone still using this after macOS 12.3

See original GitHub issue

Apple 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

6reactions
alexmerkelcommented, May 26, 2022

I created a Python 3 compatible fork here: https://github.com/alexmerkel/alfred-datetime-format-converter

0reactions
alexmerkelcommented, Jul 31, 2022

Thanks to a pull request by @fg6a5gf this functionality is added now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found