getredash / redash-toolbelt

API client and utilities to manage a Redash instance
BSD 2-Clause "Simplified" License
140 stars 74 forks source link

redash-migrate: command not found #84

Closed nswbmw closed 3 years ago

nswbmw commented 3 years ago

$ uname -a Linux redash 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ pip install --upgrade redash-toolbelt Requirement already up-to-date: redash-toolbelt in /usr/local/lib/python3.6/dist-packages Requirement already up-to-date: requests<3.0.0,>=2.22.0 in /usr/local/lib/python3.6/dist-packages (from redash-toolbelt) Requirement already up-to-date: click<8.0,>=7.0 in /usr/local/lib/python3.6/dist-packages (from redash-toolbelt) Requirement already up-to-date: charset-normalizer~=2.0.0; python_version >= "3" in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.22.0->redash-toolbelt) Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.22.0->redash-toolbelt) Requirement already up-to-date: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.22.0->redash-toolbelt) Requirement already up-to-date: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.22.0->redash-toolbelt

$ redash-migrate --version redash-migrate: command not found

susodapop commented 3 years ago

Hi nswbmw does your pip point to the pything packaging index? Or are you using a mirror? The latest released version of redash-toolbelt is 0.1.6. The migration script was introduced in 0.1.5.

pip install --upgrade redash-toolbelt ought to install the latest version available at PyPi. I'm not able to reproduce a case where this doesn't work. Which makes me think your machine might be aimed at a different index.

Worst case you can bypass Pypi completely and install it this way.

  1. Download the latest release from our releases page. You'll just need the .tar.gz file.
  2. Install this file in your Python environment like this: pip install <path_to_tar.gz_file>