airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "QP Hou (Jira)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-5898) alembic command crashes due to typing import path collision
Date Mon, 11 Nov 2019 23:51:00 GMT
QP Hou created AIRFLOW-5898:
-------------------------------

             Summary: alembic command crashes due to typing import path collision
                 Key: AIRFLOW-5898
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5898
             Project: Apache Airflow
          Issue Type: New Feature
          Components: database
    Affects Versions: 2.0.0
            Reporter: QP Hou
            Assignee: QP Hou


Running alemibc within airflow directory results in the following crash:

 
{code:java}
  File "/Users/qph/Envs/airflow/lib/python3.7/site-packages/typing_extensions.py", line 17,
in <module>
    from typing import Generic, Callable, TypeVar, Tuple
ImportError: cannot import name 'Generic' from 'typing'
{code}
This is due to typing.py within airlfow directory collides with the builtin typing module
when a command runs inside airflow directory. Renaming it to `custom_typing.py` fixes the
issue.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message