OctoPrint tells me my Python environment is outdated and will soon no longer be supported, how do I upgrade?

There was something more than the plugin problem.

The authentication error would render me unable to install any plugin onward.

I even tried to update the user password thinking it could be some data migration problem, but it also failed (the dialog never saved, it also showed no error message at all)

Maybe something to do with the Argon2 alerts on the logs.

ChatGPT sounds confident as always ChatGPT - Error message analysis

hi i have other things running on my pi 4 (node-red/cast-web-api-cli/edgebridge) would it be possible to remove octoprint deploy upgrade the python then reinstall octoprint deploy with a backup , is that possible .
thanks
martin

I don't see why you shouldn't be able to upgrade Python and then upgrade the virtual environment created by octoprint_deploy, without any need to go through a full removal and restore. What am I missing?

2 Likes

I did this and it worked great. Currently Python3.11.14

I tried following this instructions (on a cloned SD card because I didn't want to risk to loose my setup, which is has a lot of history ;-)) and that was the result on my Raspberry PI3A+

The upgrade went fine with no issues.. but:

  • password not recognized (as reported by another user)
  • few missing plugins (totally disappeared): Filament manager, pushbullet, telegram..

At this point I will try the other (suggested by @foosel) way "Backup, flash a new image, restore".. and I hope that in this way I will NOT loose anything from my current setup.

Collecting since 2024-04-25 11:41 (2 years ago)
Collection started on OctoPrint 1.10.0
Versions seen 9
Number of server starts 214
Prints 360 (274 finished)
Total print duration 974:03:26 (882:44:02 finished)
Longest print 38:39:16 (finished on 2025-01-29 11:08, a year ago)

I am using an OrangePi that I bought here. How to I update the Python version on the OrangePi?
BTW...I am not very literate in Raspian or linux, so a step-by-step instruction would be much appreciated.
Thank you!

"here" should probably have been a URL because this forum doesn't "sell" hardware. :slightly_smiling_face:

There is, however, a link on the downloads page which points to Obico's page here which references a Discord server where issues can be discussed.

If that's where you got your OrangePi, I'd suggest you ask your question there as you will probably get a better answer for your specific configuration.

If you didn't get your OrangePi from Obico, then you will have to tell us more about it. What model OrangePi? What OS is it running now (cat /etc/os-release)? There may be other files, ls -l /etc/*release*, that can provide more info. Also python --version and/or python3 --version would be useful as well.