New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Issues, Clarification Requested #5
Comments
Hi @I-AM-GROOOOOOT. Managing Python versions and environments can be very frustrating so I hope I can help you out a bit! Just installing Python 3.8 on your Raspberry Pi won't be enough to get OctoPrint to "recognize it." You actually need to create an entirely new Python virtual environment for OctoPrint to run inside. In doing so, you would be creating an entirely new "instance" of OctoPrint, with its own set of plugins and customizations. You can always turn this into the primary instance if you want to by modifying I'm going to close this issue but feel free to keep commenting if you need more help and I'll respond when I can! |
So yes, I saw the first issue (which you've already closed), and assumed that using the "Installing Manually" would fix my issue, but clearly I haven't done it right, as my current Python env is not 3.8. So I copied and used the codes from there, but it hasn't worked fully... did I miss something? Here are the codes I ran, in order: Those are the codes that are shown on the Installing Manually section, I believe. Now I don't understand what you mean by "Make sure to create the virtual environment using the Python 3.8 interpreter you just installed: |
The first command you executed ( Executing
you should have an OctoPrint instance with Python 3.8. |
So is there no simple way to just update the current Octoprint instance's environment to 3.8? That seems the simplest way to go. |
The "address already in use" error indicates that your old OctoPrint server is still running. Try You will not want to have two different OctoPrint servers in the long-term. Once you're satisfied that the new OctoPrint instance with Python 3.8 is the one you'd like to stick with:
|
I am not aware of any way to do this, since OctoPrint is itself a Python package and thus dependent on the Python interpreter that was used to run it. |
So I'm assuming to start the other (original) Octoprint instance, I need to simply change out the "stop" part of the first code ( |
Since the original Python 3.7.3 instance is currently registered through systemd, you are correct that you can use The new Python 3.8 instance is not currently registered through systemd (to do that you'd use the steps I outlined above, which would swap the two), so you can just use |
Gotcha!! (Maybe) One last question: if I make a backup of my current Octoprint instance, plugins and all, can I use it on the new instance, or is the Python version a block for me in regards to backups? |
The "Backup & Restore" feature did work for me, but I know very little about its inner workings so your mileage may vary. If you hit a wall with that, you could also try a As a last resort, you may need to manually reinstall some plugins. |
Alrighty, thanks!! You've been most helpful and very quick to respond. :) |
Glad I could help! Please don't hesitate to reach out again if there's anything else you're having trouble with :) |
So I've been using Octoprint and Wyze devices for a long time, and this plugin is just perfect for me! But maybe not...
I'm having issues installing it, and I believe it's due to the Python version. I have installed the Python 3.8 to my Pi, but OctoPrint won't recognize it, saying I'm on Python V3.7.3 (see screenshot). Can someone point me to the proper way to install Python 3.8 to my OctoPrint environment? I've been all over the web trying to find ways to update Python, the OctoPrint env, pip, and all sorts of other stuff.
I will also note that my pip version is at 22.0.4, the most recent. IDK if that has much to do with this, but I thought I'd just note that. Thanks in advance for any help!! :)
The text was updated successfully, but these errors were encountered: