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.

Pip2 Fails to install the latest api spec version

See original GitHub issue

When using pip2 to install the linode cli, it installs the correct version, but seems to install the wrong Spec version (4.0.8, instead of the latest 4.1.0).

This issue has been documented by customers via https://www.linode.com/community/questions/18361/linode-cli-version-mismatch and reproduced.

I have some theories why this might be happening, and will follow up in this ticket. However, for now, if you encounter this issue, installing the linode cli with pip3 will fix the issue.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Dorthucommented, Sep 25, 2019

Thanks for the feedback! It sounds like the warning itself is helpful and desirable as long as there is actually a new CLI version ready to update to in all cases. It also looks like PyPI has an API that can retrieve current package versions… I’m going to experiment with fetching the most recent version from PyPI and only presenting the warning if there is in fact a new version to upgrade to. If that doesn’t add too much overhead I’ll put up a PR for it.

0reactions
gpfjeffcommented, Sep 26, 2019

Sounds like a reasonable approach to me. I’m not opposed to the client-side check to PyPI, although like @Dorthu I can foresee someone out there being a little antsy about it. (Overly paranoid folks who obsessively watch their traffic with Wireshark, maybe? It’s nothing compared to everything Microsoft that phones home to the mothership…)

Thanks for looking into this, guys. Been a Linode customer for eight years now, and while I’ve had the occasional rough patch here and there, I’ve stuck with you longer than I’ve been with any other host. Keep up the great work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after upgrading pip: cannot import name 'main'
After running pip3 install --upgrade pip , pip version becomes 19.2.3. But main() has been moved in pip._internal in the latest version, which ......
Read more >
pip install - pip documentation v22.3.1
Description#. Install packages from: PyPI (and other indexes) using requirement specifiers. VCS project urls. Local project directories.
Read more >
How can I upgrade pip to the latest version?
I usually just run the following commands to upgrade both pip2 (= pip by default) and pip3 : sudo -H pip3 install --upgrade...
Read more >
apispec
apispec 6.0.2. pip install apispec. Copy PIP instructions. Latest version. Released: Nov 10, 2022.
Read more >
Installing lxml
XML Schema support is also still worked on in libxml2, so newer versions will give you better compliance with the W3C spec. To...
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