Closed chathawee closed 5 months ago
@chathawee some operating system distributions do not come installed with python's pip
by default. Can you try running this command?
python -m ensurepip
If it runs successfully, you should be able to re-run the initial CS Tools install command.
If it doesn't run successfully, we can try another way to get pip
on that Linux machine.
@boonhapus It didn't run successfully. How can I fix this? Thanks
@chathawee okay, let's try this instead. The first command will attempt to fetch the pip bootstrapper from python's source.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
The second command runs the pip bootstrapper.
python get-pip.py
If these run successfully, then we should be able to run CS Tools's bootstrapper code from your initial command.
Hi @boonhapus Still got the same error even I install pip successfully
root@ab-tscs-1001:~# pip --version
pip 24.0 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
root@sg-tscs-6001:~# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2574k 100 2574k 0 0 21.3M 0 --:--:-- --:--:-- --:--:-- 21.4M
root@ab-tscs-1001:~# python get-pip.py
Collecting pip
Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.0-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.0
Uninstalling pip-24.0:
Successfully uninstalled pip-24.0
Successfully installed pip-24.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
root@ab-tscs-1001:~# pip --version
pip 24.0 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
root@ab-tscs-1001:~# curl --silent --show-error --location-trusted https://raw.githubusercontent.com/thoughtspot/cs_tools/master/cs_tools/updater/_bootstrapper.py | python3 - --install
14:54:06 | Welcome to the CS Tools Bootstrapper!
| Ideally, you will only need to run this one time, and then your environment can be fully managed by CS Tools itself.
| If you run into any issues, please reach out to us on GitHub Discussions below.
|
| GitHub: https://github.com/thoughtspot/cs_tools/issues/new/choose
|
| Missing '_updater.py', downloading from GitHub
| Downloaded as '_updater.py'
| Getting the latest CS Tools release.
14:54:07 | Found version: v1.4.16
| Installing CS Tools and its dependencies.
| /root/.config/cs_tools/.cs_tools/bin/python: No module named pip
@boonhapus I can solve it by removing the old cs_tool folder and reinstall it. Thank you.
@boonhapus Now I got the error when trying to create the cluster config but I ran successfully on cs_tools --version
@chathawee this is good progress! Thank you for working through and debugging. For the config command, do not use any equals signs , just spaces.
--host ... --username ...
instead of --host=... --username=...
Hi @boonhapus I still got the same error. I have tried many scenarios
--host ... --username ...
--host=... --username ...
--host ... --username=...
--config ... --host ... --username ...
--config=... --host ... --username ...
This is the error that I got
Ah @chathawee , this looks like an issue due to typer's recent release.
Please try to install the lower version for now.
/root/.config/cs_tools/.cs_tools/bin/python --m pip install typer==0.9.0
And then proceed with the config command again.
Thanks @boonhapus. After downgrade the typer. I have to remove the cs_tools folder again.
Now I can run on the config create
command but when I try to run config check
. I faced the error about the 403. However, I have tested the same config on another OS (Mac) and it return the Login success! but on this Ubuntu, it return 403 error code instead (Please see the attached image)
Run on Mac
Run on Ubuntu
Do you have any suggestion?
I'm sorry that this is so difficult @chathawee 😢 It looks like maybe your Ubuntu server is behind a proxy or network gate of some sort? Are you able to ping the server directly ?
curl -Iks <url of your ts cluster>
( this is an uppercase i
)
@boonhapus Thank you. I can access the cluster now. This is related to the network issue. So I have changed to use the URL instead of the IP address. It works fine. Thanks a lot.
I will close this issue.
First Stop
Platform Configuration
OS: Ubuntu Python version: 3.10.12
Description
Hi, I try to install the CS_tools and I got below error. Please suggest.
This is the error [PLATFORM DETAILS] Python Version: 3.10.12 System Info: Linux (detail: Linux-5.15.0-100-generic-x86_64-with-glibc2.35) Platform Tags: linux-x86_64 Ran at: 2024-03-26 16:03:16
INFO | 2024-03-26 16:03:16,349 |:395 | Missing '_updater.py', downloading from GitHub
INFO | 2024-03-26 16:03:16,723 | :400 | Downloaded as '_updater.py'
INFO | 2024-03-26 16:03:16,738 | :141 | Getting the latest CS Tools release.
INFO | 2024-03-26 16:03:17,169 | :143 | Found version: v1.4.16
INFO | 2024-03-26 16:03:17,170 | :146 | Installing CS Tools and its dependencies.
INFO | 2024-03-26 16:03:17,185 | _updater.py:69 | /root/.config/cs_tools/.cs_tools/bin/python: No module named pip
DEBUG | 2024-03-26 16:03:17,188 | :519 | Error found: Failed with exit code: 1