Command line install of plugins fails

Hi,
I am trying to install plugins manually - downloaded from GitHub and on the pi.

~/oprint/bin/pip install OctoPrint-YouTubeLive-master.zip

results in:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./OctoPrint-YouTubeLive-master.zip
Requirement already satisfied: OctoPrint in ./oprint/lib/python2.7/site-packages (from YouTube-Live==0.5.1) (1.3.10)
Collecting docker==2.7.0 (from YouTube-Live==0.5.1)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)': /simple/docker/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)': /simple/docker/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)': /simple/docker/

Any ideas on how to fix this would be appreciated.

(For various reasons I cannot install via web - locked down at a school environment)

Thank you in advance.
Jon

Is that all you get as error message?
Nothing like

Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)

?
If not could you check if something similar is in your pip.log?

If there is also nothing written I would try

pip install --trusted-host pypi.org --trusted-host piwheels.org <package_name>

Be aware that this command allows pip to accept certificates from the trusted hosts without checking them.

1 Like

Thanks for the replay - it was part of the solution - but pointing me / reminding me to look at the pip logs helped me solve it.

It was failing the first hitting the school internet auth server - so nice IT dept put it in an elevated group that is pre-authenticated.
Then I needed:
--trusted-host pypi .org --trusted-host files .pythonhosted .org --trusted-host www.piwheels.org

Thanks a heap.
Jon

1 Like