[ https://issues.apache.org/jira/browse/AIRFLOW-4296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhongjiajie resolved AIRFLOW-4296. ---------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 > Remove py2 in ci process > ------------------------- > > Key: AIRFLOW-4296 > URL: https://issues.apache.org/jira/browse/AIRFLOW-4296 > Project: Apache Airflow > Issue Type: Sub-task > Components: ci > Affects Versions: 1.10.2 > Reporter: zhongjiajie > Assignee: zhongjiajie > Priority: Major > Labels: patch > Fix For: 2.0.0 > > > We still have py2 in our CI process, and this will cause error when in AIP-3 > PR, we should remove that > > +Even+ though sub-task-1 merge, still error like below > {code:java} > Traceback (most recent call last): > File "/usr/local/bin/airflow", line 21, in <module> > from airflow import configuration > File "/usr/local/lib/python2.7/dist-packages/airflow/__init__.py", line 36, > in <module> > from airflow import settings, configuration as conf > File "/usr/local/lib/python2.7/dist-packages/airflow/settings.py", line 32, > in <module> > from airflow.utils.sqlalchemy import setup_event_handlers > File "/usr/local/lib/python2.7/dist-packages/airflow/utils/sqlalchemy.py", > line 22, in <module> > import json > File "/usr/local/lib/python2.7/dist-packages/airflow/utils/json.py", line > 27, in <module> > class AirflowJsonEncoder(json.JSONEncoder): > AttributeError: 'module' object has no attribute 'JSONEncoder' > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)