airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Gasner (Jira)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-5430) airflow initdb is broken on py2 and py3.5 due to transitive dependency
Date Fri, 06 Sep 2019 18:15:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-5430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Max Gasner updated AIRFLOW-5430:
--------------------------------
    Issue Type: Bug  (was: Improvement)

> airflow initdb is broken on py2 and py3.5 due to transitive dependency 
> -----------------------------------------------------------------------
>
>                 Key: AIRFLOW-5430
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5430
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli, core, database, dependencies
>    Affects Versions: 1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.10.4, 1.10.5
>            Reporter: Max Gasner
>            Priority: Major
>
> marshmallow-sqlalchemy broke py2 and py3.5 compatibility in their 0.19.0 release.
>  
> Flask-AppBuilder's transitive dependency on marshmallow-sqlalchemy breaks all new installs
of Airflow 1.10.0 and higher on py2 and py3.5 with one of the following syntax errors when
running airflow initdb:
>  
> Traceback (most recent call last):
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/bin/airflow", line 22, in <module>
>  from airflow.bin.cli import CLIFactory
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/airflow/bin/cli.py",
line 68, in <module>
>  from airflow.www_rbac.app import cached_app as cached_app_rbac
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/airflow/www_rbac/app.py",
line 26, in <module>
>  from flask_appbuilder import AppBuilder, SQLA
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/flask_appbuilder/__init__.py",
line 5, in <module>
>  from .base import AppBuilder
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/flask_appbuilder/base.py",
line 5, in <module>
>  from .api.manager import OpenApiManager
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/flask_appbuilder/api/__init__.py",
line 11, in <module>
>  from marshmallow_sqlalchemy.fields import Related, RelatedList
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/marshmallow_sqlalchemy/__init__.py",
line 1, in <module>
>  from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/marshmallow_sqlalchemy/schema.py",
line 3, in <module>
>  from .convert import ModelConverter
>  File "/workdir/python_modules/dagster-airflow/.tox/py35/lib/python3.5/site-packages/marshmallow_sqlalchemy/convert.py",
line 80
>  ):
>  ^
>  SyntaxError: invalid syntax
>  
> Traceback (most recent call last):
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/bin/airflow", line 22, in <module>
>  from airflow.bin.cli import CLIFactory
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/airflow/bin/cli.py",
line 68, in <module>
>  from airflow.www_rbac.app import cached_app as cached_app_rbac
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/airflow/www_rbac/app.py",
line 26, in <module>
>  from flask_appbuilder import AppBuilder, SQLA
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/flask_appbuilder/__init__.py",
line 5, in <module>
>  from .base import AppBuilder
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/flask_appbuilder/base.py",
line 5, in <module>
>  from .api.manager import OpenApiManager
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/flask_appbuilder/api/__init__.py",
line 11, in <module>
>  from marshmallow_sqlalchemy.fields import Related, RelatedList
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/marshmallow_sqlalchemy/__init__.py",
line 1, in <module>
>  from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema
>  File "/workdir/python_modules/dagster-airflow/.tox/py27/lib/python2.7/site-packages/marshmallow_sqlalchemy/schema.py",
line 101
>  class TableSchema(ma.Schema, metaclass=TableSchemaMeta):
>  ^
>  SyntaxError: invalid syntax



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message