Wont start after Python update?

I've updated Python to 3.12 (64 bit) caused by another system I run on the same computer as Octoprint.

When I try starting Octoprint Server I get a messagebox saying (in DANISH) that it wont run because it can.t find python27.dll.

I'm running Windows 10 fully updated and I know I SHOULD have attached too some more concerning Octoprint setup - but obviously I cant get hold of that because Octoprint wont run !

What can I do now ?

Would be nice to have more information:

  • What system are you running?
  • What OctoPrint version are you running?

I think I wrote Windows 10 fully updated and Octoprint ... oh, that's an older one because I haven't updated it for a long time - if I look at the dates of the files in the OctoPrint folder it's says 20-10-2020 !

Maybe this setup-thing I SHOULD have attached to my posting can be found in the folder - but I don't know what to look for !

Sorry, overseen that.

If installed on windows with an older python version manually the virtualenv that was created with the older python version will be broken. You will have to reinstall OctoPrint and all plugins, etc. If you use my windows installer linked on the OctoPrint downloads page, it will use an isolated python environment and you shouldn't run into this problem.

Should I be keeping anything from the OLD installation ?

So your uploads and settings, etc. will be in C:\Users\username\AppData\Roaming\OctoPrint\. Before starting up OctoPrint after using the installer you could copy the contents of that folder into the basedir you specify during install, but some of your settings won't be compatible and things may not work as expected. Probably best to start fresh from scratch. You could transfer your uploads folder from there over to the new one to keep all your gcode files though.

In the guide you point out in 5) that

"Open a command prompt (cmd), change into OctoPrint's source folder and create a new virtual environment, and then activate it:

cd C:\OctoPrint
py -m venv venv
venv\Scripts\activate.bat

You should notice that the prompt now has (venv) in front of it. This means the virtual environment is 'activated'.
"
but it's NOT - I get this:

C:\Users\kelds>cd c:\octoprint
c:\OctoPrint>py -m venv venv
c:\OctoPrint>

the prompt is NOT venv

What is wrong and how to proceed ?

I didn't make that guide. I made the much simpler Windows installer.

But to answer your question. That shows up when you run the line venv\Scripts\activate.bat>

Yeah - two problems araises:

  1. how do I 'come' into venv- mode ?"

  2. are you saying I should drop that guide and use your "windows installer" insread ?

if you run the command that was listed. for example.

image

It just looks like you didn't run the last command based on what you originally posted.

that's up to you, but the installer is a standard wizard style click buttons kind of thing.