question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git.bat not picked up on dbt deps

See original GitHub issue

ref. https://github.com/fishtown-analytics/dbt/pull/1110

> dbt deps
Encountered an error:
Could not find command, ensure it is in the user's PATH: "git"

I have reasons to wrap my executables. On Windows I wrap my executables in .bat scripts (to get a similar effect to .sh). But then Popen( ['git'] ) doesn’t work. Popen( ['git.bat']) works.

So the platform-independent way to get git to work is to use shutil.which to get the full path to the exe. Popen([ which('git') ], ) works.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jtcohen6commented, Feb 1, 2021

Ok, this one is a little bit beyond me. @kwigley When you have a moment, could I ask for your sense-check here?

0reactions
jtcohen6commented, Mar 1, 2021

@majidaldo Is this a fix you’d be interested in contributing? I’d welcome a PR for it, if you don’t mind explaining the system/security implications of the proposed changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git.bat not picked up on dbt deps · Issue #3035 - GitHub
So the platform-independent way to get git to work is to use shutil.which to get the full path to the exe. Popen([ which('git')...
Read more >
Installed dbt but getting error "DBT command not found error"
In order to execute dbt command you have to be in a folder with a DBT Project. Usually it doesn't work from anywhere....
Read more >
ga4 - dbt - Package hub
GA4 DBT Package. This package connects to an exported GA4 dataset and provides useful transformations as well as report-ready dimensional models that can...
Read more >
How to Setup DBT Snowflake Integration: 4 Easy Steps
There's no need to be concerned about Query Optimization. Secure Data Sharing: Using Snowflake Database Tables, Views, and UDFs, data can be ...
Read more >
Managing Python dependencies in requirements.txt
To run the CLI, see the aws-mwaa-local-runner on GitHub. ... (line 4)) No matching distribution found for LibraryName==1.0.0 (from -r ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found