fix(components): use default python version for launching dataflow jobs. Fixes #2601 (#4583)

This commit is contained in:
Ahmet Altay 2020-10-07 01:34:42 -07:00 committed by GitHub
parent c8ce4fa9fb
commit a013edc03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def _prepare_cmd(project_id, python_file_path, args, staging_location):
'--project', project_id]
if staging_location:
dataflow_args += ['--staging_location', staging_location, '--temp_location', staging_location]
return (['python2', '-u', python_file_path] +
return (['python', '-u', python_file_path] +
dataflow_args + args)
def _extract_job_id_and_location(line):
@ -114,4 +114,4 @@ def _install_requirements(requirements_file_path):
if not requirements_file_path:
return
requirements_file_path = stage_file(requirements_file_path)
subprocess.check_call(['pip2', 'install', '-r', requirements_file_path])
subprocess.check_call(['pip', 'install', '-r', requirements_file_path])