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.

Not working in Monterey 12.3

See original GitHub issue

Since I have updated to Monterey, I can’t get the workflow to work anymore.

This is the error I receive:

Homebrew & Cask for Alfred[[Script Filter] Queuing argument '' Homebrew & Cask for Alfred[[Script Filter] Script with argv '(null)' finished ERROR: Homebrew & Cask for Alfred[[Script Filter]Code 127: /bin/bash: python: command not found

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
hdecodedcommented, Apr 9, 2022

I was able to get the workflow running with a workaround hope this helps

I am basically replacing the python command with the complete location of the python command since I am unable to get the python command working globally on mac

  1. Installing python 2 as suggested by @Sondho
  2. Go to the homebrew workflow and enable debug mode.
  3. Trigger the brew keyword in Alfred.
  4. If you are getting Code 127: /bin/bash: python: command not found error.
  5. Open the script filter for brew and cask and change the script as follows
  6. From python brew.py "{query}" to /Users/<your username>/.pyenv/shims/python brew.py "{query}"
  7. Repeat for cask script filter
  8. Trigger the brew or cask keyword in Alfred again
  9. If you get background.py:234 no file found error
  10. Open the background.py file from the location shown in the error
  11. Go to line 233 and replace python with /Users/<your username>/.pyenv/shims/python
12reactions
pat-scommented, Jun 24, 2022

Please switch to python3, python2 is EOL and a security risk.

Bundling a language interpreter into an application is quite unusual and comes with more challenges than keeping just the executable size small.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macos Monterey 12.3.1 chrome not working - Apple Community
After deleting the application, open Finder, while holding Option on the keyboard, on the top menu select Go, then Library. In the Library...
Read more >
macOS Monterey problems: how to fix the most common issues
If you've installed macOS Monterey, but your Mac won't start, then restart your Mac and hold down Command, Option, P and R, which...
Read more >
macOS Monterey Problems: 5 Things You Need to Know
As we push away from macOS Monterey 12.6.2's release, we're seeing complaints about issues with the software. Some of these problems are minor, ......
Read more >
macOS 12 Monterey: Versions, problems, and fixes - Macworld
Monterey won't download or install · Battery life issues · Display not working · Games controller issues · Bricked Macs · Memory management...
Read more >
macOS Monterey Won't Install? Here's How To Fix It
The most obvious reason why macOS Monterey won't install on your Mac is that it's simply not compatible. Now, Apple has been phenomenal...
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