pypa/pipx

I can't say I'm enamoured by pipx.

Opened this issue · 0 comments

JGFMK commented

I find pipx a thorn in my side and I've wasted 4+ hours today fixing stuff after a Mac OS/X Sequoia upgrade.

It messed up miniconda, my vs-code activate environements etc.

VS Code: (Command Pallete: Clear Workspace Interpreter Settings)

All this has done is make commands longer to type.
I don't like the verbosity this has introduced.

e.g:

pipx run main.py pipx

vs

python3 main.py

I'm wondering if I need yet another python3 alias to wrapper this! Why do I need pipx twice!

And don't forget I now need to annotate imports too. (They only work at top of module -not in a method - you can end up with circularity issues sometimes. So I hope the metadata (equivalent to Groovy Grape annotation) doesn't mess with the Python's logic of token resolution), where you are normally doing something like from a import c in one method and from b import c in another method. Hopefully the dependencies of a and b don't step on each other's toes more so you get cross module references.

e.g.:

# /// script
# dependencies = ["requests"]
# ///

Also if I transfer the code with the requests dependency to another module, and import that module, having put the meta tag comment in the other module, it seems it doesn't work either! pipx is terrible! You have to put the meta tag in the client. Talk about anti code once!

I was happier with virtual environments.
It took a while to figure out where it was installing things - all wasting my time.

I don't mind changes as long as they don't break things or make more work for me. This has done both! :-(

At the very least describe how doing something as simple as installing the requests module and being able to execute/debug code in VS Code so the module is found via the Run button can work as seamlessly as it did before we had pipx.

Also:

  1. Why not make
--include-deps

a default? It's infuriating having to retype and add that verbosity too.

  1. Could not make this work - zsh - Mac Sequoia.
    eval "$(register-python-argcomplete pipx)"

  2. Is there a pipx VSCode extension?
    Or can I use either the Python/Python Debugger... tweaking settings to somehow to accomodate the aforementioned verbosity? (JSON files such as

  • defaultSettings.json,
  • settings.json in ~/.vscode,
  • Application Support/Code Insider/User/settings.json
  • launch.json
    etc)

The very worst part of this though, is if I want to debug stuff in VS Code, now I am hosed. I can only run things.
I need to know how to get around this urgently!

Also posted on Stack Overflow