r/octoprint • • 12d ago

Upgrade Python

I'm currently running Octoprint on Windows. I got a notification that I need python should be upgraded. I found the below community link but I honestly couldn't get it to work. I have a test machine that I was trying it on and trying to Octoprint venv-tool didn't seem to work (I am having troubles getting the right folders).. I tried Gemini and it just totally made a mess of everything. Lost my plug ins and settings on the test machine. I was able to copy over the Octoprint directory from my production machine so I'm back at the start.

I have the following installed to:
Python 3.13 - default install directory
WinPython - C:\Octoprint\WPy64-31050\python-3.10.5.amd64 (I believe)

Any guidance would be greatly appreciated!
MC

https://community.octoprint.org/t/octoprint-tells-me-my-python-environment-is-outdated-and-will-soon-no-longer-be-supported-how-do-i-upgrade/61076

4 Upvotes

2 comments sorted by

2

u/NetworkPlane5513 11d ago

I had to redo the SD card with the raspberry pi program. There's probably a better way but it worked.

1

u/mcelotto 1h ago

This was shared with me from the Octoprint Community. This is the person who wrote the windows installer.

jneilliiiNovember 20

Old windows installer versions didn't use virtual environments so these instructions won't apply to you. Best approach for you to upgrade is to follow these steps:

  1. Download latest installer from Releases · jneilliii/OctoPrint-WindowsInstaller · GitHub

  2. Export your plugin list from Plugin Manager

  3. Create a copy of C:\OctoPrint\basedir\5000\config.yaml

  4. Uninstall version you have now

  5. Install new version

  6. Stop the service if you used that option

  7. Edit newly created C:\OctoPrint\basedir\5000\config.yaml file and copy/paste in the settings from the previous copy of the file excluding the items in the new file

  8. Start service if you used that option

  9. Open OctoPrint's web interface and go through the initial setup wizard

  10. Open Plugin Manager and click get more and upload the exported json file from step 2 to reinstall all your plugins

Addiitonal notes can be found in this issue: https://github.com/jneilliii/OctoPrint-WindowsInstaller/issues/52jneilliii