Skip to content

[Bug] "dbt deps" fails with ModuleNotFoundError: No module named 'pytz' #75

Closed
@heiderich

Description

@heiderich

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After installting dbt-oracle 1.4.0 I get the following error when running
dbt deps:

Traceback (most recent call last):
  File "/usr/local/bin/dbt", line 5, in <module>
    from dbt.main import main
  File "/usr/local/lib/python3.10/site-packages/dbt/main.py", line 24, in <module>
    import dbt.task.build as build_task
  File "/usr/local/lib/python3.10/site-packages/dbt/task/build.py", line 1, in <module>
    from .run import RunTask, ModelRunner as run_model_runner
  File "/usr/local/lib/python3.10/site-packages/dbt/task/run.py", line 8, in <module>
    from .compile import CompileRunner, CompileTask
  File "/usr/local/lib/python3.10/site-packages/dbt/task/compile.py", line 4, in <module>
    from .runnable import GraphRunnableTask
  File "/usr/local/lib/python3.10/site-packages/dbt/task/runnable.py", line 11, in <module>
    from .printer import (
  File "/usr/local/lib/python3.10/site-packages/dbt/task/printer.py", line 22, in <module>
    from dbt.tracking import InvocationProcessor
  File "/usr/local/lib/python3.10/site-packages/dbt/tracking.py", line 26, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'
The command '/bin/sh -c dbt deps' returned a non-zero code: 1

Expected Behavior

No response

Steps To Reproduce

Copy

FROM python:3.10
RUN pip install --upgrade pip
RUN pip install dbt-oracle==1.4.0
RUN dbt deps

into a file Dockerfile in an otherwise empty directory and run docker build .

Relevant log output using --debug flag enabled

No response

Environment

- OS: Linux
- Python: 3.10
- dbt: 1.4.0

What Oracle database version are you using dbt with?

No response

Additional Context

This was actually a bug in dbt-core (dbt-labs/dbt-core#7075), which is fixed in dbt-core 1.4.4.

Suggestion: Can you loosen the hard dependency on dbt-core 1.4.0 or replace it by dbt-core 1.4.4?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions