[
https://issues.apache.org/jira/browse/AIRFLOW-4245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813290#comment-16813290
]
Ash Berlin-Taylor commented on AIRFLOW-4245:
--------------------------------------------
A new version of psycopg2 (2.8) was released that changed behaviour. {{libpg}}
is now required, but would get removed by the {{--autoremove}}. If you add
{{libpq5}} to this list
https://github.com/puckel/docker-airflow/blob/024cf2d08d2de1edf63f780c4d60c5d8fc70b265/Dockerfile#L40
it should work.
> 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)