-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-2225] [Bug] Suddenly getting ModuleNotFoundError: No module named 'pytz' #7075
Comments
Workaround I've found is to specify
but ideally dbt should define it's dependencies properly |
Facing this as well went with the same fix. |
If I see correctly it's because of the
I think if dbt uses |
Thanks for the report, all. It sounds like the fix here is to add Separately, we should look into whether we ought to replace |
Don't suppose you could also backport to 1.0? |
@WittierDinosaur we provide critical fixes for minor versions of Core for 1 year from their release date, and v1.0 came out in December 2021 so is no longer covered: https://docs.getdbt.com/docs/dbt-versions/core |
I also had this bug too when trying to install DBT using the Docker file from the DBT site and docker-compose. I found a way to fix it for the moment but I think the bug comes from the Dockerfile. First, you need to use docker with the build kit like this ‘DOCKER_BUILDKIT=1 docker build .’ Then alter the Dockerfile with a simple run command ‘RUN python -m pip install dbt-core’ or any other pip install that you need. |
Is this a new bug in dbt-core?
Current Behavior
I am installing dbt-bigquery with meltano (which installs it in a isolated venv).
Today when invoking
dbt deps
usingmeltano invoke dbt-bigquery:deps
I am getting a stacktrace withExpected Behavior
pytz
should be found. I have noted that it is not included in the requirements. So while it's strange that it suddenly started failing, maybe it was more of an accident that it ever worked in the first place?Steps To Reproduce
With versions specified as
invoking
dbt deps
should not throw a ModuleNotFoundErrorRelevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
No response
The text was updated successfully, but these errors were encountered: