OctoPrint tells me it can't run an update due to my Python environment being outdated, what do I do now?

general
updating

#1

Starting with version 1.3.10, OctoPrint's built-in update mechanism will no longer allow to automatically update OctoPrint or any installed plugins if the underlying Python environment is older than some threshold, to reduce the likelihood of running into update issues in such outdated environments:

OctoPrint 1.3.10 and newer expects these minimum versions, which correspond to the environment found on OctoPi 0.14 or newer:

  • Python: 2.7.9
  • pip: 9.0.1
  • setuptools: 5.5.1

If your environment is outdated, you may still proceed following one of the following two options.

Option 1: Update your environment

If it's only your version of pip that is outdated, you can manually update it, see here for a guide on how to do this.

If Python and/or setuptools are outdated, you'll need to update Python and recreate the virtual environment you have OctoPrint installed in.

On OctoPi, the easiest way to achieve this is probably just creating a backup of OctoPrint's settings and data, flashing a current image and then restoring the backup.

In case of manual installs or if you prefer to do it the hard way, you'll need to

  1. install a new version of Python
  2. delete & recreate the virtual environment that OctoPrint is installed into
  3. reinstall OctoPrint into the virtual environment

This basically boils down to re-run the initial installation process.

Option 2: Apply the update manually

Note that this is not recommended since you'll have to continue to do these steps for any following updates down the road - updating the environment is really the preferable solution here and should be easy to accomplish with the Backup plugin built into OctoPrint 1.3.10 and later.

To update OctoPrint manually via the command line, follow these instructions for OctoPi or in case of a manual install just install OctoPrint again following the same instructions you followed for initial setup, that will update it to the latest version.

To update any of the installed third party plugins manually, you just have to install the plugin's current version - either do this through OctoPrint's plugin manager if the plugin is on the repository by changing it to show you already installed plugins and then clicking "Reinstall" next to the plugin in question, upload a current plugin archive through the plugin manager, or do it manually from the command line using

  • OctoPi: ~/oprint/bin/pip install <url of your plugin archive>
  • manual install: /path/to/OctoPrint/venv/bin/pip install <url of your plugin archive>