Here’s what we did :
git clone https://github.com/getredash/redash.git
cd redash/
touch .env
nano .env /*inscription de : REDASH_COOKIE_SECRET = X*/
nano docker-compose.yml /*change port 5000:5000 to 5050:5000*/
pip install -r requirements.txt -r requirements_dev.txt
npm install --global yarn@1.22.10
sudo npm install --global yarn@1.22.10
yarn --frozen-lockfile
yarn build
docker compose up -d
docker compose run --rm server create_db
At this point, everything was fine. We just had to reencrypt datasources and it worked.
But then, we try this :
pip install -r requirements_all_ds.txt
And impossible to follow the installation due to errors :
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
There is some troubles with pymssql :
ERROR: Could not find a version that satisfies the requirement pymssql==2.1.4 (from versions:
But also with others depencies I had to install :
apt-get install libmysqlclient-dev
pip install pymssql-linux
pip install Cython
LAST ERROR :
Collecting pymssql==2.1.4
Using cached pymssql-2.1.4.tar.gz (691 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:51: DistDeprecationWarning: Do not call this function
warnings.warn("Do not call this function", DistDeprecationWarning)
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-uzk7tq3b/pymssql_9ce41034d18347d0aa036a72c65d8d0c/setup.py", line 160, in <module>
print("setup.py: platform.linux_distribution() => %r" % (platform.linux_distribution(),))
AttributeError: module 'platform' has no attribute 'linux_distribution'
setup.py: platform.system() => 'Linux'
setup.py: platform.architecture() => ('64bit', 'ELF')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: Discarding https://files.pythonhosted.org/packages/2e/81/99562b93d75f3fc5956fa65decfb35b38a4ee97cf93c1d0d3cb799fffb99/pymssql-2.1.4.tar.gz#sha256=3201eb1b1263ad55b555d727ed8bed0b12b7b9de3ce5e529206e36d4be1a7afb (from https://pypi.org/simple/pymssql/) due to build failure: metadata generation failed
ERROR: Could not find a version that satisfies the requirement pymssql==2.1.4 (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4rc1, 2.1.4, 2.1.5, 2.2.0, 2.2.1.dev0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5)
ERROR: No matching distribution found for pymssql==2.1.4
Something is wrong with our configuration. Any idea ?
Our configuration :
node -v /*return : 14.19.1*/
yarn -v /*return : 1.22.10*/
python3 --version /*return : Python 3.8.10*/
pip --version /*return : pip 20.0.2*/
npm version /*return : 6.14.16*/
Thanks for your help!