Skip to content

[Bug] MetricFlow PIP install Issue Github Action #1703

@adrian-huntress

Description

@adrian-huntress

Is this a new bug in metricflow?

  • I believe this is a new bug in metricflow
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

We use a Github action to install our requirements.txt file:

dbt-core == 1.9.0
dbt-snowflake == 1.8.3
sqlfluff-templater-dbt == 3.3.1
sqlglot[rs]
elementary-data
dbt-metricflow == 0.8.1

The Github actions run ok when I remove dbt-metricflow from this list of installations. When I keep the error I get is shown below:

After navigating to the setup.cfg file in the Halo dependency, I see this:

https://github.com/manrajgrover/halo/blob/master/setup.cfg

Can someone help us figure out how to fix? Thanks/

Expected Behavior

This issue occurred for the first time on March 24, 2025. Our Github action worked fine before then.

Steps To Reproduce

  1. In a Github action, install
dbt-core == 1.9.0
dbt-snowflake == 1.8.3
sqlfluff-templater-dbt == 3.3.1
sqlglot[rs]
elementary-data
dbt-metricflow == 0.8.1

Relevant log output

Collecting halo<0.1.0,>=0.0.31 (from dbt-metricflow==0.8.1->-r requirements.txt (line 6))
  Downloading halo-0.0.31.tar.gz (11 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
        File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
        File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 16, in <module>
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 116, in setup
          _install_setup_requires(attrs)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line [87](https://github.com/huntresslabs/business_intel/actions/runs/14042542950/job/39315905091?pr=917#step:4:88), in _install_setup_requires
          dist.parse_config_files(ignore_option_errors=True)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 730, in parse_config_files
          self._parse_config_files(filenames=inifiles)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 599, in _parse_config_files
          opt = self._enforce_underscore(opt, section)
        File "/tmp/pip-build-env-duhg02t0/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 629, in _enforce_underscore
          raise InvalidConfigError(
      setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.
      [end of output]

Environment

- OS: ['ubuntu-latest']
- Python: 3.10
- dbt: 1.8.3
- metricflow: 0.8.1

Which database are you using?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions