Polar Cloud Failed to Install

Hello everyone,

I'm trying to install the Polar Cloud plugin that was mentioned on a recent blog of Gina's. It is failing for me :frowning: Any assistance would be greatly appreciated. In the log it mentions having an older version of pip, so I tried upgrading that and that failed too.... btw, I just tried installing the plugin using OctoPrint's plugin manager. Here is my setup information below, then the log error.

OctoPrint Version 1.3.9
OctoPi Version 0.13.0
RPi 2b
pip 9.0.1 from /home/pi/oprint/local/lib/python2.7/site-packages (python 2.7)
Linux version 4.9.35-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 SMP Fri Jun 30 14:47:43 BST 2017
Prusa i3 MK2 - firmware 3.1.0 - 11/12/2017

octoprint.log

2018-09-22 17:18:46,821 - octoprint.plugin.core - INFO - Initialized 23 plugin implementation(s)
2018-09-22 17:18:46,856 - octoprint.plugin.core - INFO - 23 plugin(s) registered with the system:
| Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
| Bed Visualizer (0.1.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_bedlevelvisualizer
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
| DisplayProgress (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_displayprogress
| Email Notifier (0.1.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_emailnotifier
| FileManager (0.1.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filemanager
| Fullscreen Plugin (0.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_fullscreen
| Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
| Octolapse (v0.3.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse
| OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/octopi_support
| Octoslack (1.5.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_Octoslack
| Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
| Print History Plugin (1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory
| Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
| Printer Stats (1.0.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_stats
| Shutdown Printer (0.0.8) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_shutdownprinter
| Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
| TP-Link Smartplug (0.9.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_tplinksmartplug
| Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2018-09-22 17:18:46,881 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
| hardware:
| cores: 4
| freq: 900.0
| ram: 901689344
| os:
| id: linux
| platform: linux2
| plugins:
| octopi_support:
| model: 2B
| revision: a01041
| version: 0.13.0
| python:
| pip: 9.0.1
| version: 2.7.9
| virtualenv: /home/pi/oprint
2018-09-22 17:18:46,904 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-09-22 17:18:46,944 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-09-22 17:18:46,964 - octoprint.plugins.octolapse - INFO - Octolapse is loading assets.
2018-09-22 17:18:47,335 - octoprint.server - INFO - Shutting down intermediary server...
2018-09-22 17:18:47,794 - octoprint.server - INFO - Intermediary server shut down
2018-09-22 17:18:47,799 - octoprint.events - INFO - Processing startup event, this is our first event
2018-09-22 17:18:47,821 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2018-09-22 17:18:47,837 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-09-22 17:18:47,921 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-09-22 17:18:49,177 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-09-22 17:18:49,264 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial port"
2018-09-22 17:18:49,268 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
2018-09-22 17:18:49,311 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-09-22 17:18:49,390 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-09-22 17:18:49,446 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-09-22 17:18:49,490 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-09-22 17:18:49,582 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-09-22 17:18:49,625 - octoprint.plugins.bedlevelvisualizer - INFO - OctoPrint-BedLevelVisualizer loaded!
2018-09-22 17:18:49,628 - octoprint.plugins.octolapse - INFO - Loading existing settings file from: /home/pi/.octoprint/data/octolapse/settings.json.
2018-09-22 17:18:50,324 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-09-22 17:18:50,590 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-09-22 17:18:50,719 - octoprint.plugins.stats - INFO - Printer Stats
2018-09-22 17:18:50,839 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-09-22 17:18:51,085 - octoprint.plugins.tplinksmartplug - INFO - TPLinkSmartplug loaded!
2018-09-22 17:18:51,218 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'https ://192.168.254.29/'}
2018-09-22 17:18:51,301 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2018-09-22 17:18:52,039 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Operational"
2018-09-22 17:18:52,056 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-09-22 17:18:52,126 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin V1.0.2; Sprinter/grbl mashup for gen6"
2018-09-22 17:18:52,853 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.254.12
2018-09-22 17:18:55,666 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-09-22 17:19:05,339 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages/ (writable -> yes), --user flag needed -> no, virtual env -> yes
2018-09-22 17:19:05,340 - octoprint.util.pip - INFO - ==> pip ok -> yes
2018-09-22 17:19:06,443 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2018-09-22 17:19:23,272 - octoprint.server.preemptive_cache - INFO - ... done in 32.05s
2018-09-22 17:19:23,273 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.254.29/'}
2018-09-22 17:19:35,620 - octoprint.server.preemptive_cache - INFO - ... done in 12.35s
2018-09-22 17:19:35,622 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'https ://octopi.local/'}
2018-09-22 17:19:47,772 - octoprint.server.preemptive_cache - INFO - ... done in 12.15s
2018-09-22 17:20:00,098 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.254.12
2018-09-22 17:20:01,158 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.254.12
2018-09-22 17:20:19,254 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2018-09-22 17:20:44,176 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 17:21:33,095 - octoprint.plugins.pluginmanager - ERROR - Installing the plugin from https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip failed, could not parse output from pip. See plugin_pluginmanager_console.log for generated output
2018-09-22 17:33:35,286 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2018-09-22 17:39:25,338 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 17:40:09,219 - octoprint.plugins.pluginmanager - ERROR - Installing the plugin from https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip failed, could not parse output from pip. See plugin_pluginmanager_console.log for generated output
2018-09-22 17:48:35,287 - octoprint.server.heartbeat - INFO - Server heartbeat <3

According to that error, I think it's suggesting that you cough up the indicated log file for us to review.

That's weird... I cut-n-pasted that log also... Here it is:
2018-09-22 15:25:38,547 * Installation needs to process external dependencies, that might make it take a bit longer than usual depending on the pip version
2018-09-22 15:25:38,553 /home/pi/oprint/bin/python -m pip install https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip --no-cache-dir --process-dependency-links
2018-09-22 15:25:43,601 > Collecting https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 15:25:50,611 > Downloading https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 15:26:00,489 ! DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
2018-09-22 15:26:01,009 > Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:26:01,010 > Collecting cffi==1.11.5 (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:26:30,207 > Downloading https ://markwal.github.io/wheelhouse/cffi-1.11.5-cp27-none-linux_armv7l.whl (400kB)
2018-09-22 15:27:42,284 > Collecting cryptography==2.2.2 (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:28:04,310 > Downloading https ://markwal.github.io/wheelhouse/cryptography-2.2.2-cp27-none-linux_armv7l.whl (1.1MB)
2018-09-22 15:30:53,993 > Collecting SocketIO-client (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:31:01,120 > Downloading https ://files.pythonhosted.org/packages/12/d4/abeb2596c2f16276c66910362b27d04b8d2cf12a746dcccf1d00de3f691b/socketIO-client-0.7.2.tar.gz
2018-09-22 15:31:08,130 > Requirement already satisfied: pyopenssl in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:31:08,851 ! Exception:
2018-09-22 15:31:08,852 ! Traceback (most recent call last):
2018-09-22 15:31:08,853 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
2018-09-22 15:31:08,854 ! status = self.run(options, args)
2018-09-22 15:31:08,854 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
2018-09-22 15:31:08,855 ! requirement_set.prepare_files(finder)
2018-09-22 15:31:08,855 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
2018-09-22 15:31:08,856 ! ignore_dependencies=self.ignore_dependencies))
2018-09-22 15:31:08,856 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 666, in _prepare_file
2018-09-22 15:31:08,857 ! check_dist_requires_python(dist)
2018-09-22 15:31:08,857 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/utils/packaging.py", line 48, in check_dist_requires_python
2018-09-22 15:31:08,858 ! feed_parser.feed(metadata)
2018-09-22 15:31:08,858 ! File "/usr/lib/python2.7/email/feedparser.py", line 177, in feed
2018-09-22 15:31:08,858 ! self._input.push(data)
2018-09-22 15:31:08,859 ! File "/usr/lib/python2.7/email/feedparser.py", line 99, in push
2018-09-22 15:31:08,860 ! parts = data.splitlines(True)
2018-09-22 15:31:08,860 ! AttributeError: 'NoneType' object has no attribute 'splitlines'
2018-09-22 15:31:08,861 ! You are using pip version 9.0.1, however version 18.0 is available.
2018-09-22 15:31:08,861 ! You should consider upgrading via the 'pip install --upgrade pip' command.
2018-09-22 15:57:47,724 * Installation needs to process external dependencies, that might make it take a bit longer than usual depending on the pip version
2018-09-22 15:57:47,729 /home/pi/oprint/bin/python -m pip install https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip --no-cache-dir --process-dependency-links
2018-09-22 15:57:52,783 > Collecting https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 15:57:55,266 > Downloading https ://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
2018-09-22 15:58:00,908 ! DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
2018-09-22 15:58:01,427 > Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:58:01,428 > Collecting cffi==1.11.5 (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:58:07,436 > Downloading https ://markwal.github.io/wheelhouse/cffi-1.11.5-cp27-none-linux_armv7l.whl (400kB)
2018-09-22 15:58:08,456 > Collecting cryptography==2.2.2 (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:58:13,628 > Downloading https ://markwal.github.io/wheelhouse/cryptography-2.2.2-cp27-none-linux_armv7l.whl (1.1MB)
2018-09-22 15:58:17,635 > Collecting SocketIO-client (from OctoPrint-PolarCloud==1.6)
2018-09-22 15:58:20,641 > Downloading https ://files.pythonhosted.org/packages/12/d4/abeb2596c2f16276c66910362b27d04b8d2cf12a746dcccf1d00de3f691b/socketIO-client-0.7.2.tar.gz
2018-09-22 15:58:24,915 ! Exception:
2018-09-22 15:58:24,916 ! Traceback (most recent call last):
2018-09-22 15:58:24,927 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
2018-09-22 15:58:24,928 ! status = self.run(options, args)
2018-09-22 15:58:24,929 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
2018-09-22 15:58:24,929 ! requirement_set.prepare_files(finder)
2018-09-22 15:58:24,930 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
2018-09-22 15:58:24,930 ! ignore_dependencies=self.ignore_dependencies))
2018-09-22 15:58:24,931 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 666, in _prepare_file
2018-09-22 15:58:24,931 ! check_dist_requires_python(dist)
2018-09-22 15:58:24,932 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/utils/packaging.py", line 48, in check_dist_requires_python
2018-09-22 15:58:24,932 ! feed_parser.feed(metadata)
2018-09-22 15:58:24,933 ! File "/usr/lib/python2.7/email/feedparser.py", line 177, in feed
2018-09-22 15:58:24,933 ! self._input.push(data)
2018-09-22 15:58:24,934 ! File "/usr/lib/python2.7/email/feedparser.py", line 99, in push
2018-09-22 15:58:24,934 ! parts = data.splitlines(True)
2018-09-22 15:58:24,934 ! AttributeError: 'NoneType' object has no attribute 'splitlines'
2018-09-22 15:58:24,935 ! You are using pip version 9.0.1, however version 18.0 is available.
2018-09-22 15:58:24,935 ! You should consider upgrading via the 'pip install --upgrade pip' command.
2018-09-22 15:58:24,938 > Requirement already satisfied: pyopenssl in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-PolarCloud==1.6)
plugin_pluginmanager_console.log (END)packet_write_poll: Connection to 192.168.254.29 port 22: Host is down

That looks pertinent.

And this one also seems to include the same line at the bottom about splitlines.

Taking that error to Google, turns up this issue on the Polar Cloud repository.

The author indicates that this should no longer be a problem. Some in the thread indicated that by manually removing the current version of OpenSSL (which came with the OctoPi image) the Polar Cloud install worked:

I manually removed the OpenSSL folder with:

rm -rf ~/oprint/lib/python2.7/site-packages/OpenSSL

and then it worked.

It's up to you whether you'd like to try this. It may be worthwhile checking in with that thread and letting the author know that it's failing for you.

This is great information! Thanks I will