Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-5898

alembic command crashes due to typing import path collision

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: database
    • Labels:
      None

      Description

      Running alemibc within airflow directory results in the following crash:

       

        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'
      

      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.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                houqp QP Hou
                Reporter:
                houqp QP Hou
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: