[
https://issues.apache.org/jira/browse/AIRFLOW-4245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810843#comment-16810843
]
Flo Rance commented on AIRFLOW-4245:
------------------------------------
{code:bash}
$ dpkg -l 'postgresql-*'
dpkg-query: no packages found matching postgresql-*
{code}
{code:python}
$ pip show psycopg2
Name: psycopg2
Version: 2.7.7
Summary: psycopg2 - Python-PostgreSQL Database Adapter
Home-page: http://initd.org/psycopg/
Author: Federico Di Gregorio
Author-email: [email protected]
License: LGPL with exceptions or ZPL
Location: /usr/local/lib/python3.6/site-packages
Requires:
Required-by:
{code}
Btw, I should mention that I've installed everything with a modified version of
that Dockerfile: https://github.com/puckel/docker-airflow/blob/master/Dockerfile
> 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)