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

=====> Type tag 'textproto' is not recognized. Try upgrading identify and pre-commit? #960

Closed
BaseMax opened this issue Jan 13, 2025 · 2 comments

Comments

@BaseMax
Copy link
Member

BaseMax commented Jan 13, 2025

max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[WARNING] top-level `default_stages` uses deprecated stage names (commit, push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[INFO] Initializing environment for local:prettier@3.3.3.
[INFO] Initializing environment for https://github.com/jendrikseipp/vulture.
[INFO] Initializing environment for https://github.com/psf/black-pre-commit-mirror.
[INFO] Initializing environment for https://github.com/PyCQA/bandit.
[INFO] Initializing environment for https://github.com/PyCQA/bandit:.[toml].
[INFO] Initializing environment for https://github.com/gitleaks/gitleaks.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/tcort/markdown-link-check.
[INFO] Initializing environment for https://github.com/igorshubovych/markdownlint-cli.
[INFO] Initializing environment for https://github.com/shssoichiro/oxipng.
[INFO] Initializing environment for https://github.com/adrienverge/yamllint.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-clang-format.
An error has occurred: InvalidManifestError:
==> File /home/max/.cache/pre-commit/repouxflkvdt/.pre-commit-hooks.yaml
==> At Hook(id='clang-format')
==> At key: types_or
==> At index 9
=====> Type tag 'textproto' is not recognized.  Try upgrading identify and pre-commit?
Check the log at /home/max/.cache/pre-commit/pre-commit.log
@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

Try installing identify package in your python:

max@Workstation:/mnt/c/Users/MAX/salam$ pip install --upgrade pre-commit identify
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pre-commit in /home/max/.local/lib/python3.10/site-packages (4.0.1)
Requirement already satisfied: identify in /usr/lib/python3/dist-packages (2.4.10)
Collecting identify
  Downloading identify-2.6.5-py2.py3-none-any.whl (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.1/99.1 KB 509.7 kB/s eta 0:00:00
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from pre-commit) (5.4.1)
Requirement already satisfied: virtualenv>=20.10.0 in /usr/lib/python3/dist-packages (from pre-commit) (20.13.0+ds)
Requirement already satisfied: nodeenv>=0.11.1 in /usr/lib/python3/dist-packages (from pre-commit) (0.13.4)
Requirement already satisfied: cfgv>=2.0.0 in /usr/lib/python3/dist-packages (from pre-commit) (3.3.1)
Requirement already satisfied: platformdirs<3,>=2 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (2.5.1)
Requirement already satisfied: filelock<4,>=3.2 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (3.6.0)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (0.3.4)
Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (1.16.0)
Installing collected packages: identify
Successfully installed identify-2.6.5
max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[WARNING] top-level `default_stages` uses deprecated stage names (commit, push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[INFO] Initializing environment for https://github.com/pycqa/isort.
[WARNING] repo `https://github.com/pycqa/isort` uses deprecated stage names (commit, merge-commit, push) which will be removed in a future version.  Hint: often `pre-commit autoupdate --repo https://github.com/pycqa/isort` will fix this.  if it does not -- consider reporting an issue to that repo.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/python3', '-mnodeenv', '--prebuilt', '--clean-src', '/home/max/.cache/pre-commit/repo967hc8d_/node_env-22.2.0', '-n', '22.2.0')
return code: 1
stdout: (none)
stderr:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "/usr/lib/python3/dist-packages/nodeenv.py", line 37, in <module>
        from pkg_resources import parse_version
      File "/home/max/.local/lib/python3.10/site-packages/pkg_resources.py", line 29, in <module>
        import symbol
    ModuleNotFoundError: No module named 'symbol'
Check the log at /home/max/.cache/pre-commit/pre-commit.log

@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/python3', '-mnodeenv', '--prebuilt', '--clean-src', '/home/max/.cache/pre-commit/repo967hc8d_/node_env-22.2.0', '-n', '22.2.0')
return code: 1
stdout: (none)
stderr:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "/usr/lib/python3/dist-packages/nodeenv.py", line 37, in <module>
        from pkg_resources import parse_version
      File "/home/max/.local/lib/python3.10/site-packages/pkg_resources.py", line 29, in <module>
        import symbol
    ModuleNotFoundError: No module named 'symbol'
Check the log at /home/max/.cache/pre-commit/pre-commit.log



max@Workstation:/mnt/c/Users/MAX/salam$ pip install --upgrade nodeenv && pip install --upgrade identify
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: nodeenv in /usr/lib/python3/dist-packages (0.13.4)
Collecting nodeenv
  Downloading nodeenv-1.9.1-py2.py3-none-any.whl (22 kB)
Installing collected packages: nodeenv
Successfully installed nodeenv-1.9.1
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: identify in /home/max/.local/lib/python3.10/site-packages (2.6.5)
max@Workstation:/mnt/c/Users/MAX/salam$ pip install --upgrade pre-commit
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pre-commit in /home/max/.local/lib/python3.10/site-packages (4.0.1)
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from pre-commit) (5.4.1)
Requirement already satisfied: cfgv>=2.0.0 in /usr/lib/python3/dist-packages (from pre-commit) (3.3.1)
Requirement already satisfied: virtualenv>=20.10.0 in /usr/lib/python3/dist-packages (from pre-commit) (20.13.0+ds)
Requirement already satisfied: nodeenv>=0.11.1 in /home/max/.local/lib/python3.10/site-packages (from pre-commit) (1.9.1)
Requirement already satisfied: identify>=1.0.0 in /home/max/.local/lib/python3.10/site-packages (from pre-commit) (2.6.5)
Requirement already satisfied: platformdirs<3,>=2 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (2.5.1)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (0.3.4)
Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (1.16.0)
Requirement already satisfied: filelock<4,>=3.2 in /usr/lib/python3/dist-packages (from virtualenv>=20.10.0->pre-commit) (3.6.0)



max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit install
pre-commit installed at .git/hooks/pre-commit



max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/jendrikseipp/vulture.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://g

@BaseMax BaseMax closed this as completed Jan 13, 2025
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