-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Airflow fails to initdb with cattrs 1.1.0 #11965
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Can confirm we're experiencing this as part of our production stack (auto scaling actions are now failing when trying to install 1.10.12) - a hotfix would be greatly appreciated. |
You can use the following for now, this will be fixed in 1.10.13 pip install apache-airflow==1.10.12 \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.7.txt" |
Many thanks @kaxil |
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache#11965
#11969 -- This PR will be included in 1.10.13 and should fix this issue too |
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes #11965
Signed-off-by: Julien Le Dem <[email protected]>
Signed-off-by: Julien Le Dem <[email protected]>
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache#11965
It worked! Thanks! |
@jodmoreira oh how i envy you, the constraint file |
Just update both or just downgrade |
Yeah. Constraints file does not work if you already have higher version installed. |
@kaxil @potiuk ah, i'm sorry i didn't describe it clearly 😅 original:
my updates:
|
@kaxil can I change attrs to higher version( attrs==20.1.0 ) for airflow 1.10.12? |
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache#11965
Thanks a lot! |
great! |
Didn't work for me :( |
What do you mean by 'didn't work"? Can you please provide some specifics on what you tried and how it did not work @gaj995 ? |
Unfortunately, It is beyond of our control when it comes to our users. We have no physical capacity to force our users to use our preferred installation method. So we better try it ourselves and . We have to assume our users installed latest PIP (which the cannot for now as stated in #12838 which is currently. And in many toolchains where Airflow is installed people build Airflow Images automatically and running the PyPI pip. Including our image which is currently pinned to 20.2.4.
Yep. This is one of the reasons why Python 3.9 is not officially supported yet by Airflow |
According to my pip3 --version I'm on 20.0.2 so that can't be the issue. |
Are you trying to develop Airflow or run it for "production" on MacOS? We do not support MacOS as "execution" environment" - only Linux systems are supported for 'running' Airflow', MacOS in our case is only supported as development environment. It looks like a Mac-only thing, so if you are using MacOS to develop airflow and you can use dockerised development environment instead, while we manage to pin-point it? (. On MacOS we also have Breeze that provides a fully-featured docker-based dev environment that works flawlessly with MacOS as well. We fully support it and there is plenty of documentation and movies on how to use Breeze for development purpose including 'start-airflow' command that automatically spins of running airflow scheduler + webserver + command line from your local sources. BTW. If you have migrated to BigSur, this might be the root cause of the problem. Usually the "POSIX" development environment has lots of problems with the new releases of MacOS. It usually takes couple of months and few releases of patches + some releases of brew and other dev environments to get it working. Again Breeze is your best bet there as it is "stable" environment. As on as you have Docker and Docker-compose, it will work on MacOS/Linux and even WSL2 for Windows in similar way. |
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache#11965 (cherry picked from commit 3ad0378)
Recent versions of Tensorflow and Airflow makes test fails with segmentation faults. Airflow doesn't support macos as an execution environment.[1] [1] apache/airflow#11965 (comment) PiperOrigin-RevId: 364952307
Recent versions of Tensorflow and Airflow makes test fails with segmentation faults. Airflow doesn't support macos as an execution environment.[1] [1] apache/airflow#11965 (comment) PiperOrigin-RevId: 364952307
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache#11965
Recent versions of Tensorflow and Airflow makes test fails with segmentation faults. Airflow doesn't support macos as an execution environment.[1] [1] apache/airflow#11965 (comment) PiperOrigin-RevId: 364952307
Recent versions of Tensorflow and Airflow makes test fails with segmentation faults. Airflow doesn't support macos as an execution environment.[1] [1] apache/airflow#11965 (comment) PiperOrigin-RevId: 365168108
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 (cherry picked from commit 3ad037872e54ec617f1b2734781c61640c7528ca) GitOrigin-RevId: 6b41e9541d445261bd8073750e047cbfaf03a624
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 (cherry picked from commit 3ad037872e54ec617f1b2734781c61640c7528ca) GitOrigin-RevId: 6b41e9541d445261bd8073750e047cbfaf03a624
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
`cattrs` now depends on `attrs >= 20.1.0`, because of `attr.resolve_types`. Source: https://github.com/Tinche/cattrs/blob/master/HISTORY.rst#110-2020-10-29 closes apache/airflow#11965 GitOrigin-RevId: 3ad037872e54ec617f1b2734781c61640c7528ca
Apache Airflow version:
1.10.12
Kubernetes version (if you are using kubernetes) (use
kubectl version
):N/A
Environment:
uname -a
): 3.10.0-229.el7.x86_64What happened:
Following the instructions here, I encountered an issue at the
airflow initdb
stage:What you expected to happen:
I expected the Airflow DB to be initialised as per the instructions.
How to reproduce it:
On a fresh installation, follow the Quick Start guide until the
apache initdb
stage.Anything else we need to know:
Investigation suggests that this was caused by a Python dependency; specifically
cattrs==1.1.0
, which was released yesterday (2020-10-29). Downgradingcattrs
manually to 1.0.0 does fix the issue and allows the Airflow database to be initialised:The text was updated successfully, but these errors were encountered: