GithubHelp home page GithubHelp logo

dbt support about asdf-pyapp HOT 3 OPEN

amrox avatar amrox commented on September 28, 2024
dbt support

from asdf-pyapp.

Comments (3)

jtzero avatar jtzero commented on September 28, 2024 1

interesting...

from asdf-pyapp.

amrox avatar amrox commented on September 28, 2024

Hi @jtzero - thanks for the feature request.

I'm not too familiar with dbt / dbt-snowflake. What is the "normal" way to install it? Does it work with pipx?

This plugin uses pipx under the hood, so if it works with pipx, but not with this plugin, I'd consider it a bug.

I'm interested in supporting it if we can though!

from asdf-pyapp.

amrox avatar amrox commented on September 28, 2024

dug into this a little.

Installing dbt via pipx yields this:

❯ pipx install dbt
Note: Dependent package 'dbt-core' contains 1 apps
  - dbt
Note: Dependent package 'sqlparse' contains 1 apps
  - sqlformat
Note: Dependent package 'chardet' contains 1 apps
  - chardetect
Note: Dependent package 'babel' contains 1 apps
  - pybabel
Note: Dependent package 'python-slugify' contains 1 apps
  - slugify
Note: Dependent package 'jsonschema' contains 1 apps
  - jsonschema
Note: Dependent package 'jmespath' contains 1 apps
  - jp.py
Note: Dependent package 'docutils' contains 12 apps
  - rst2html.py
  - rst2html4.py
  - rst2html5.py
  - rst2latex.py
  - rst2man.py
  - rst2odt.py
  - rst2odt_prepstyles.py
  - rst2pseudoxml.py
  - rst2s5.py
  - rst2xetex.py
  - rst2xml.py
  - rstpep2html.py
Note: Dependent package 'snowflake-connector-python' contains 4 apps
  - snowflake-dump-certs
  - snowflake-dump-ocsp-response
  - snowflake-dump-ocsp-response-cache
  - snowflake-export-certs
Note: Dependent package 'pyjwt' contains 1 apps
  - pyjwt
Note: Dependent package 'keyring' contains 1 apps
  - keyring
Note: Dependent package 'rsa' contains 6 apps
  - pyrsa-decrypt
  - pyrsa-encrypt
  - pyrsa-keygen
  - pyrsa-priv2pub
  - pyrsa-sign
  - pyrsa-verify

No apps associated with package dbt. Try again with '--include-deps' to
include apps of dependent packages, which are listed above. If you are
attempting to install a library, pipx should not be used. Consider using pip
or a similar tool instead."

Next I tried installing dbt-core:

❯ pipx install dbt-core
  installed package dbt-core 1.0.0, Python 3.10.0
  These apps are now globally available
    - dbt
⚠️  Note: '/Users/amrox/.local/bin' is not on your PATH environment variable. These apps will
    not be globally accessible until your PATH is updated. Run `pipx ensurepath` to
    automatically add it, or manually modify your PATH in your shell's config file (i.e.
    ~/.bashrc).
done! ✨ 🌟 ✨

And it worked!

Finally:

❯ asdf plugin add dbt-core https://github.com/amrox/asdf-pyapp.git
❯ asdf install dbt-core 1.0.0
❯ ls ~/.asdf/installs/dbt-core/1.0.0/bin
dbt

So there are a couple ways forward:

  1. Add support for --include-deps in asdf-pyapp (probably should be optional somehow).

  2. Install dbt-core - but I'm not sure this has all the dependencies you need.

from asdf-pyapp.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.