Giter Club home page Giter Club logo

Comments (4)

adamcunnington-mlg avatar adamcunnington-mlg commented on August 24, 2024

Whilst this is being worked on, what is the workaround please for successfully being able to run metric flow commands such as mf list metrics with a codebase.

I created a vanilla virtual environment where I installed just dbt-metricflow but running the mf list metrics commands complains about missing adapter. I guess dbt-metricflow is technically standalone but indirectly, it is not when you consider real world of what profiles.yml and artifact files look like. So then I went through a process of whack-a-mole installing dbt-adapters and then dbt-common etc. etc. to try and get to a place where I could run the command. Eventually, I installed everything together (incl dbt-core) but then you get the profobuf issue (TypeError: Couldn't build proto file into descriptor pool: duplicate file name types.proto) which is the one I assume updating dbt-metricflow's dependencies to not be incompatible with dbt 1.8 will solve.

But in the meantime, how can I get a stable environment?

from metricflow.

adamcunnington-mlg avatar adamcunnington-mlg commented on August 24, 2024

@plypaul please can you advise when a new version of dbt-metricflow will be released on pypi with this critical fix?

from metricflow.

plypaul avatar plypaul commented on August 24, 2024

@adamcunnington-mlg Sorry, missed your comment earlier. I tried a test run with a clean virtual environment, and things seemed to work with what's currently on master. Mind sharing the commands that you ran so I can reproduce it?

from metricflow.

adamcunnington-mlg avatar adamcunnington-mlg commented on August 24, 2024

@plypaul thank you - the problem can be reproduced by installing dbt-core and dbt-bigquery for 1.8 and then subsequently installing dbt-metricflow which will force a downgrade of dbt-core and then you'll run into a low-level Protobuf issue, basically caused by incompatibilities between the adapter's dependencies and dbt-core/dbt-metricflow.

You can get around this by doing pip install dbt-metricflow[bigquery] which will have the effect of downgrading both but the way I'd expect this to work is that dbt-metricflow's dependencies are more dynamic and controlled by my existing environment (dbt-core & dbt-bigquery).

from metricflow.

Related Issues (20)

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.