-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Though I tried to use dbt-autofix 0.18.2 in pre-commit, I couldn't install and use it.
pre-commit config
repos:
- repo: https://github.com/dbt-labs/dbt-autofix
rev: v0.18.2
hooks:
- id: dbt-autofix-fix
verbose: trueversion information
pre-commit version: 4.5.1
git --version: git version 2.52.0
sys.version:
3.11.4 (main, Jul 26 2023, 19:50:50) [Clang 16.0.3 ]
sys.executable: /Users/yu/local/src/xxxx/dwh-dbt/.venv/bin/python3
os.name: posix
sys.platform: darwin
error information
An unexpected error has occurred: CalledProcessError: command: ('/Users/yu/.cache/pre-commit/repopeiyju0o/py_env-python3.11/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
Processing /Users/yu/.cache/pre-commit/repopeiyju0o
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 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pyyaml>=6.0.2 (from dbt-autofix==0.0.post1)
Using cached pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.4 kB)
Collecting typer>=0.16.0 (from dbt-autofix==0.0.post1)
Using cached typer-0.21.1-py3-none-any.whl.metadata (16 kB)
Collecting yamllint>=1.37.0 (from dbt-autofix==0.0.post1)
Using cached yamllint-1.37.1-py3-none-any.whl.metadata (4.3 kB)
Collecting rich>=13.7.0 (from dbt-autofix==0.0.post1)
Using cached rich-14.2.0-py3-none-any.whl.metadata (18 kB)
Collecting click<9.0.0,>=8.2.0 (from dbt-autofix==0.0.post1)
Using cached click-8.3.1-py3-none-any.whl.metadata (2.6 kB)
Collecting ruamel-yaml<0.18.15,>=0.18.10 (from dbt-autofix==0.0.post1)
Using cached ruamel.yaml-0.18.14-py3-none-any.whl.metadata (24 kB)
Collecting httpx>=0.27.0 (from dbt-autofix==0.0.post1)
Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting dbt-common<2,>=1.27 (from dbt-autofix==0.0.post1)
Using cached dbt_common-1.37.2-py3-none-any.whl.metadata (4.9 kB)
Collecting dbt-extractor<=0.6,>=0.5.0 (from dbt-autofix==0.0.post1)
Using cached dbt_extractor-0.6.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.metadata (4.6 kB)
INFO: pip is looking at multiple versions of dbt-autofix to determine which version is compatible with other requirements. This could take a while.
stderr:
ERROR: Could not find a version that satisfies the requirement dbt-fusion-package-tools==0.0.post1 (from dbt-autofix) (from versions: 0.17.3a2, 0.17.3, 0.17.4, 0.17.5a0, 0.17.5, 0.17.6a0, 0.17.6, 0.17.7a0, 0.17.7, 0.18.0, 0.18.1, 0.18.2)
ERROR: No matching distribution found for dbt-fusion-package-tools==0.0.post1
Traceback (most recent call last):
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/error_handler.py", line 73, in error_handler
yield
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/main.py", line 429, in main
return run(args.config, store, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/commands/run.py", line 443, in run
install_hook_envs(to_install, store)
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/repository.py", line 229, in install_hook_envs
_hook_install(hook)
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/repository.py", line 85, in _hook_install
lang.install_environment(
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/languages/python.py", line 228, in install_environment
lang_base.setup_cmd(prefix, install_cmd)
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/lang_base.py", line 87, in setup_cmd
cmd_output_b(*cmd, cwd=prefix.prefix_dir, **kwargs)
File "/Users/yu/local/src/xxxx/dwh-dbt/.venv/lib/python3.11/site-packages/pre_commit/util.py", line 111, in cmd_output_b
raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('/Users/yu/.cache/pre-commit/repopeiyju0o/py_env-python3.11/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
Processing /Users/yu/.cache/pre-commit/repopeiyju0o
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 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pyyaml>=6.0.2 (from dbt-autofix==0.0.post1)
Using cached pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.4 kB)
Collecting typer>=0.16.0 (from dbt-autofix==0.0.post1)
Using cached typer-0.21.1-py3-none-any.whl.metadata (16 kB)
Collecting yamllint>=1.37.0 (from dbt-autofix==0.0.post1)
Using cached yamllint-1.37.1-py3-none-any.whl.metadata (4.3 kB)
Collecting rich>=13.7.0 (from dbt-autofix==0.0.post1)
Using cached rich-14.2.0-py3-none-any.whl.metadata (18 kB)
Collecting click<9.0.0,>=8.2.0 (from dbt-autofix==0.0.post1)
Using cached click-8.3.1-py3-none-any.whl.metadata (2.6 kB)
Collecting ruamel-yaml<0.18.15,>=0.18.10 (from dbt-autofix==0.0.post1)
Using cached ruamel.yaml-0.18.14-py3-none-any.whl.metadata (24 kB)
Collecting httpx>=0.27.0 (from dbt-autofix==0.0.post1)
Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting dbt-common<2,>=1.27 (from dbt-autofix==0.0.post1)
Using cached dbt_common-1.37.2-py3-none-any.whl.metadata (4.9 kB)
Collecting dbt-extractor<=0.6,>=0.5.0 (from dbt-autofix==0.0.post1)
Using cached dbt_extractor-0.6.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.metadata (4.6 kB)
INFO: pip is looking at multiple versions of dbt-autofix to determine which version is compatible with other requirements. This could take a while.
stderr:
ERROR: Could not find a version that satisfies the requirement dbt-fusion-package-tools==0.0.post1 (from dbt-autofix) (from versions: 0.17.3a2, 0.17.3, 0.17.4, 0.17.5a0, 0.17.5, 0.17.6a0, 0.17.6, 0.17.7a0, 0.17.7, 0.18.0, 0.18.1, 0.18.2)
ERROR: No matching distribution found for dbt-fusion-package-tools==0.0.post1
Metadata
Metadata
Assignees
Labels
No labels