Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'FieldLoggingDict' object has no attribute '_obj' #19

Open
irustam opened this issue Sep 25, 2024 · 0 comments
Open

AttributeError: 'FieldLoggingDict' object has no attribute '_obj' #19

irustam opened this issue Sep 25, 2024 · 0 comments

Comments

@irustam
Copy link

irustam commented Sep 25, 2024

В версии 2.8 при серриализации и потом десерриализации объектов с тикетами (типа <Resource /v2/issues/XXX-40069>) возникает ошибка AttributeError. В версии 2.7 такой ошибки нет.

Например, при использовании pickle:

Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/taskinstance.py", line 465, in _execute_task
result = _execute_callable(context=context, **execute_callable_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/taskinstance.py", line 432, in _execute_callable
return execute_callable(context=context, **execute_callable_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/baseoperator.py", line 400, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/decorators/base.py", line 265, in execute
return_value = super().execute(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/baseoperator.py", line 400, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/operators/python.py", line 235, in execute
return_value = self.execute_callable()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/operators/python.py", line 252, in execute_callable
return self.python_callable(*self.op_args, **self.op_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/airflow/dags/dag_yt_tracker_export_test.py", line 64, in transform_tasks
data = pickle.load(handle)
^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/yandex_tracker_client/objects.py", line 62, in init
self._value = self._process_value(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.12/site-packages/yandex_tracker_client/objects.py", line 74, in _process_value
for field, field_value in six.iteritems(value):
File "", line 894, in iter
File "/home/airflow/.local/lib/python3.12/site-packages/yandex_tracker_client/objects.py", line 35, in getitem
self._obj.log_local_key_usage(key)
^^^^^^^^^
AttributeError: 'FieldLoggingDict' object has no attribute '_obj'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant