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
A clear and concise description of what the bug is.
How to reproduce the bug
Observe that the import in bigqeuery.py results in a ModuleNotFoundError.
>>> from google.cloud import bigquery
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'google.cloud'
Install google-cloud-core, or any Google SDK which depends on it (except BigQuery):
pip install google-cloud-core
Observe that now the exception has changed to the higher-level ImportError:
>>> from google.cloud import bigquery
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)
Expected results
Missing import exception is caught and Superset loads correctly when Google SDKs have been installed but without BigQuery.
Actual results
Missing import exception is not caught, Superset doesn't load and emits the following error:
{"errors": [{"message": "cannot import name 'bigquery' from 'google.cloud' (unknown location)", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}
A clear and concise description of what the bug is.
How to reproduce the bug
Observe that the import in bigqeuery.py results in a
ModuleNotFoundError
.Install
google-cloud-core
, or any Google SDK which depends on it (except BigQuery):Observe that now the exception has changed to the higher-level
ImportError
:Expected results
Missing import exception is caught and Superset loads correctly when Google SDKs have been installed but without BigQuery.
Actual results
Missing import exception is not caught, Superset doesn't load and emits the following error:
Environment
Superset 0.0.0-dev
, git commit ff95d0fPython 3.11.4
v18.13.0
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: