I can't find the kptop command after installing kptop. Is there any step I am missing?
llody55 opened this issue · 2 comments
[root@llody-dev ]#pip3 install kptop --upgrade=0.1
Collecting kptop
Downloading kptop-0.0.7-py3-none-any.whl (47 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.9/47.9 kB 148.3 kB/s eta 0:00:00
Collecting tabulate==0.9.0
Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting rich==13.3.1
Downloading rich-13.3.1-py3-none-any.whl (239 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.0/239.0 kB 18.7 kB/s eta 0:00:00
Requirement already satisfied: requests==2.28.2 in /usr/local/bin/python3/lib/python3.7/site-packages (from kptop) (2.28.2)
Collecting asciichartpy==1.5.25
Downloading asciichartpy-1.5.25-py2.py3-none-any.whl (7.2 kB)
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: setuptools in /usr/local/bin/python3/lib/python3.7/site-packages (from asciichartpy==1.5.25->kptop) (67.8.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (1.26.15)
Collecting markdown-it-py<3.0.0,>=2.1.0
Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 18.1 kB/s eta 0:00:00
Requirement already satisfied: pygments<3.0.0,>=2.14.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from rich==13.3.1->kptop) (2.15.1)
Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from rich==13.3.1->kptop) (4.5.0)
Collecting mdurl
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: argparse, tabulate, mdurl, asciichartpy, markdown-it-py, rich, kptop
Attempting uninstall: rich
Found existing installation: rich 11.0.0
Uninstalling rich-11.0.0:
Successfully uninstalled rich-11.0.0
Successfully installed argparse-1.4.0 asciichartpy-1.5.25 kptop-0.0.7 markdown-it-py-2.2.0 mdurl-0.1.2 rich-13.3.1 tabulate-0.9.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: /usr/local/bin/python3/bin/python3.7 -m pip install --upgrade pip
[root@llody-dev ~]#kpa
kpartx kpasswd
[root@llody-dev ~]#pip3 list | grep kptop
kptop 0.0.7
[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: /usr/local/bin/python3/bin/python3.7 -m pip install --upgrade pip
[root@llody-dev ~]#export KPTOP_PROMETHEUS_SERVER="http://192.168.1.227:32456/"
[root@llody-dev ~]#kptop nodes
-bash: kptop: command not found
Hi @llody55
that happened with me once when I installed it without root, please try the following and let me know if it worked
uninstall kptop from the normal user & the user
pip3 uninstall kptop
sudo su
pip3 uninstall kptop
Then re-install it with sudo
sudo pip3 install kptop --upgrade
@eslam-gomaa
My test environment only has the root user, and the system version is centos7.9. I try to uninstall and reinstall, but the same problem exists.
`[root@llody-dev ~]#pip3 uninstall kptop
Found existing installation: kptop 0.0.7
Uninstalling kptop-0.0.7:
Would remove:
/usr/local/bin/python3/bin/kptop
/usr/local/bin/python3/lib/python3.7/site-packages/kptop-0.0.7.dist-info/*
/usr/local/bin/python3/lib/python3.7/site-packages/kptop_tool.py
/usr/local/bin/python3/lib/python3.7/site-packages/kubePtop/*
Proceed (Y/n)? y
Successfully uninstalled kptop-0.0.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@llody-dev ]#sudo pip3 install kptop --upgrade=0.1 in /usr/local/bin/python3/lib/python3.7/site-packages (from markdown-it-py<3.0.0,>=2.1.0->rich==13.3.1->kptop) (0.1.2)
Collecting kptop
Using cached kptop-0.0.7-py3-none-any.whl (47 kB)
Collecting argparse
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: requests==2.28.2 in /usr/local/bin/python3/lib/python3.7/site-packages (from kptop) (2.28.2)
Requirement already satisfied: rich==13.3.1 in /usr/local/bin/python3/lib/python3.7/site-packages (from kptop) (13.3.1)
Requirement already satisfied: asciichartpy==1.5.25 in /usr/local/bin/python3/lib/python3.7/site-packages (from kptop) (1.5.25)
Requirement already satisfied: tabulate==0.9.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from kptop) (0.9.0)
Requirement already satisfied: setuptools in /usr/local/bin/python3/lib/python3.7/site-packages (from asciichartpy==1.5.25->kptop) (67.8.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (1.26.15)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/bin/python3/lib/python3.7/site-packages (from requests==2.28.2->kptop) (2022.12.7)
Requirement already satisfied: pygments<3.0.0,>=2.14.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from rich==13.3.1->kptop) (2.15.1)
Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from rich==13.3.1->kptop) (4.5.0)
Requirement already satisfied: markdown-it-py<3.0.0,>=2.1.0 in /usr/local/bin/python3/lib/python3.7/site-packages (from rich==13.3.1->kptop) (2.2.0)
Requirement already satisfied: mdurl
Installing collected packages: argparse, kptop
Successfully installed argparse-1.4.0 kptop-0.0.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: /usr/local/bin/python3/bin/python3.7 -m pip install --upgrade pip
[root@llody-dev ~]#kptop --help
-bash: kptop: command not found
[root@llody-dev ~]#python3
Python 3.7.5 (default, Apr 25 2023, 14:25:45)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
exit()
[root@llody-dev ~]#`