Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I have followed the guide on dbt and Data Workflow (https://learn.microsoft.com/en-us/fabric/data-factory/data-workflows-dbt-fabric). While the tutorial offered is slightly inaccurate, you need to add
from airflow import DAG
before the UI recognises the file as a DAG. Okay, minor issue, it's in preview.
So I adapted my own existing (and working fine) dbt solution into a dags project following the structure on (https://learn.microsoft.com/en-us/fabric/data-factory/data-workflows-sync-git-repo) this page.
After conifguring Data Workflow to sync with my Github repo it throws me the error
ModuleNotFoundError: No module named 'cosmos'
I did add this to the dags/requirements.txt file
astronomer-cosmos==1.5.0
dbt-fabric==1.8.7
The error is really fast. I have the idea it's not even trying to read my requirements.txt file there.
This is my folder structure in the repo
What am I missing?
Thanks in advance
Hi @Kobe_Lenjou
The following suggestions are for your reference:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
59 | |
32 | |
30 | |
29 | |
23 |
User | Count |
---|---|
48 | |
46 | |
23 | |
14 | |
12 |