ValBerthe edited a comment on issue #16172:
URL: https://github.com/apache/airflow/issues/16172#issuecomment-857692522


   Downgrading `cattrs` doesn't seem to fix this issue.
   Tried:
   - 1.7.0
   - 1.4.0
   - 1.1.2
   - 1.0.0
   
   Stacktrace :
   
   ```
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.8/dist-packages/airflow/models/taskinstance.py", line 
1137, in _run_raw_task
       self._prepare_and_execute_task_with_callbacks(context, task)
     File 
"/usr/local/lib/python3.8/dist-packages/airflow/models/taskinstance.py", line 
1288, in _prepare_and_execute_task_with_callbacks
       task_copy.pre_execute(context=context)
     File "/usr/local/lib/python3.8/dist-packages/airflow/lineage/__init__.py", 
line 186, in wrapper
       self.inlets = [_render_object(i, context) for i in self.inlets if 
attr.has(i)]
     File "/usr/local/lib/python3.8/dist-packages/airflow/lineage/__init__.py", 
line 186, in <listcomp>
       self.inlets = [_render_object(i, context) for i in self.inlets if 
attr.has(i)]
     File "/usr/local/lib/python3.8/dist-packages/airflow/lineage/__init__.py", 
line 74, in _render_object
       return structure(
     File "/usr/local/lib/python3.8/dist-packages/cattr/converters.py", line 
223, in structure
       # Classes to Python primitives.
     File "", line 8, in structure_NoteBook
     File "/usr/local/lib/python3.8/dist-packages/cattr/converters.py", line 
439, in _structure_union
       # optional with more than one parameter.
     File "/usr/local/lib/python3.8/dist-packages/cattr/dispatch.py", line 47, 
in _dispatch
       return self._function_dispatch.dispatch(cl)
     File "/usr/local/lib/python3.8/dist-packages/cattr/dispatch.py", line 121, 
in dispatch
       return handler(typ)
     File "/usr/local/lib/python3.8/dist-packages/cattr/converters.py", line 
711, in gen_structure_mapping
     File "/usr/local/lib/python3.8/dist-packages/cattr/gen.py", line 353, in 
make_mapping_structure_fn
       val_handler = converter._structure_func.dispatch(val_type)
   ValueError: not enough values to unpack (expected 1, got 0)
   ```


-- 
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:
[email protected]


Reply via email to