You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry run dbt compile --profiles-dir /path/to/profiles --target mytarget
Relevant log output
10:56:40 Running with dbt=1.6.6
10:56:40 Encountered an error:
cannot import name 'POLLING_PREDICATE' from 'google.api_core.future.polling' (/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/google/api_core/future/polling.py)
10:56:40 Traceback (most recent call last):
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/cli/requires.py", line 87, in wrapper
result, success = func(*args, **kwargs)
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/cli/requires.py", line 72, in wrapper
return func(*args, **kwargs)
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/cli/requires.py", line 140, in wrapper
profile = load_profile(flags.PROJECT_DIR, flags.VARS, flags.PROFILE, flags.TARGET, threads)
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/config/runtime.py", line 70, in load_profile
profile = Profile.render(
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/config/profile.py", line 436, in render
return cls.from_raw_profiles(
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/config/profile.py", line 401, in from_raw_profiles
return cls.from_raw_profile_info(
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/config/profile.py", line 355, in from_raw_profile_info
credentials: Credentials = cls._credentials_from_profile(
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/config/profile.py", line 165, in _credentials_from_profile
cls = load_plugin(typename)
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/adapters/factory.py", line 212, in load_plugin
return FACTORY.load_plugin(name)
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/adapters/factory.py", line 58, in load_plugin
mod: Any = import_module("." + name, "dbt.adapters")
File "/usr/local/Cellar/[email protected]/3.8.18/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/adapters/bigquery/__init__.py", line 5, in<module>
from dbt.adapters.bigquery.impl import BigQueryAdapter, GrantTarget, PartitionConfig # noqa
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/adapters/bigquery/impl.py", line 32, in<module>
from dbt.adapters.bigquery.python_submissions import (
File "/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/dbt/adapters/bigquery/python_submissions.py", line 4, in<module>
from google.api_core.future.polling import POLLING_PREDICATE
ImportError: cannot import name 'POLLING_PREDICATE' from 'google.api_core.future.polling' (/Users/gmyrianthous/virtualenvs/analytics-venv/lib/python3.8/site-packages/google/api_core/future/polling.py)
github-actionsbot
changed the title
[Bug] dbt operations failing with ImportError: cannot import name 'POLLING_PREDICATE' from 'google.api_core.future.polling
[ADAP-958] [Bug] dbt operations failing with ImportError: cannot import name 'POLLING_PREDICATE' from 'google.api_core.future.polling
Oct 25, 2023
Is this a new bug in dbt-bigquery?
Current Behavior
When trying to run dbt operations with dbt-core/bigquery 1.6.0+, I get the following error:
Expected Behavior
I would expect dbt operations to run without raising any exceptions.
Steps To Reproduce
pyproject.toml
file as follows:dbt compile
within the poetry environmentRelevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: