tanzeel291994 opened a new issue, #51712:
URL: https://github.com/apache/airflow/issues/51712

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   to use below import 
   `from airflow.providers.databricks.operators.databricks import 
DatabricksRunNowOperator`
   below packages 
   `apache-airflow-providers-databricks>=7.0.0
   apache-airflow-providers-fab>=2.0.0`
   
   give the error of 'ModuleNotFoundError: No module named 
'airflow.providers.fab.www''
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   requirements.txt 
   `apache-airflow-providers-microsoft-azure
   azure-identity
   azure-appconfiguration
   python-dotenv
   apache-airflow-providers-databricks>=7.0.0
   apache-airflow-providers-fab>=2.0.0`
   
   docker file 
   `FROM astrocrpublic.azurecr.io/runtime:3.0-2
   USER root
   COPY requirements.txt /usr/local/airflow/requirements.txt
   RUN pip install --no-cache-dir -r /usr/local/airflow/requirements.txt
   USER astro`
   
   dag 
   `from airflow.providers.databricks.operators.databricks import 
DatabricksRunNowOperator
    DatabricksRunNowOperator(
           task_id='databricks_daily_run_with_freshness',
           databricks_conn_id='databricks_default',
           job_id='278132898429340', 
           polling_period_seconds=30,
           dag=dag,
       )
   `
   
   get import dag error as below 
   
   `/usr/local/airflow/dags/subdag.py
   Timestamp: 2025-06-14, 00:59:49
   
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.12/site-packages/airflow/providers/databricks/operators/databricks_workflow.py",
 line 31, in <module>
       from airflow.providers.databricks.plugins.databricks_workflow import (
     File 
"/usr/local/lib/python3.12/site-packages/airflow/providers/databricks/plugins/databricks_workflow.py",
 line 39, in <module>
       from airflow.providers.fab.www import auth
   ModuleNotFoundError: No module named 'airflow.providers.fab.www'`
   
   using astro cli for deploeyming aiflow in container 
   astro dev stop 
   astro dev start --no-cache
   
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   _No response_
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to