You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/23 08:36:42 UTC

[GitHub] [airflow] gitruhul commented on issue #20636: Failed to serialize DAG name': 'str' object has no attribute '__module__'

gitruhul commented on issue #20636:
URL: https://github.com/apache/airflow/issues/20636#issuecomment-1076087065


   I have my custom operators but no variables with the name params. 
   
   But getting this error occasionally:
   
   `Broken DAG: [/opt/airflow/dags/SAMPLE_DAG_USING_PLUGINS.py] Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/serialization/serialized_objects.py", line 578, in serialize_operator
       serialize_op['params'] = cls._serialize_params_dict(op.params)
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/serialization/serialized_objects.py", line 451, in _serialize_params_dict
       if f'{v.__module__}.{v.__class__.__name__}' == 'airflow.models.param.Param':
   AttributeError: 'dict' object has no attribute '__module__'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/serialization/serialized_objects.py", line 939, in to_dict
       json_dict = {"__version": cls.SERIALIZER_VERSION, "dag": cls.serialize_dag(var)}
     File "/home/airflow/.local/lib/python3.7/site-packages/airflow/serialization/serialized_objects.py", line 851, in serialize_dag
       raise SerializationError(f'Failed to serialize DAG {dag.dag_id!r}: {e}')
   airflow.exceptions.SerializationError: Failed to serialize DAG 'SAMPLE_DAG_USING_PLUGINS': 'dict' object has no attribute '__module__'`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org