Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MetricFlow doesn't support DBT_PROJECT_DIR #11179

Open
2 tasks done
mercedes-wu-wandb opened this issue Dec 30, 2024 · 1 comment
Open
2 tasks done

[Bug] MetricFlow doesn't support DBT_PROJECT_DIR #11179

mercedes-wu-wandb opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@mercedes-wu-wandb
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

commands from dbt project level:
mf health-checks

output:

AttributeError: 'Namespace' object has no attribute 'PROFILES_DIR'

Expected Behavior

✔ Health checks completed.
• ✅ SqlEngine.BIGQUERY - SELECT 1: Success!

Steps To Reproduce

  1. Set up a dbt project with a valid profiles.yml.
  2. Set the DBT_PROJECT_DIR environment variable to point to the project directory:
    export DBT_PROJECT_DIR=/path/to/dbt/project
  3. Set the DBT_PROFILES_DIR environment variable to point to the profiles
    export DBT_PROFILES_DIR=/path/to/profiles/directory
  4. Run the following command from the dbt directory:
    mf health-checks

Relevant log output

No response

Environment

- OS:Darwin Kernel Version 23.6.0
- Python: 3.12.3
- dbt: 1.8.9

Which database adapter are you using with dbt?

bigquery

Additional Context

I am trying to run metricflow on dbt-core

@mercedes-wu-wandb mercedes-wu-wandb added bug Something isn't working triage labels Dec 30, 2024
Copy link
Contributor

Thank you for your bug report! Our team is will be out of the office for Christmas and our Global Week of Rest, from December 25, 2024, through January 3, 2025.

We will review your issue as soon as possible after returning.
Thank you for your understanding, and happy holidays! 🎄🎉

If you are a customer of dbt Cloud, please contact our Customer Support team via the dbt Cloud web interface or email support@dbtlabs.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant