Closed LyricPants66133 closed 1 year ago
I am not sure if this is a octoprint problem, a discord remote problem or something else. If the plugin just failed to install/update I am inclined to just ignore this problem, although I recognise it is probably a nuisance.
If you know of how to fix this, please let me know.
Did some research and found a fix. See PR.
Alas, fix does not appear to have worked :(
https://github.com/cameroncros/OctoPrint-DiscordRemote/discussions/241
See my merged PR. Another fix must also be performed on the octoprint plugin repository so that OctoPrint’s built-in Plugin Manager can work properly. I didn't do it since I am not a maintainer of this plug in.
What compatibility should look like: (This is not properly formatted, and comments can be removed. Also, iirc, 1.8.0 is the first Octoprint version to support python 3.8)
compatibility:
octoprint:
- 1.8.0
# List of compatible operating systems
#
# Possible values:
#
# - windows
# - linux
# - macos
# - freebsd
#
# There are also two OS groups defined that get expanded on usage:
#
# - posix: linux, macos and freebsd
# - nix: linux and freebsd
#
# You can also remove the whole "os" block. Removing it will default to all
# operating systems being supported.
os:
- linux
# Compatible Python version
#
# Plugins should aim for compatibility for Python 2 and 3 for now, in which case the value should be ">=2.7,<4".
#
# Plugins that only wish to support Python 3 should set it to ">=3,<4".
#
# If your plugin only supports Python 2 (worst case, not recommended for newly developed plugins since Python 2
# is EOL), leave at ">=2.7,<3"
python: ">=3.8,<4"
Ah, right, reading fail. I'll make that change as well.
Just to chime in on this having seen the plugin repository PR - changing that will only affect finding the plugin in the plugin manager and installing it for the first time - it doesn't have any impact for subsequent updates. Still worth doing for avoiding initial install problems.
You can disable update checks for Python 2 installs only (this is built in to OctoPrint through plugins.octoprint.org) but not for a specific Python version unfortunately.
Blocking install with python_requires
in the setup.py is the best option currently.
Also, iirc, 1.8.0 is the first Octoprint version to support python 3.8
3.8 has been supported since 1.4.0, with subsequent versions added as soon as possible after release. 1.8.0 added compatibility with 3.10 I believe, and 1.8.6 has support up to 3.11. OctoPi 0.18 comes with Python 3.7, and then OctoPi 1.0 comes with 3.9 installed.
With v5.x being the new way forward (at least for development and support from me), I am going to close this off.
I am on Octoprint 1.8.1, Octopi 0.18, python 3.7.3. Octoprint prompts me to upgrade the plugin to v4.0.0, despite the fact that python 3.8 is needed to upgrade.
Logs: Octoprint.log:
plugin_softwareupdate_console.log: