girok icon indicating copy to clipboard operation
girok copied to clipboard

girok installs successfully but won't run due to not being on PATH

Open carrierg opened this issue 11 months ago • 0 comments

Bug Description

I'm running Fedora 39: Linux [hostname] 6.7.6-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Feb 23 18:27:29 UTC 2024 x86_64 GNU/Linux. Python version is 3.12.2.

Upon executing pip install girok I get the following output, with a warning at the end:

Defaulting to user installation because normal site-packages is not writeable
Collecting girok
  Obtaining dependency information for girok from https://files.pythonhosted.org/packages/1a/93/197fdb2d65751ea9ca63c5c021f6d090a25092a22322619838a21060ace8/girok-0.2.5-py3-none-any.whl.metadata
  Using cached girok-0.2.5-py3-none-any.whl.metadata (25 kB)
Requirement already satisfied: requests<3.0.0,>=2.31.0 in ./.local/lib/python3.12/site-packages (from girok) (2.31.0)
Requirement already satisfied: textual<0.49.0,>=0.48.1 in ./.local/lib/python3.12/site-packages (from girok) (0.48.2)
Requirement already satisfied: typer[all]<0.10.0,>=0.9.0 in ./.local/lib/python3.12/site-packages (from girok) (0.9.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/lib/python3.12/site-packages (from requests<3.0.0,>=2.31.0->girok) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.12/site-packages (from requests<3.0.0,>=2.31.0->girok) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3.12/site-packages (from requests<3.0.0,>=2.31.0->girok) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.12/site-packages (from requests<3.0.0,>=2.31.0->girok) (2024.2.2)
Requirement already satisfied: markdown-it-py[linkify,plugins]>=2.1.0 in ./.local/lib/python3.12/site-packages (from textual<0.49.0,>=0.48.1->girok) (3.0.0)
Requirement already satisfied: rich>=13.3.3 in ./.local/lib/python3.12/site-packages (from textual<0.49.0,>=0.48.1->girok) (13.7.1)
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in ./.local/lib/python3.12/site-packages (from textual<0.49.0,>=0.48.1->girok) (4.10.0)
Requirement already satisfied: click<9.0.0,>=7.1.1 in /usr/lib/python3.12/site-packages (from typer[all]<0.10.0,>=0.9.0->girok) (8.1.3)
Requirement already satisfied: colorama<0.5.0,>=0.4.3 in ./.local/lib/python3.12/site-packages (from typer[all]<0.10.0,>=0.9.0->girok) (0.4.6)
Requirement already satisfied: shellingham<2.0.0,>=1.3.0 in ./.local/lib/python3.12/site-packages (from typer[all]<0.10.0,>=0.9.0->girok) (1.5.4)
Requirement already satisfied: mdurl~=0.1 in ./.local/lib/python3.12/site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual<0.49.0,>=0.48.1->girok) (0.1.2)
Requirement already satisfied: linkify-it-py<3,>=1 in ./.local/lib/python3.12/site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual<0.49.0,>=0.48.1->girok) (2.0.3)
Requirement already satisfied: mdit-py-plugins in ./.local/lib/python3.12/site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual<0.49.0,>=0.48.1->girok) (0.4.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/lib/python3.12/site-packages (from rich>=13.3.3->textual<0.49.0,>=0.48.1->girok) (2.15.1)
Requirement already satisfied: uc-micro-py in ./.local/lib/python3.12/site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify,plugins]>=2.1.0->textual<0.49.0,>=0.48.1->girok) (1.0.3)
Using cached girok-0.2.5-py3-none-any.whl (62 kB)
Installing collected packages: girok
  WARNING: The script girok is installed in '/home/[username]/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed girok-0.2.5

The interesting thing is when I experiment to see if girok really has successfully installed by cd'ing to ~/.local/bin and running girok --help, I get this: zsh: girok: command not found...

So I guess I have a couple of questions:

  1. Is the installation script expected to not install girok on PATH? I can certainly add it to PATH if needed, but am curious if this is expected behaviour or a bug before I add it to PATH.
  2. Will adding girok to PATH resolve zsh's claim that the girok command can't be found?

Many thanks.

carrierg avatar Mar 01 '24 13:03 carrierg