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

pip install must run as administrator in windows #14

Open
vsuh opened this issue Jun 4, 2021 · 1 comment
Open

pip install must run as administrator in windows #14

vsuh opened this issue Jun 4, 2021 · 1 comment

Comments

@vsuh
Copy link

vsuh commented Jun 4, 2021

No description provided.

@vsuh
Copy link
Author

vsuh commented Jun 4, 2021

  1. pip install must run as administrator in windows (or should use virtualenv?)
  2. error in %USERPROFILE%.cache\pre-commit\pre-commit.log

version information

pre-commit version: 2.13.0
sys.version:
    3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
sys.executable: c:\program files\python38\python.exe
os.name: nt
sys.platform: win32

error information

An unexpected error has occurred: ExecutableNotFoundError: Executable `/bin/sh` not found
Traceback (most recent call last):
  File "c:\program files\python38\lib\site-packages\pre_commit\error_handler.py", line 65, in error_handler
    yield
  File "c:\program files\python38\lib\site-packages\pre_commit\main.py", line 357, in main
    return hook_impl(
  File "c:\program files\python38\lib\site-packages\pre_commit\commands\hook_impl.py", line 221, in hook_impl
    retv, stdin = _run_legacy(hook_type, hook_dir, args)
  File "c:\program files\python38\lib\site-packages\pre_commit\commands\hook_impl.py", line 42, in _run_legacy
    cmd = normalize_cmd((legacy_hook, *args))
  File "c:\program files\python38\lib\site-packages\pre_commit\parse_shebang.py", line 82, in normalize_cmd
    exe = normexe(cmd[0])
  File "c:\program files\python38\lib\site-packages\pre_commit\parse_shebang.py", line 61, in normexe
    _error('not found')
  File "c:\program files\python38\lib\site-packages\pre_commit\parse_shebang.py", line 51, in _error
    raise ExecutableNotFoundError(f'Executable `{orig}` {msg}')
pre_commit.parse_shebang.ExecutableNotFoundError: Executable `/bin/sh` not found

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