Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
softwareupdate doesn't find latest releases on OctoPi #1723
What were you doing?
Trying to force updates to plugins.
What did you expect to happen?
Expected softwareupdate plugin to find the new versions
What happened instead?
The softwareupdate plugin didn't find the latest versions.
Branch & Commit or Version of OctoPrint
Printer model & used firmware incl. version
Browser and Version of Browser, Operating System running Browser
I have read the FAQ.
I've alreday debugged this issue. The problem is that the OctoPi default pkg_resources version that is installed is old and returns a tuple instead of a Version object. This is from OctoPi's python:
This is from my desktop system:
Above, we can see that the OctoPi python pkg_resources returns a tuple.
GitHub recommends that version tags start with a "v". With the code above, all versions that start with a "v" will simply become an empty tuple. This causes the version comparison code to fail.
The latest pkg_resources has a more complicated version algorithm in
To keep things, OctoPrint can simply ignore a leading v in the tuple.