[
https://issues.apache.org/jira/browse/AIRFLOW-6508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17010664#comment-17010664
]
ASF GitHub Bot commented on AIRFLOW-6508:
-----------------------------------------
potiuk commented on pull request #7100: [AIRFLOW-6508] Update the version of
cattrs from 0.9 to 1.0
URL: https://github.com/apache/airflow/pull/7100
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Update the version of cattrs from 0.9 to 1.0
> --------------------------------------------
>
> Key: AIRFLOW-6508
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6508
> Project: Apache Airflow
> Issue Type: Improvement
> Components: build
> Affects Versions: 1.10.8
> Reporter: Kousuke Saruta
> Assignee: Kousuke Saruta
> Priority: Major
>
> cattrs 0.9 with Python 3.8 causes following error.
> {code:java}
> $ airflow
> Traceback (most recent call last):
> File "/Users/sarutak/airflow-env/bin/airflow", line 27, in <module>
> from airflow.bin.cli import CLIFactory
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/airflow/__init__.py",
> line 40, in <module>
> from airflow.models.dag import DAG
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/airflow/models/__init__.py",
> line 21, in <module>
> from airflow.models.baseoperator import BaseOperator, BaseOperatorLink #
> noqa: F401
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/airflow/models/baseoperator.py",
> line 41, in <module>
> from airflow.lineage import apply_lineage, prepare_lineage
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/airflow/lineage/__init__.py",
> line 28, in <module>
> from cattr import structure, unstructure
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/cattr/__init__.py",
> line 2, in <module>
> from .converters import Converter, UnstructureStrategy
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/cattr/converters.py",
> line 3, in <module>
> from ._compat import (
> File
> "/Users/sarutak/airflow-env/lib/python3.8/site-packages/cattr/_compat.py",
> line 86, in <module>
> from typing import _Union
> ImportError: cannot import name '_Union' from 'typing'
> (/opt/python/3.8.0/lib/python3.8/typing.py) {code}
> This issue is resolved in cattrs 1.0.
> [https://github.com/Tinche/cattrs/pull/73]
> So let's update it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)