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 environment variable #1591

Open
2 tasks done
mercedes-wu-wandb opened this issue Dec 30, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working triage Tasks that need to be triaged

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 Tasks that need to be triaged labels Dec 30, 2024
Copy link

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 [email protected].

@dbeatty10 dbeatty10 changed the title [Bug] MetricFlow doesn't support DBT_PROJECT_DIR [Bug] MetricFlow doesn't support DBT_PROJECT_DIR environment variable Jan 10, 2025
@dbeatty10
Copy link
Contributor

Thanks for reaching out @mercedes-wu-wandb!

I'm going to transfer this issue to the metricflow repository for follow-up by another member of our team.

@dbeatty10 dbeatty10 transferred this issue from dbt-labs/dbt-core Jan 10, 2025
@dbeatty10
Copy link
Contributor

Transferred from https://github.com/dbt-labs/dbt-core/issues/11179 to #1591.

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 Tasks that need to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants