-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
e7ecb64
to
9bf4baa
Compare
@@ -128,6 +128,7 @@ Run the following commands in this directory: | |||
``` | |||
python3 -m venv venv | |||
source venv/bin/activate | |||
pip install -U pip |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
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.