airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Ustyantsev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-202) Stray 'print' line deep_copy leads to errors with non-ascii encodings
Date Wed, 01 Jun 2016 09:17:59 GMT
Alexey Ustyantsev created AIRFLOW-202:
-----------------------------------------

             Summary: Stray 'print' line deep_copy leads to errors with non-ascii encodings
                 Key: AIRFLOW-202
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-202
             Project: Apache Airflow
          Issue Type: Bug
          Components: core
    Affects Versions: Airflow 1.7.1
            Reporter: Alexey Ustyantsev


Erros like: 
{code}
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: last_loaded V: 2016-05-31 14:34:36.313699
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: concurrency V: 16
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: is_subdag V: False
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: parent_dag V: None
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: default_args V: {'retries': 3, 'email_on_retry':
False, 'email_on_failure': True, 'wait_for_downstream': False, 'owner': 'Alexey Ustyantsev',
'depends_on_past': False, 'start_date': datetime.datetime(2016, 5, 30, 0, 0), 'pool': 'main_pool',
'email': ['a.ustyantsev@corp.mail.ru']}
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: start_date V: None
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: dag_id V: calculate_events_aggregation
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: max_active_runs V: 16
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: K: end_date V: None
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: [2016-05-31 14:36:37,046] {app.py:1423}
ERROR - Exception on /admin/airflow/clear [GET]
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: Traceback (most recent call last):
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     response = self.full_dispatch_request()
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     rv = self.handle_user_exception(e)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     reraise(exc_type, exc_value, tb)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     rv = self.dispatch_request()
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return self.view_functions[rule.endpoint](**req.view_args)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask_admin/base.py",
line 68, in inner
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return self._run_view(f, *args,
**kwargs)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask_admin/base.py",
line 367, in _run_view
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return fn(self, *args, **kwargs)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/flask_login.py",
line 755, in decorated_view
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return func(*args, **kwargs)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/www/utils.py",
line 118, in wrapper
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return f(*args, **kwargs)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/www/utils.py",
line 167, in wrapper
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     return f(*args, **kwargs)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/www/views.py",
line 1017, in clear
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     include_upstream=upstream)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/models.py",
line 2870, in sub_dag
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     dag = copy.deepcopy(self)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/lib/python2.7/copy.py",
line 174, in deepcopy
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     y = copier(memo)
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:   File "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/models.py",
line 2855, in __deepcopy__
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver:     print("K: {} V: {}".format(k, v))
May 31 14:36:37 stat-ko-oprstatdb02 airflow_webserver: UnicodeEncodeError: 'ascii' codec can't
encode characters in position 14-20: ordinal not in range(128)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message