Giter VIP home page Giter VIP logo

Comments (3)

dosubot avatar dosubot commented on June 12, 2024 3

🤖

Hello @Lee2532,

I'm Dosu, a friendly bot here to assist you with your Cosmos repository questions and issues. I can help you troubleshoot bugs, answer queries, and guide you to become a contributor while you're waiting for a human maintainer. Looking forward to working together!

The issue you're experiencing might be due to the way the paths are set in the ProjectConfig class in Cosmos. In this class, the models_path, seeds_path, and snapshots_path are set relative to the dbt_project_path. If the dbt_project_path is not correctly set or if the relative paths are not correctly defined, Cosmos might not be able to find the models or snapshots, leading to issues with the downstream configuration.

Here is the relevant code from the ProjectConfig class:

class ProjectConfig:
    ...
    def __init__(
        self,
        dbt_project_path: str | Path | None = None,
        models_relative_path: str | Path = "models",
        seeds_relative_path: str | Path = "seeds",
        snapshots_relative_path: str | Path = "snapshots",
        manifest_path: str | Path | None = None,
        project_name: str | None = None,
    ):
        ...
        if dbt_project_path:
            self.dbt_project_path = Path(dbt_project_path)
            self.models_path = self.dbt_project_path / Path(models_relative_path)
            self.seeds_path = self.dbt_project_path / Path(seeds_relative_path)
            self.snapshots_path = self.dbt_project_path / Path(snapshots_relative_path)
            ...

Please ensure that the dbt_project_path is correctly set and that the relative paths for the models, seeds, and snapshots directories are correctly defined. If these paths are not correctly set, Cosmos might not be able to find the models or snapshots, leading to issues with the downstream configuration.

You can find this code in the cosmos/config.py file.

If you're still having issues after checking these paths, could you provide more information about the error messages you're seeing or the behavior you're experiencing? This could help in diagnosing the issue.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from astronomer-cosmos.

tatiana avatar tatiana commented on June 12, 2024

@Lee2532 did you consider using path selectors, as described in https://astronomer.github.io/astronomer-cosmos/configuration/selecting-excluding.html?

from astronomer-cosmos.

Lee2532 avatar Lee2532 commented on June 12, 2024

it works Thanks

from astronomer-cosmos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.