Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit f0467cb

Browse files
silviulicaaaltay
authored andcommitted
Add a warning if trying to run on anything but Python 2.7
----Release Notes---- [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121849170
1 parent 8809b6f commit f0467cb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

google/cloud/dataflow/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@
6060
"""
6161

6262

63+
import sys
64+
65+
66+
if sys.version_info.major != 2:
67+
raise RuntimeError(
68+
'Dataflow SDK for Python is supported only on Python 2.7. '
69+
'It is not supported on Python [%s].' % sys.version)
70+
71+
6372
import google.cloud.dataflow.internal.pickler
6473

6574
from google.cloud.dataflow import coders

0 commit comments

Comments
 (0)