You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/07 10:19:59 UTC

[GitHub] [airflow] Zat42 opened a new issue #12877: ImportError: cannot import name '_Union' from 'typing' (/usr/lib/python3.9/typing.py)

Zat42 opened a new issue #12877:
URL: https://github.com/apache/airflow/issues/12877


   **Apache Airflow version**: 1.10.3
   
   **Environment**:
   
   - **OS** (e.g. from /etc/os-release): Arch Linux
   - **Kernel** (e.g. `uname -a`): Linux 5.9.11-arch2-1 #1 SMP PREEMPT Sat, 28 Nov 2020 02:07:22 +0000 x86_64 GNU/Linux
   - **Install tools**: pip 2.3.1 (with  _--use-deprecated legacy-resolver_)
   - **Others**: python 3.9
   
   **What happened**:
   ```
   (env) ➜  project-airflow git:(feature-implementation) ✗ ./env/bin/airflow webserver
   Traceback (most recent call last):
     File "/home/user/dev/project-airflow/./env/bin/airflow", line 26, in <module>
       from airflow.bin.cli import CLIFactory
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/airflow/bin/cli.py", line 95, in <module>
       api_module = import_module(conf.get('cli', 'api_client'))  # type: Any
     File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/airflow/api/client/local_client.py", line 24, in <module>
       from airflow.api.common.experimental import delete_dag
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/airflow/api/common/experimental/delete_dag.py", line 26, in <module>
       from airflow.models.serialized_dag import SerializedDagModel
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/airflow/models/serialized_dag.py", line 35, in <module>
       from airflow.serialization.serialized_objects import SerializedDAG
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 28, in <module>
       import cattr
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/cattr/__init__.py", line 2, in <module>
       from .converters import Converter, UnstructureStrategy
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/cattr/converters.py", line 15, in <module>
       from ._compat import (
     File "/home/user/dev/project-airflow/env/lib/python3.9/site-packages/cattr/_compat.py", line 87, in <module>
       from typing import _Union
   ImportError: cannot import name '_Union' from 'typing' (/usr/lib/python3.9/typing.py)
   ```
   **How to reproduce it**:
   
   Try launch airflow webserver with python **3.9**
   
   **Anything else we need to know**:
   
   --


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] ashb closed issue #12877: ImportError: cannot import name '_Union' from 'typing' (/usr/lib/python3.9/typing.py)

Posted by GitBox <gi...@apache.org>.
ashb closed issue #12877:
URL: https://github.com/apache/airflow/issues/12877


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] tirkarthi commented on issue #12877: ImportError: cannot import name '_Union' from 'typing' (/usr/lib/python3.9/typing.py)

Posted by GitBox <gi...@apache.org>.
tirkarthi commented on issue #12877:
URL: https://github.com/apache/airflow/issues/12877#issuecomment-739896713


   This seems to have been fixed : https://github.com/Tinche/cattrs/issues/100


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #12877: ImportError: cannot import name '_Union' from 'typing' (/usr/lib/python3.9/typing.py)

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #12877:
URL: https://github.com/apache/airflow/issues/12877#issuecomment-739822087


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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:
users@infra.apache.org