mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.76k stars 82 forks source link

python-psutil has been deprecated by Homebrew #197

Open valleydali opened 7 months ago

valleydali commented 7 months ago

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 commented 7 months ago

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.