Issue Summary

I followed the steps from this post http://discuss.redash.io/t/add-oracle-as-data-souce-to-redash/4590/11

After creating the oracle specific image, I ran the following steps:

docker-compose up -d ===> WORKS FINE
docker-compose run --rm server create_db ===> causes error

After running “docker-compose run --rm server create_db”, I get the following error:

/home/akash/Documents/redash/venv/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.hazmat.backends import default_backend
Starting redash_postgres_1 ... done
Starting redash_redis_1    ... done
Traceback (most recent call last):
  File "/app/manage.py", line 6, in <module>
    from redash.cli import manager
  File "/app/redash/__init__.py", line 13, in <module>
    from . import settings
  File "/app/redash/settings/__init__.py", line 7, in <module>
    from .helpers import (
  File "/app/redash/settings/helpers.py", line 2, in <module>
    from urllib.parse import urlparse, urlunparse
ImportError: No module named parse

So as you can see here, its trying to import parse from urllib.parse but couldn’t.

I’m using “FROM redash/redash:latest” tag. I think this pulling a version of redash that is based on Python3, isn’t it? But seems like my docker-compose is unable to load Phython3 related libraries. I don’t know why docker-compose is unable to do so. Is there some version conflicts here that I need to resolve, whether related to docker-compose, or the redash itself?

Also, this issue is not found if I use the master repository to create the new image, since this doesn’t use Python2 libraries.

Technical details:

I received the same error. Do you have any update on this?

Hey @adam09066 what image tag are you using?

redash/redash:latest

Ugh. We should delete that tag. It’s two years old and not maintained at all.

Use the release tag instead: redash/redash:10.0.0.b50363

1 Like

Thank you very much for your help. It works.

1 Like