[Python] Pipx try install package in the same place of hyprshot

Discussão em 'Python' iniciado por Stack, Agosto 15, 2025.

  1. Stack

    Stack Membro Participativo

    I tried install globally a package in python named 'ruff' in ArchLinux. To do this I tried run the following command :

    pipx ensurepath
    pipx install ruff


    A very strange thing happened with me, a file named hyprshot is existing! Hyprshot is just an app to print screen in Hyprland (my window manager in Arch Linux).

    Traceback (most recent call last):
    File "/usr/sbin/pipx", line 8, in <module>
    sys.exit(cli())
    ~~~^^
    File "/usr/lib/python3.13/site-packages/pipx/main.py", line 1171, in cli
    setup(parsed_pipx_args)
    ~~~~~^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/pipx/main.py", line 1114, in setup
    mkdir(paths.ctx.bin_dir)
    ~~~~~^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/pipx/util.py", line 77, in mkdir
    path.mkdir(parents=True, exist_ok=True)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/pathlib/_local.py", line 722, in mkdir
    os.mkdir(self, mode)
    ~~~~~~~~^^^^^^^^^^^^
    FileExistsError: [Errno 17] File exists: '/home/dani/Hyprshot/hyprshot'


    I tried use sudo for this but sudo put the global enviroments packages in an wrong place for packages in python. I tried also to changes env variables to pipx with

    export PIPX_HOME="$HOME/.local/pipx"
    export PIPX_BIN_DIR="$HOME/.local/bin"


    but this is also useless

    Continue reading...

Compartilhe esta Página