You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/04/05 12:39:00 UTC

[jira] [Commented] (AIRFLOW-4245) Can't init with password subpackage

    [ https://issues.apache.org/jira/browse/AIRFLOW-4245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810764#comment-16810764 ] 

Ash Berlin-Taylor commented on AIRFLOW-4245:
--------------------------------------------

The "password" extra install bcrypt and flask-bcrypt which doesn't have anything to do sith psygopg2 - that comes from the "postgres" extra, so installing the extra seems odd.

What version of psycopg2 do you have? {{pip show psycopg2}} Do you have `postgresql-client` installed?

> Can't init with password subpackage
> -----------------------------------
>
>                 Key: AIRFLOW-4245
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4245
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Flo Rance
>            Priority: Major
>
> I'm using v. 1.10.3b2.
> If I install the following subpackages, everything is working fine:
> {code}
> pip install apache-airflow[crypto,postgres,jdbc,ssh
> {code}
> But if I add password subpackage, I get the following error on init:
> {code}
> pip install apache-airflow[crypto,postgres,jdbc,ssh,password
> {code}
> {code}
> Traceback (most recent call last):
>   File "/usr/local/bin/airflow", line 21, in <module>
>     from airflow import configuration
>   File "/usr/local/lib/python3.6/site-packages/airflow/__init__.py", line 44, in <module>
>     settings.initialize()
>   File "/usr/local/lib/python3.6/site-packages/airflow/settings.py", line 290, in initialize
>     configure_orm()
>   File "/usr/local/lib/python3.6/site-packages/airflow/settings.py", line 193, in configure_orm
>     engine = create_engine(SQL_ALCHEMY_CONN, **engine_args)
>   File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/__init__.py", line 431, in create_engine
>     return strategy.create(*args, **kwargs)
>   File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py", line 87, in create
>     dbapi = dialect_cls.dbapi(**dbapi_args)
>   File "/usr/local/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 599, in dbapi
>     import psycopg2
>   File "/usr/local/lib/python3.6/site-packages/psycopg2/__init__.py", line 50, in <module>
>     from psycopg2._psycopg import (                     # noqa
> ImportError: libpq.so.5: cannot open shared object file: No such file or directory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)