Plugins timing out during install

Hi,

I have octoprint installed on a raspberry pi B +. I have been using it for a few weeks with no problems and have installed a couple plugins like the bed visualizer. Today when I went to install Octolapse I keep getting errors. Has anyone seen this before?plugin_pluginmanager_console (2).log (72.2 KB)

Feels like a Python v2.x versus v3.x sort of thing.

Thanks for the reply. Is there anything I can check? Here is what I see during the startup

2018-07-21 01:53:48,536 - octoprint.plugin.core - INFO - 10 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| 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
| Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
| OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/octopi_support
| Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
| Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
| Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
| Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer

I'd thought that foosel was going to ramp up Python on the 1.3.9x image but I'm probably confused. My 1.3.9rc4 is also using python2.7 like you are.

If I do the following, it now reports v10.0.1 of pip in the virtual environment (which she rev'd up recently).

cd ~/OctoPrint
source venv/bin/activate
pip --version
pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
deactivate

It would be interesting to see if you have the same version of pip.

I downgraded mine from 18.0

/home/pi/oprint/bin/python2 -m pip --version
pip 9.0.3 from /home/pi/oprint/local/lib/python2.7/site-packages (python 2.7)

Installing using SSH through Putty shows this

Collecting Pillow (from Octolapse==0.3.1)
Downloading https://files.pythonhosted.org/packages/d3/c4/b45b9c0d549f482dd072055e2d3ced88f3b977f7b87c7a990228b20e7da1/Pillow-5.2.0.tar.gz (14.5MB)
43% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 6.3MB 47kB/s eta 0:02:56Exception:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 821, in unpack_url
hashes=hashes
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 659, in unpack_http_url
hashes)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 571, in written_chunks
for chunk in chunks:
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/utils/ui.py", line 139, in iter
for x in it:
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 560, in resp_read
decode_content=False):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 316, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@foosel is the best person to advise on this. I'm sure the dependency stack needs to be just right on this.

1 Like

That looks like your OctoPrint instance can't fetch required dependencies from pypi - see that "Read timed out" message there regarding pyhonhosted.org. Could be something as simple as a hiccup on their side, or something being off in your network. Same error throughout your uploaded log.

Note that this isn't an OctoPrint issue, it's an issue a couple layers down - pip is a stock Python utility that OctoPrint only uses for installing plugins & updates, it is required to work properly and here it looks like there are some issues. I just did a quick test and for me Pillow downloads just fine off PyPi, so either it was a temporary issue (status.python.org doesn't show any incidents though) or it's something off in your local network.

I suppose it could be a DNS problem as well...

For a DNS issue I'd expect an "unknown host" error though, not a read timeout.

In my case, it would be the guys who are jack-hammering the street outside for the last few weeks, installing new Internet cabling. <_<