Dev-iL opened a new issue, #48859:
URL: https://github.com/apache/airflow/issues/48859

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Running a DagBag unit test raises the following:
   
   ```none
   ERROR    airflow.models.dagbag.DagBag:dagbag.py:394 Failed to import: ....
       from airflow.providers.common.sql.operators.sql import 
SQLExecuteQueryOperator
     File 
".../.venv300/lib64/python3.12/site-packages/airflow/providers/common/sql/operators/sql.py",
 line 30, in <module>
       from airflow.providers.common.sql.hooks.sql import DbApiHook
     File 
".../.venv300/lib64/python3.12/site-packages/airflow/providers/common/sql/hooks/sql.py",
 line 131, in <module>
       class DbApiHook(BaseHook):
     File 
".../.venv300/lib64/python3.12/site-packages/airflow/providers/common/sql/hooks/sql.py",
 line 162, in DbApiHook
       _dialects: MutableMapping[str, MutableMapping] = resolve_dialects()
                                                        ^^^^^^^^^^^^^^^^^^
     File 
".../.venv300/lib64/python3.12/site-packages/airflow/providers/common/sql/hooks/sql.py",
 line 89, in resolve_dialects
       providers_manager = ProvidersManager()
                           ^^^^^^^^^^^^^^^^^^
     File 
".../.venv300/lib64/python3.12/site-packages/airflow/utils/singleton.py", line 
32, in __call__
       cls._instances[cls] = super().__call__(*args, **kwargs)
   ```
   
   ### What you think should happen instead?
   
   The import should succeed.
   
   ### How to reproduce
   
   ```python
   from airflow.providers.common.sql.operators.sql import 
SQLExecuteQueryOperator
   ```
   
   ### Operating System
   
   Rocky Linux 9.3 (Blue Onyx)
   
   ### Versions of Apache Airflow Providers
   
   ```none
   apache-airflow==3.0.0rc1.post2
   apache-airflow-core==3.0.0rc1.post2
   apache-airflow-providers-amazon==9.5.0rc3
   apache-airflow-providers-common-compat==1.6.0
   apache-airflow-providers-common-io==1.5.2
   apache-airflow-providers-common-sql==1.25.0rc1
   apache-airflow-providers-fab==2.0.0rc3
   apache-airflow-providers-ftp==3.12.3
   apache-airflow-providers-google==15.0.0rc1
   apache-airflow-providers-http==5.2.1
   apache-airflow-providers-openlineage==2.1.2rc2
   apache-airflow-providers-postgres==6.1.2rc1
   apache-airflow-providers-sftp==5.1.2rc1
   apache-airflow-providers-slack==9.0.3
   apache-airflow-providers-smtp==2.0.2
   apache-airflow-providers-sqlite==4.0.1
   apache-airflow-providers-ssh==4.0.1
   apache-airflow-providers-standard==0.3.0rc1
   apache-airflow-task-sdk==1.0.0rc1
   google-cloud-orchestration-airflow==1.17.3
   ```
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   Airflow Installed via
   
   ```bash
   uv pip install 
"apache-airflow[amazon,cloudpickle,ftp,google,postgres,sftp,smtp,slack,virtualenv]"
 apache-airflow-providers-standard==0.3.0rc1 --pre
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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-unsubscr...@airflow.apache.org.apache.org

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

Reply via email to