Comments (5)
Also seems like dbt 1.7 behavoiour might of changed. When I have any form dependancy I get the below error:
from astronomer-cosmos.
Update think I found the issue the issue is caused when the create symlinks it deliberately ignores the dbt_packages folder as part of the project.py script. I think if we set dbt_deps to false then by default it should syslink the dbt_packages folder.
from astronomer-cosmos.
🤖
Hello @DanMawdsleyBA,
I'm Dosu, a friendly bot here to assist you with your issues, answer questions, and guide you in contributing to the Cosmos project. While we wait for a human maintainer, feel free to ask me anything related to the repository. Let's get your problem sorted!
Based on a similar issue I found in the Cosmos repository, you can configure Cosmos to recognize preinstalled packages from your CI/CD pipeline by setting the RenderConfig.dbt_deps
to False
when initializing the DbtGraph
class. This will prevent Cosmos from rerunning the dbt deps
command. Here's an example:
from cosmos.config import RenderConfig, ProjectConfig, ExecutionConfig, ProfileConfig
from cosmos.dbt.graph import DbtGraph
# Initialize the configs
render_config = RenderConfig(dbt_deps=False) # Set dbt_deps to False
project_config = ProjectConfig(...) # Fill in the necessary details
execution_config = ExecutionConfig(...) # Fill in the necessary details
profile_config = ProfileConfig(...) # Fill in the necessary details
# Initialize the DbtGraph
dbt_graph = DbtGraph(
project=project_config,
render_config=render_config,
execution_config=execution_config,
profile_config=profile_config
)
# Load the dbt project
dbt_graph.load(...)
Please replace the ...
with the necessary details for your project. You can find more details about this in the DbtGraph class.
However, it seems like Cosmos might not be handling the copying of the dbt_packages
folder. You might need to manually ensure that the dbt_packages
folder is present in the correct location for Cosmos to recognize it. I wasn't able to find specific details on how Cosmos handles the dbt_packages
folder during the execution of the DAGs and Task Groups within the repository.
I hope this helps! If you have any more questions or need further clarification, feel free to ask.
Sources
from astronomer-cosmos.
I have already set the deps flag to False. I can see the cosmos recognizes the original folder and can see the dbt_packages. I think it might be something to do with the temp directory. Any ideas what might be the issue @tatiana happy to implement a fix for this
from astronomer-cosmos.
Just read this, @DanMawdsleyBA, yes - I think it is a good assumption. Thanks for the PR!
from astronomer-cosmos.
Related Issues (20)
- Decouple `LoadMode.AUTOMATIC` from `load()` method in `DbtGraph`
- Cosmos tasks randomly getting marked as zombie tasks HOT 3
- Fix hard to read AirflowException error logs from dbt command HOT 2
- bug please help me this is my project (ubuntu) HOT 6
- Permission issue with Cosmos cache in some restricted environments HOT 2
- [Bug]: Trial Issue using Bug report template HOT 1
- This a new feature request using Feature request Issue template HOT 1
- Link to dbt docs from task HOT 1
- [Cosmos CI] 2.7 unit tests taking a long time to run
- Remove dependency on Pydantic
- Improve how we authorise non-commiters to run Cosmos integration tests
- New Features
- Support docs generated with `dbt docs generate --static`
- Test task is generated though it is not defined HOT 2
- Reduce task queueing latency when using Cosmos HOT 5
- Emit Airflow metrics to support analysing Cosmos performance HOT 2
- `LoadMode.AUTOMATIC` does not seem to work as documented HOT 4
- Using EMR transient cluster with Cosmos HOT 1
- AthenaAccessKeyProfileMapping does not work as expected locally HOT 3
- [Bug] cosmos 1.4.1 does not create virtualenv when using `ExecutionMode.VIRTUALENV` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astronomer-cosmos.