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.

Feature request: add skip argument to upgrade-all command

See original GitHub issue

Hi! I’ve recently discovered that running pipx upgrade on a particular package breaks the symlink. To reproduce:

  1. Install unimatrix with
pipx install unimatrix --spec git+https://github.com/will8211/unimatrix --verbose
  1. Check that unimatrix binary is correctly symlinked (for instance with which unimatrix)
  2. Run pipx upgrade unimatrix -> for some reason pipx this upgrades unimatrix to 0.1 which isn’t a tagged release
  3. Now try running unimatrix or which unimatrix: it doesn’t work since the symlink seems to be broken.

Please let me know if you can reproduce. Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17

github_iconTop GitHub Comments

2reactions
cs01commented, Mar 19, 2019

So in the end I guess the solution is to implement the skip argument? I’ll change the title of this issue to reflect that.

Yup that is the fix. (An alternate fix is to store a mapping of --spec to pipx-installed packages, but I am hesitant to add that)

1reaction
petobenscommented, Mar 18, 2019

Also I noticed in your above command that you didn’t pass the spec argument to the upgrade command.

Fixed in my previous comment; still the same output

Running “pip install -U” on the package would test if pip can’t do it. If pip can’t do it then it’s not a bug in pipx. If it can, then it is a bug in pipx.

Running ./pip install -U unimatrix from within the venv also updates the package so it seems to be a problem with pip then which believe the 0.1 to supersede the 0.1.dev version.

Anyways I can leave the issue open and change the title if you are willing to add the ignore flag to the upgrade-all command

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add an upgrade-all command · Issue #4551 · pypa/pip - GitHub
This feature request is purely a pip-specific feature, about "I have a bunch of packages in an environment, and I want to bump...
Read more >
AutoUpgrade Command-Line Parameters and Options
Review the AutoUpgrade parameters and select the parameters and options for your Oracle Database upgrade use case.
Read more >
Upgrade - Chocolatey Software Docs
NOTE all is a special package keyword that will allow you to upgrade all currently installed packages. Skip upgrading certain packages with choco...
Read more >
How to upgrade all Python packages with pip? - Stack Overflow
The grep is to skip editable ("-e") package definitions, as suggested by @jawache. (Yes, you could replace grep + cut with sed or...
Read more >
pacman - ArchWiki
Use the #Querying package databases command to view the optional dependencies of a package. When installing a package which you require only as ......
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