-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2391] [Bug] Following the Python API example.py example raises AttributeError #7312
Comments
Thanks for reporting this @RoiTabach ! I got the same error with essentially the same script as you. Only difference is that it is aimed at the current working directory and using a differently named target: import os
from dbt.cli.main import dbtRunner
from dbt.config.runtime import load_profile, load_project
project_dir = os.getcwd()
profile = load_profile(project_dir, {}, target_override="postgres") In addition to this bug, we're planning on doing the following:
|
We're not ready to contract |
@jtcohen6 Seems you need to also update this pic https://user-images.githubusercontent.com/13897643/211214203-dedeeb98-6128-454a-b678-e7804ca0ccc8.png that's referenced in here dbt-labs/docs.getdbt.com#2674 as well |
Thanks for the heads-up @RoiTabach! Are you seeing that image anywhere else other than in dbt-labs/docs.getdbt.com#2674 ? |
Hi! I had the same issue, I was trying to read the evaluated values from profiles.yml. I'm not expert on dbt but I was just seeing solutions using client but that was "too much" for what I needed. I ended up with this (I'm not proud of myself) solution
as I needed just to read the |
Is this a new bug in dbt-core?
Current Behavior
I'm trying to work with the python APIs in dbt version 1.5, per the given example.py and hitting some error
AttributeError: 'Namespace' object has no attribute 'MACRO_DEBUGGING'
Expected Behavior
Not throw AttributeError, profile getting created properly
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
I tried to comment out the
if
block just to see where I get- got another argparse error-from this row in
.../site-packages/dbt/config/profile.py
The text was updated successfully, but these errors were encountered: