Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIRFLOW-2266] Resolve gcp_api installation for Python 3 #3273

Closed
wants to merge 1 commit into from

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Apr 27, 2018

Make sure you have checked all steps below.

JIRA

Description

  • Here are some details about my PR, including screenshots of any UI changes:
    This is caused due to the fact that the latest release (2.4) for apache-beam[gcp] is not available for Python 3.x. Also as we are using Google's discovery-based API for all google cloud related commands we don't require to import google-cloud-dataflow package
  • More information about the same issue over here: https://stackoverflow.com/questions/49047778/airflow-installation-failure-beamgcp

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:
    N/A

Commits

  • My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

  • Passes git diff upstream/master -u -- "*.py" | flake8 --diff

@kaxil kaxil force-pushed the patch-3 branch 3 times, most recently from 3ad4289 to c24ec97 Compare April 28, 2018 00:12
@kaxil
Copy link
Member Author

kaxil commented Apr 28, 2018

@fenglu-g Can you please take a look at this? I have removed the dataflow dependency as we discussed in the other thread. (#2388 (comment))

@kaxil
Copy link
Member Author

kaxil commented Apr 28, 2018

cc @Fokko PTAL

@bolkedebruin
Copy link
Contributor

@kaxil please have a look at why the builds fail

@fenglu-g
Copy link
Contributor

LGTM on the google-data-flow library removal.

@kaxil
Copy link
Member Author

kaxil commented Apr 28, 2018

@bolkedebruin The errors are related to Flask (new version breaks Airflow Webserver - [AIRFLOW-2384]) and should be resolved once #3272 is merged to master.

@Fokko
Copy link
Contributor

Fokko commented Apr 28, 2018

Please rebase onto master. Thanks for picking this up. This will make @NielsZeilemaker happy :-)

Python 3 support is addressed in this ticket: https://issues.apache.org/jira/browse/BEAM-1251

This is caused due to the fact that the latest release (2.4) for apache-beam[gcp] is not available for Python 3.x. Also as we are using Google's discovery based API for all google cloud related commands we don't require to import google-cloud-dataflow package
@kaxil
Copy link
Member Author

kaxil commented Apr 28, 2018

Done. Actually, I gave a tutorial on "Apache Airflow in the cloud" @ PyData London where some users who used Python3 had trouble installing Airflow with gcp_api extras.

So, I was looking into it and found this :)

@codecov-io
Copy link

Codecov Report

Merging #3273 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3273   +/-   ##
=======================================
  Coverage   75.78%   75.78%           
=======================================
  Files         197      197           
  Lines       14699    14699           
=======================================
  Hits        11139    11139           
  Misses       3560     3560

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 840930b...77a9997. Read the comment docs.

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaxil awesome! Thanks!

@asfgit asfgit closed this in e9b74b6 Apr 28, 2018
asfgit pushed a commit that referenced this pull request Apr 28, 2018
This is caused due to the fact that the latest
release (2.4) for apache-beam[gcp] is not
available for Python 3.x. Also as we are using
Google's discovery based API for all google cloud
related commands we don't require to import
google-cloud-dataflow package

Closes #3273 from kaxil/patch-3

(cherry picked from commit e9b74b6)
Signed-off-by: Fokko Driesprong <fokkodriesprong@godatadriven.com>
@kaxil kaxil deleted the patch-3 branch April 28, 2018 19:39
aliceabe pushed a commit to aliceabe/incubator-airflow that referenced this pull request Jan 3, 2019
This is caused due to the fact that the latest
release (2.4) for apache-beam[gcp] is not
available for Python 3.x. Also as we are using
Google's discovery based API for all google cloud
related commands we don't require to import
google-cloud-dataflow package

Closes apache#3273 from kaxil/patch-3
@@ -206,8 +205,7 @@ def write_version(filename=os.path.join(*['airflow',
# Snakebite & Google Cloud Dataflow are not Python 3 compatible :'(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also update a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants