Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit fails to install/run due to failures within python-Levenshtein-wheels #92

Closed
vikram-saran-playside opened this issue Oct 30, 2023 · 1 comment

Comments

@vikram-saran-playside
Copy link

pre-commit fails to install/run due to failures within python-Levenshtein-wheels.

This is with a fresh install.

Trying to make a batch file with the following script to install in a brand new repository:
Setup.bat.txt

The pre-commit file which is running is:
pre-commit-config.yaml.txt

[INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-clang-format.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\vikram.s\\.cache\\pre-commit\\repoovyiw2ie\\py_env-python3.12\\Scripts\\python.EXE', '-mpip', 'install', '.')
return code: 1
stdout:
    Processing c:\users\vikram.s\.cache\pre-commit\repoovyiw2ie
      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 fuzzywuzzy (from pre-commit-hooks==1.1.13)
      Using cached fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
    Collecting python-Levenshtein-wheels (from pre-commit-hooks==1.1.13)
      Using cached python-Levenshtein-wheels-0.13.2.tar.gz (38 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 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Building wheels for collected packages: pre-commit-hooks, python-Levenshtein-wheels
      Building wheel for pre-commit-hooks (pyproject.toml): started
      Building wheel for pre-commit-hooks (pyproject.toml): finished with status 'done'
      Created wheel for pre-commit-hooks: filename=pre_commit_hooks-1.1.13-py3-none-any.whl size=13349 sha256=91ac1545b3fff0b50058b0ec874ab0b35fc363527103ba137a7c1d6d1bd16128
      Stored in directory: C:\Users\vikram.s\AppData\Local\Temp\pip-ephem-wheel-cache-i8c3zsty\wheels\9a\c8\b2\ce802d52810509a2c2e44a876b77a65e7cac1f1c8851fe3632
      Building wheel for python-Levenshtein-wheels (pyproject.toml): started
      Building wheel for python-Levenshtein-wheels (pyproject.toml): finished with status 'error'
    Successfully built pre-commit-hooks
    Failed to build python-Levenshtein-wheels

Attached the log file:
pre-commit.log

@vikram-saran-playside
Copy link
Author

Fixed by updating the dependency - sorry!

Copied the original .yaml from another dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant