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

--install/show-completion failed in a brew installation #194

Open
flavono123 opened this issue Jan 16, 2024 · 0 comments
Open

--install/show-completion failed in a brew installation #194

flavono123 opened this issue Jan 16, 2024 · 0 comments

Comments

@flavono123
Copy link

Describe the bug
a command with option flags --install-completion or show-completion is failed

To Reproduce

  1. install from brew within macos(detail versions are below)
  2. krr --install-completion or krr --show-completion in a terminal

Expected behavior
should work for both option flags

Screenshots
image

❯ krr --install-completion
╭─────────────────── Traceback (most recent call last) ────────────────────╮
│  /PATH/HOME/shellingham/__init__.py:13 in detect_shell                   │
│                                                                          │
│ [Errno 2] No such file or directory:                                     │
│ ' /PATH/HOME/shellingham/__init__.py'                                    │
│                                                                          │
│  /PATH/HOME/importlib/__init__.py:127 in import_module                   │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/importlib/__init__.py' │
│ <frozen importlib._bootstrap>:1030 in _gcd_import                        │
│ <frozen importlib._bootstrap>:1007 in _find_and_load                     │
│ <frozen importlib._bootstrap>:984 in _find_and_load_unlocked             │
╰──────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'shellingham.posix'

During handling of the above exception, another exception occurred:

╭─────────────────── Traceback (most recent call last) ────────────────────╮
│  /PATH/HOME/krr.py:4 in <module>                                         │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/krr.py'                │
│                                                                          │
│  /PATH/HOME/robusta_krr/main.py:275 in run                               │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/robusta_krr/main.py'   │
│                                                                          │
│  /PATH/HOME/typer/main.py:328 in __call__                                │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/main.py'         │
│                                                                          │
│  /PATH/HOME/typer/main.py:311 in __call__                                │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/main.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:1130 in __call__                               │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/typer/core.py:778 in main                                    │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/core.py'         │
│                                                                          │
│  /PATH/HOME/typer/core.py:215 in _main                                   │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/core.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:920 in make_context                            │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:1613 in parse_args                             │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:1378 in parse_args                             │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:2360 in handle_parse_result                    │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/click/core.py:2322 in process_value                          │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/click/core.py'         │
│                                                                          │
│  /PATH/HOME/typer/main.py:988 in wrapper                                 │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/main.py'         │
│                                                                          │
│  /PATH/HOME/typer/completion.py:41 in install_callback                   │
│                                                                          │
│ [Errno 2] No such file or directory: ' /PATH/HOME/typer/completion.py'   │
│                                                                          │
│  /PATH/HOME/typer/_completion_shared.py:221 in install                   │
│                                                                          │
│ [Errno 2] No such file or directory:                                     │
│ ' /PATH/HOME/typer/_completion_shared.py'                                │
│                                                                          │
│  /PATH/HOME/shellingham/__init__.py:16 in detect_shell                   │
│                                                                          │
│ [Errno 2] No such file or directory:                                     │
│ ' /PATH/HOME/shellingham/__init__.py'                                    │
╰──────────────────────────────────────────────────────────────────────────╯
RuntimeError: Shell detection not implemented for 'posix'
[18671] Failed to execute script 'krr' due to unhandled exception!

Are you interested in contributing a fix for this?
Yes/no. If yes, we will provide guidance what parts of the code to modify and help you.

Desktop (please complete the following information):

  • OS: macOS
  • Browser 🤷
  • Version 14.2(23C64)
❯ sw_vers
ProductName:		macOS
ProductVersion:		14.2
BuildVersion:		23C64

Smartphone (please complete the following information):
N/A

Additional context
guess the installation refer wrong paths to run typer commands(?)
installed from brew 1.0.0, at the first time, upgraded also with brew to 1.6.0:

❯ which krr
/opt/homebrew/bin/krr
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