Skip to content
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

python-psutil has been deprecated by Homebrew #197

Open
valleydali opened this issue Apr 12, 2024 · 1 comment
Open

python-psutil has been deprecated by Homebrew #197

valleydali opened this issue Apr 12, 2024 · 1 comment

Comments

@valleydali
Copy link

nvr depends on python-psutil, which has been deprecated by Homebrew.

% brew doctor
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  python-psutil
% brew rm python-psutil
Error: Refusing to uninstall /opt/homebrew/Cellar/python-psutil/5.9.8
because it is required by neovim-remote, which is currently installed.

What can be done about this?

@valleydali
Copy link
Author

Hmm... it seems that Homebrew has a somewhat fraught relationship with Python. Homebrew's Python page has this to say:

It is possible to install some Python packages as formulae by using brew install xyz. We do not recommend using these formulae and instead recommend you install them with pip inside a virtualenv.

(My italics.)

So I resolved the problem by doing this:

% brew uninstall neovim-remote
% brew uninstall python-psutil
% brew install pipx
% pipx install neovim-remote

And now all is copacetic.

This makes me wonder whether neovim-remote should be a Homebrew formula at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant