zhongjiajie commented on issue #5019: [AIRFLOW-4199][AIP-3-step3] Remove all 
sys version info
URL: https://github.com/apache/airflow/pull/5019#issuecomment-482606805
 
 
   Same Issue as https://github.com/apache/airflow/pull/5020, I submit a PR 
https://github.com/apache/airflow/pull/5090 to fix this
   
   raise error in CI process
   
   ```py
   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 
35, in <module>
       from airflow.configuration import conf, AIRFLOW_HOME, WEBSERVER_CONFIG  
# NOQA F401
     File "/usr/local/lib/python2.7/dist-packages/airflow/configuration.py", 
line 108, in <module>
       DEFAULT_CONFIG = _read_default_config_file('default_airflow.cfg')
     File "/usr/local/lib/python2.7/dist-packages/airflow/configuration.py", 
line 104, in _read_default_config_file
       with open(file_path, encoding='utf-8') as f:
   TypeError: 'encoding' is an invalid keyword argument for this function
   ```
   
   because python2 have not keyword in `open` function

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to