alefpereira / pyenv-pyright

Setup a pyenv virtualenv for microsoft pyright in the pyrightconfig.json config file
MIT License
133 stars 10 forks source link

json_pp: command not found #3

Open 2zqa opened 1 month ago

2zqa commented 1 month ago

I installed pyenv-pyright by running the command in the README:

git clone https://github.com/alefpereira/pyenv-pyright.git $(pyenv root)/plugins/pyenv-pyright

However when running pyenv pyright, I get the following output:

[marijnk@fedora my-project]$ pyenv pyright
/home/marijnk/.pyenv/plugins/pyenv-pyright/bin/pyenv-pyright: line 80: json_pp: command not found
/home/marijnk/.pyenv/plugins/pyenv-pyright/bin/pyenv-pyright: line 60: json_pp: command not found
/home/marijnk/.pyenv/plugins/pyenv-pyright/bin/pyenv-pyright: line 68: json_pp: command not found
/home/marijnk/.pyenv/plugins/pyenv-pyright/bin/pyenv-pyright: line 72: json_pp: command not found

I propose one of two solutions:

System information: on Fedora Linux 40 (Workstation Edition) using pyenv 2.3.31

2zqa commented 1 month ago

Update: jq is not installed by default, but is available on all major distro package managers (tested: Ubuntu, Fedora and Arch Linux). So the second solution would also require an update to the README file.