question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not execute query, because the Python bridge has not been initalized. If the issue persists, please open a Github issue.

See original GitHub issue

Expected behavior

A query is able to be run, or a model is able to be generated when clicking the “Generate model” button in a .yml file.

Actual behavior

The following error occurs, even after following all setup instructions, including having the correct python interpreter installed, and being able to run dbt commands within the virtualenv.

Could not execute query, because the Python bridge has not been initalized. If the issue persists, please open a Github issue.

Steps To Reproduce

  1. Install dbt Power User extension within a dbt environment on MacOS.
  2. Create a python virtual environment (In my case, I am using poetry)
  3. Install dbt using poetry.
  4. Select the Python interpreter to use your newly created venv
  5. Attempt to “Generate model” from .yml file or run a SQL script

Log output/Screenshots

image

Operating System

Mac OS Monterry

dbt version

1.3.1

dbt Adapter

bigquery 1.3.0

dbt Power User version

0.10.1

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
mdesmetcommented, Dec 10, 2022

I wasn’t aware about that change in dbt core. That is probably the reason. I’ll do a fix tomorrow.

1reaction
Pierre-Semaancommented, Dec 16, 2022

I’m still seeing this, and I’m on v0.10.3. I no longer see the generate models option, and get this error when hitting “cmd” + “enter”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · innoverio/vscode-dbt-power-user
Could not execute query, because the Python bridge has not been initalized. If the issue persists, please open a Github issue. bug Something...
Read more >
"DBT is not installed" - issue that may come up for users ...
Hi, For some reason, my VS Code bar is saying "dbt is not installed" in my terminal due to the dbt power user...
Read more >
Error requesting from the bridge · Issue #350
Problem only with the hue group node. It feels like the HUE Bridge is not coping properly with the id for the v1....
Read more >
"Upgrade button" fails · Issue #105 · innoverio/vscode-dbt ...
Clicking the "Upgrade" button that dbt power user presents when it detects an ... python setup.py egg_info did not run successfully.
Read more >
[Bug] Hydra resolver does not work in compose_api #2017
Bug Description hydra:key substitution does not work in interactive Python session and Jupyter notebook. hydra.key does, but it is not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found