question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issues with userpath dependency

See original GitHub issue

I have some issues with the direct and hard dependency on userpath.

The main issue is the dependency on a separate top level python CLI tool: I use pipx to wrap ALL python CLI tools (that are not available in a package manager, i.e. homebrew). The setup instructions for pipx now require a separate python CLI tool which I ideally would have installed through pipx itself (pipx install userpath).

When installing via homebrew, only pipx binaries are added to the PATH- cli tools from dependencies are not added. Since I don’t install any python packages globally (pip freeze is empty), I can’t run python3 -m userpath ....

I recommend either:

  1. make userpath a subcommand of pipx similar to ensurepath OR

  2. taking the approach of pyenv and several other libraries out there of telling users to pipe the command into their shell profile:

    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile
    
    • Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile.
    • Ubuntu and Fedora note: Modify your ~/.bashrc file instead of ~/.bash_profile

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
cs01commented, May 5, 2019

Pipx ensurepath would come back and be the canonical method for all platforms and packaging tools. Its implementation would be userpath, but the user would not know or care.

1reaction
AlJohricommented, May 5, 2019

@jaraco @cs01 lets try once to create the userpath homebrew package that pipx can depend on since this seems to be the cleanest solution. if there are issues with the notability requirements we can move forward with the pipx ensurepath?

I dropped a comment here inquiring: https://github.com/Homebrew/homebrew-core/pull/39483#issuecomment-489444236

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Allow users to specify dependency paths · Issue ...
Current State Currently, skaffold uses CLI dependencies (e.g. kpt, kubectl) that it finds on the user's PATH. If a dependency is not on...
Read more >
1761091 – PyPI package adduserpath renamed to userpath
Expected results: A recent release of dependency userpath should be installed, obsoleting any prior installed adduserpath as they have the same Python API....
Read more >
NuGet Dependency Reference links using (full) User Path in ...
For some reason, in my iOS project...the SkiaSharp NuGet library (reference) links-in using the full directory-path. What causes this? How do I ...
Read more >
Update auto-fix user path (#348463) · Issues · GitLab.org / GitLab ...
Something went wrong while setting issue health status. An error occurred while fetching the assigned epic of the selected issue.
Read more >
Locating Associated Dependencies (Linker and Libraries Guide)
Another issue related to dependency location is how to establish a model whereby unbundled products express dependencies between themselves.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found