From commits-return-74902-archive-asf-public=cust-asf.ponee.io@airflow.apache.org Mon Nov 11 23:51:07 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 10E1B180629 for ; Tue, 12 Nov 2019 00:51:06 +0100 (CET) Received: (qmail 34805 invoked by uid 500); 11 Nov 2019 23:51:06 -0000 Mailing-List: contact commits-help@airflow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.apache.org Delivered-To: mailing list commits@airflow.apache.org Received: (qmail 34796 invoked by uid 99); 11 Nov 2019 23:51:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2019 23:51:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B2C061811E6 for ; Mon, 11 Nov 2019 23:51:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -113 X-Spam-Level: X-Spam-Status: No, score=-113 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id lJ4APXUtELOY for ; Mon, 11 Nov 2019 23:51:02 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=207.244.88.153; helo=mail.apache.org; envelope-from=jira@apache.org; receiver= Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with SMTP id F3A32BC509 for ; Mon, 11 Nov 2019 23:51:01 +0000 (UTC) Received: (qmail 34791 invoked by uid 99); 11 Nov 2019 23:51:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2019 23:51:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8CB39E00D2 for ; Mon, 11 Nov 2019 23:51:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 07ABD7801F8 for ; Mon, 11 Nov 2019 23:51:00 +0000 (UTC) Date: Mon, 11 Nov 2019 23:51:00 +0000 (UTC) From: "QP Hou (Jira)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-5898) alembic command crashes due to typing import path collision MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 QP Hou created AIRFLOW-5898: ------------------------------- Summary: alembic command crashes due to typing import path col= lision 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: =C2=A0 {code:java} File "/Users/qph/Envs/airflow/lib/python3.7/site-packages/typing_extensio= ns.py", line 17, in 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. =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)