Skip to content
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

Bring dbt setup instructions up to date #245

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

jeancochrane
Copy link
Contributor

While pairing on dbt setup with Damon, I noticed a couple of outdated sections in the README. This PR tweaks those sections so that the setup instructions work as written.

@jeancochrane jeancochrane force-pushed the jeancochrane/update-dbt-setup-instructions branch from e7ecb64 to 9bf4baa Compare November 22, 2023 18:52
@@ -128,6 +128,7 @@ Run the following commands in this directory:
```
python3 -m venv venv
source venv/bin/activate
pip install -U pip
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Older versions of pip are subject to a known bug that prevents packages from installing correctly:

$ pip install -r requirements.txt
...
ERROR: Exception:
Traceback (most recent call last):
  File "/home/jecochr/code/data-architecture/dbt/new-venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/jecochr/code/data-architecture/dbt/new-venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/home/jecochr/code/data-architecture/dbt/new-venv/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 389, in run
    to_install = resolver.get_installation_order(requirement_set)
  File "/home/jecochr/code/data-architecture/dbt/new-venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 188, in get_installation_order
    weights = get_topological_weights(
  File "/home/jecochr/code/data-architecture/dbt/new-venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 276, in get_topological_weights
    assert len(weights) == expected_node_count
AssertionError

Making sure pip is up to date with the latest version in the virtualenv resolves this bug.

@@ -256,13 +257,13 @@ dbt test --select default.vw_pin_universe
Run only one test:

```
dbt test --select vw_pin_universe_unique_by_14_digit_pin_and_year
dbt test --select default_vw_pin_universe_unique_by_14_digit_pin_and_year
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test got renamed in #236.

@jeancochrane jeancochrane marked this pull request as ready for review November 24, 2023 19:36
@jeancochrane jeancochrane requested a review from a team as a code owner November 24, 2023 19:36
@jeancochrane jeancochrane requested a review from dfsnow November 24, 2023 19:36
Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @jeancochrane!

@dfsnow dfsnow merged commit e854b24 into master Nov 27, 2023
6 checks passed
@dfsnow dfsnow deleted the jeancochrane/update-dbt-setup-instructions branch November 27, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants