Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Kobe_Lenjou
New Member

Data Workflow - Ignoring requirements.txt

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 

Kobe_Lenjou_0-1720978373883.png

 


What am I missing?
Thanks in advance

1 REPLY 1
v-xuxinyi-msft
Community Support
Community Support

Hi @Kobe_Lenjou 

 

The following suggestions are for your reference:

 

  • Make sure your requirements.txt file is in the correct directory, it should be located in the root of the dags folder.
  • Ensure that there are no spelling errors or formatting problems in the requirements.txt file.

 

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.