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 2021/04/20 00:58:43 UTC

[GitHub] [airflow] LsYueh edited a comment on issue #15354: Error on DAG deletion : AttributeError: type object 'Base' has no attribute '_decl_class_registry'

LsYueh edited a comment on issue #15354:
URL: https://github.com/apache/airflow/issues/15354#issuecomment-822890280


   Same issue while use the CLI.
   
   **Apache Airflow version**: 2.0.1
   
   
   **Environment**:
   
   - **OS**: CentOS 7.9.2009
   - **Kernel**: Linux 3.10.0-1160.24.1.el7.x86_64
   - **Install tools**: pip 21.0.1
   - **Others**: PostgreSQL-12态Python 3.6.8
   
   - **Installed Packages in Python**: [requirements.txt](https://github.com/apache/airflow/files/6339859/requirements.txt)
   
   **What happened**:
   ```console
   Traceback (most recent call last):
     File "/home/devel/env-airflow/bin/airflow", line 8, in <module>
       sys.exit(main())
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/__main__.py", line 40, in main
       args.func(args)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/cli/cli_parser.py", line 48, in command
       return func(*args, **kwargs)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/utils/cli.py", line 89, in wrapper
       return f(*args, **kwargs)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/cli/commands/dag_command.py", line 143, in dag_delete
       message = api_client.delete_dag(dag_id=args.dag_id)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/api/client/local_client.py", line 35, in delete_dag
       count = delete_dag.delete_dag(dag_id)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/utils/session.py", line 65, in wrapper
       return func(*args, session=session, **kwargs)
     File "/home/devel/env-airflow/lib64/python3.6/site-packages/airflow/api/common/experimental/delete_dag.py", line 54, in delete_dag
       for model in models.base.Base._decl_class_registry.values():  # noqa pylint: disable=protected-access
   AttributeError: type object 'Base' has no attribute '_decl_class_registry'
   ```
   


-- 
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:
users@infra.apache.org