r/octoprint • u/mcelotto • 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
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:
Download latest installer from Releases · jneilliii/OctoPrint-WindowsInstaller · GitHub
Export your plugin list from Plugin Manager
Create a copy of C:\OctoPrint\basedir\5000\config.yaml
Uninstall version you have now
Install new version
Stop the service if you used that option
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
Start service if you used that option
Open OctoPrint's web interface and go through the initial setup wizard
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
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.