What is the problem?
OctoPrint/OctoPi Software Updater dialog reports that I'm running pip version 8.1.1 and as a result I"m running an out of date python instance.
Running 'pip --version' in /home/pi/octoprint/bin/ returns the following (after attempts to update):
pi@powerspec2:~/oprint/bin $ ./pip --version
pip 18.1 from /home/pi/oprint/local/lib/python2.7/site-packages/pip (python 2.7)
pi@powerspec2:~/oprint/bin $
What did you already try to solve it?
Followed the instructions on the OctoPi for updating pip using the commands:
source ~/oprint/bin/activate
pip install --upgrade pip
Also have run
sudo service octoprint restart
several times, and observed that the server/service has restarted as the web interface becomes unavailable and restores.
When looking at the Software Update dialog I continue to get the following output:
**This version of the Python environment is not supported for direct updates.**
To reduce the likelihood of running into update problems in outdated environments, the following minimal versions are required to use this updater to update OctoPrint or any installed plugins:
* Python: 2.7.9 (you have: 2.7.9)
* pip: 9.0.1 (you have: 8.1.1)
* setuptools: 5.5.1 (you have: 5.5.1)
This is different from what the octoprint.log shows, where I see the following:
2019-01-07 18:10:45,942 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
| hardware:
| cores: 4
| freq: 1200.0
| ram: 904245248
| os:
| id: linux
| platform: linux2
| plugins:
| pi_support:
| model: Raspberry Pi 3 Model B Rev 1.2
| octopi_version: 0.13.0
| python:
| pip: 8.1.1
| version: 2.7.9
| virtualenv: /home/pi/oprint
My presumption is that the output on the Software Update page is actually preventing automatic updates from happening, even though it appears that the server recognises the new version of pip. This is consistent with plugins showing different versions between what is installed and what is available at this time.
Love the platform, and thank you for all the great work.
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log
, serial.log
or output on terminal tab, ...)
OctoPrint version: 1.3.10
OctoPi version: 0.13.0, running on Raspberry Pi 3 Model B Rev 1.2
Printer on this instance is a Wanhao Duplicator I3 Plus running the Powerspec release (Microcenter branded stock Wanhao firmware so far as I can tell) {I don't think that it's critical for this issue, serial.log is not currently enabled and I strongly doubt that this is related to printer communications}
I've 'trimmed' the octoprint.log file by stripping out the log entries that are various plugins and the server heartbeat messages using the following script:
grep -v server.heartbeat octoprint.log |\
grep -v plugins.tracking |\
grep -v plugins.navbartemp |\
grep -v SlicerSettingsParser |\
grep -v forcelogin |\
grep -v tornado.access \
> octoprint.trimmed.log
If any of these are needed, let me know. This knocked knocked the file down to under 700 lines.
which still includes too many characters here, so posted to pastebin.com at octoprint.trimmed.log