JakeWharton / JakeWharton/pidcat

`pidcat` installed via `brew` no longer works on macOS 12.3, due to Python 2 having been removed

Open
#180 19 comments 42 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5k
Forks
517
PR merge metrics
No merged PRs in 30d

Description

Hey!

First off, thank you for the great util, Jake. And all the other cool stuff you've built througout the years.

I'm having an issue where `pidcat`, installed from `brew`, can no longer run on macOS 12.3. I believe this is because of Python 2 having been removed on this version of macOS.

I'm getting the following output, when attempting to run `pidcat`:

```sh
~ pidcat
zsh: /opt/homebrew/bin/pidcat: bad interpreter: /usr/bin/python: no such file or directory
```

This in turn is caused by https://github.com/JakeWharton/pidcat/blob/44b4a106bb25776cbb551044b303520a07a51c1e/pidcat.py#L1:

```sh
#!/usr/bin/python -u
```

On macOS 12.3, `/usr/bin/python` does not exist - only `/usr/bin/python3`.

Running on the latest development version (as listed in the current `README.md`, does not solve the issue, as it still looks for `python`, which still does not exist.

One alternative that could resolve the issue would be to update `pidcat` to explicitly try to use `python3`, but this would have some less desirable backwards compatibility issues, perhaps.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the interpreter line in pidcat.py and compare it with the current development version referenced by README.md. Reproduce the Homebrew-installed pidcat failure on macOS 12.3 and review the comment thread for compatibility constraints. Done means pidcat no longer looks for the missing interpreter while its supported installation behavior remains clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.