Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9D06C200D27 for ; Wed, 25 Oct 2017 18:47:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B5F2160BDA; Wed, 25 Oct 2017 16:47:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0EBA1609CE for ; Wed, 25 Oct 2017 18:47:57 +0200 (CEST) Received: (qmail 28910 invoked by uid 500); 25 Oct 2017 16:47:57 -0000 Mailing-List: contact dev-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list dev@airflow.incubator.apache.org Received: (qmail 28899 invoked by uid 99); 25 Oct 2017 16:47:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 16:47:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2CC58C44AB for ; Wed, 25 Oct 2017 16:47:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RRaLPgvY8Onq for ; Wed, 25 Oct 2017 16:47:55 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 82AD55FB9F for ; Wed, 25 Oct 2017 16:47:53 +0000 (UTC) Received: (qmail 28896 invoked by uid 99); 25 Oct 2017 16:47:53 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 16:47:53 +0000 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 742151A023B for ; Wed, 25 Oct 2017 16:47:50 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id v9so1060851oif.13 for ; Wed, 25 Oct 2017 09:47:50 -0700 (PDT) X-Gm-Message-State: AMCzsaVkeNNFN6PrW9OOqPIHD75Dsq7LIfTVoaef4aTQ68wQ6bavxunI M3gvQpizygj3MRK3jiJVT4JnC2xnj36ince8I5Q= X-Google-Smtp-Source: ABhQp+S+zyko+2hLmmeOrSzeSeE+bcG9JZbZLeSuCW0bptxMj3cjKt3Gs/d9prPR6DZENKHY0UXwmbZPjQHQcjz4qZE= X-Received: by 10.202.80.197 with SMTP id e188mr1356692oib.12.1508950068056; Wed, 25 Oct 2017 09:47:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.108.71 with HTTP; Wed, 25 Oct 2017 09:47:47 -0700 (PDT) In-Reply-To: References: <2B5CDACF-4281-4D93-AD8B-754FC49F3434@firemirror.com> From: Chris Riccomini Date: Wed, 25 Oct 2017 09:47:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ImportError: No module named sendgrid To: dev@airflow.incubator.apache.org Cc: sumeet.manit@gmail.com, Bolke de Bruin Content-Type: multipart/alternative; boundary="001a113b06daca8c58055c61d01b" archived-at: Wed, 25 Oct 2017 16:47:58 -0000 --001a113b06daca8c58055c61d01b Content-Type: text/plain; charset="UTF-8" Let's do it as a plugin. I merged it. On Wed, Oct 25, 2017 at 9:20 AM, Feng Lu wrote: > Sorry for the glitch. > > I am the author of this commit, I agree that if sendgrid is not used, it > doesn't need to be installed. > That being said, I can submit a quick fix to dynamically load this module. > > Re: core vs plugin, I feel it really depends on whether the sendgrid email > integration is needed by > users other than us. As I mentioned in the corresponding JIRA issue, the > other email alternative > in Airflow is SMTP, which requires username + password in plaintext (and > these are not easily revokable). > > On the contrast, the current sendgrid integration in Airflow only needs an > API key, which supports > fine-grained permission control and can be easily revoked. > > > > On Wed, Oct 25, 2017 at 4:27 AM, Bolke de Bruin wrote: > > > Code gets reviewed by a committer other than the author of the code. > > Merging can happen by either. > > > > I also agree that the sendgrid dependency should be reverted and made > into > > a plugin instead. > > > > Bolke > > > > > On 25 Oct 2017, at 11:07, Ash Berlin-Taylor > > com> wrote: > > > > > > 1. PRs generally aren't "approved" in Github if a core contributor > looks > > at it and is happy > > > 2. It was merged by criccomini, not the opener > > https://github.com/apache/incubator-airflow/commit/ > > 7cb818bbacb2a2695282471591a9e323d8efbf5c > incubator-airflow/commit/7cb818bbacb2a2695282471591a9e323d8efbf5c> > > > 3, 4, 5. I agree, and I made the same point https://issues.apache.org/ > > jira/browse/AIRFLOW-1723 > jira/browse/AIRFLOW-1723> > > > > > > Either way this is a bug that it always tries to import unconditionally > > and fails when the sendgrid mailer isn't used. > > > > > >> On 25 Oct 2017, at 09:48, Sumit Maheshwari > > wrote: > > >> > > >> Sorry, mistakenly sent halfbaked: > > >> > > >> So, the concerns are: > > >> > > >> 1. Don't see any approver on the PR, neither +1s. > > >> 2. The PR author and PR merging guy seem to be same, which I think is > > >> against the general understanding. > > >> 3. Why sendgrid got special privileges, and why not 100s of other mail > > >> services? The Same concern was raised by Ash in JIRA as well. > > >> 4. Why it was not coded as a plugin. > > >> 5. Why there is a hard dependency to install Sendgrid module if I am > not > > >> using it. > > >> > > >> I think this commit needs to be reverted and a new PR should be > raised, > > >> which adds its as a plugin instead of a core feature. > > >> > > >> > > >> > > >> On Wed, Oct 25, 2017 at 2:12 PM, Sumit Maheshwari < > > sumeet.manit@gmail.com> > > >> wrote: > > >> > > >>> When I fetched the latest master, installed it and ran webserver, it > > >>> failed with this error: > > >>> > > >>> *ImportError: No module named sendgrid* > > >>> > > >>> On further investigation, I found that it has been introduced as part > > of > > >>> this PR and > > this > > >>> JIRA . > > >>> Now couple of doubts: > > >>> > > >>> 1. > > >>> > > >>> > > >>> > > >>> > > >>> Thanks, > > >>> Sumit Maheshwari > > >>> cell. 9632202950 > > >>> > > >>> > > > > > > > > --001a113b06daca8c58055c61d01b--