Now that the OctoPrint plugin repository is almost at 60% Python 3 compatibility, many people will be looking to upgrade their install to Python 3.
It would be a very manual process, of creating a new environment, installing OctoPrint and every plugin individually. So I created a script to do it for you!
Before you run the script it is recommended that you use the plugin created by jneilliii Python 3 Check.
You will need to SSH into your Pi to run the script, to do so run the commands:
curl https://raw.githubusercontent.com/cp2004/Octoprint-Upgrade-To-Py3/master/upgrade.py --output upgrade.py python3 upgrade.py
If you are not running OctoPi, you will be prompted to provide:
- The path to the venv (
- Configuration directory (
- Command to stop (
sudo service octoprint stop)
- Command to start (
sudo service octoprint start)
If you need any help with the upgrade, please get in touch on this post or open an issue on the Github repository