Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password auth - SQLAlchemy version downgrade required #160

Open
smaley07 opened this issue Feb 15, 2018 · 3 comments
Open

Password auth - SQLAlchemy version downgrade required #160

smaley07 opened this issue Feb 15, 2018 · 3 comments

Comments

@smaley07
Copy link

Hello,

First thanks for your work, airflow works like a charm within docker!

Just wanted to share my issue with password authentification & SQLAlchemy version 1.2.2.

Set in airflow.cfg :
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth

When Airflow install Alchemy, it's looking for ;

Collecting sqlalchemy>=0.9.8 (from apache-airflow[celery,crypto,hive,jdbc,password,postgres]==1.9.0)

I've posted on airflow Gitter, and SQLAlchemy 1.2.2 won't work with password auth method.

Error :

user.password='XXX'
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/ext/hybrid.py", line 873, in set
raise AttributeError("can't set attribute")
AttributeError: can't set attribute

--> Manually downgrade to 1.1.15 does the trick though.

I've modified the Dockerfile to include that at build time!

Cheers
Guillaume

@LinxiangLiu
Copy link

great comment, I meet the same issue. Thanks

@MAliNaqvi
Copy link

@smaley07 You have to use user._password instead and it should work.

@enys
Copy link

enys commented Jun 6, 2018

I can confirm that using user._password fixes that problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants