Skip to content
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

Installing plugin... #47

Closed
drkbalamurugan opened this issue Jan 28, 2019 · 12 comments
Closed

Installing plugin... #47

drkbalamurugan opened this issue Jan 28, 2019 · 12 comments

Comments

@drkbalamurugan
Copy link

Installing plugin "Polar Cloud" from https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip...
Installation needs to process external dependencies, that might make it take a bit longer than usual depending on the pip version
c:\octoprint\venv\scripts\python.exe -m pip install https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip --no-cache-dir --process-dependency-links
Usage:
c:\octoprint\venv\scripts\python.exe -m pip install [options] [package-index-options] ...
c:\octoprint\venv\scripts\python.exe -m pip install [options] -r [package-index-options] ...
c:\octoprint\venv\scripts\python.exe -m pip install [options] [-e] ...
c:\octoprint\venv\scripts\python.exe -m pip install [options] [-e] ...
c:\octoprint\venv\scripts\python.exe -m pip install [options] <archive url/path> ...
no such option: --process-dependency-links
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

@CKENT0369
Copy link

CKENT0369 commented Feb 4, 2019

I have the same problem, cannot install polar cloud.

Installing plugin "Polar Cloud" from https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip...Installation needs to process external dependencies, that might make it take a bit longer than usual depending on the pip version/home/pi/oprint/bin/python2 -m pip install https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip --process-dependency-linksUsage:/home/pi/oprint/bin/python2 -m pip install [options] [package-index-options] .../home/pi/oprint/bin/python2 -m pip install [options] -r [package-index-options] .../home/pi/oprint/bin/python2 -m pip install [options] [-e] .../home/pi/oprint/bin/python2 -m pip install [options] [-e] .../home/pi/oprint/bin/python2 -m pip install [options] <archive url/path> ...no such option: --process-dependency-linksError!Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

@wimorrison
Copy link

Just to add my pen’arth I have been completely unable to install this plugin despite trying several time and several ways.

My errors are exactly the same as above - what is the expected resolution time please?

@alexp3d
Copy link
Collaborator

alexp3d commented Feb 21, 2019

Hi Folks,
It looks like a recent pip installer deprecation broke a few important dependency installations for the Polar Cloud Plugin. We have identified the issue and are working towards a fix. I hope to have this dealt within the next week or so but will update you as required.

@MadderPad
Copy link

For anyone looking for a work around, and is happy to work with the command line on the Pi.

Running the following commands (I've reversed engineered these from the setup.py for the plugin)
~/oprint/bin/pip install cffi==1.11.5 --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install cryptography==2.2.2 --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install SocketIO-client --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install pyopenssl --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install Pillow --extra-index-url https://markwal.github.io/wheels/

Then install "https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip" using the plugin manager in OctoPrint, using the '... From URL' option. (Make sure use --process-dependency-links isn't selected in the advanced options ;) )

Once OctoPrint restarted, I was able to set up the PolarCloud plugin as per the documentation.

Paddy

@wimorrison
Copy link

Brilliant!!!

I ran through the command lines and they all went well except

~/oprint/bin/pip install pyopenssl --extra-index-url https://markwal.github.io/wheels/

which threw an error and when I installed Polarcloud the install threw an error about me having 2.2 of something and it wanted 2.3, I think it was related to above line but I couldn't catch it as it scrolled of my screen :(

That said a reboot of the pi and I could set up PolarCloud and it connects.

fingers crossed that the 'proper fix' can install over this at some point?

Iain

@MadderPad
Copy link

I think the openssl messages are warnings rather than errors - but only time will tell.

@hlKarln
Copy link

hlKarln commented Feb 26, 2019

Thanks for your help MadderPad, I get the same issue and to resolve that I have follow your step.
It work fine ... ;-)

Thanks.

@andrerjesus
Copy link

andrerjesus commented Mar 4, 2019

I think the openssl messages are warnings rather than errors - but only time will tell.

pi@octopi:~ $ sudo ~/oprint/bin/pip install pyopenssl --extra-index-url https://markwal.github.io/wheels/
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, https://markwal.github.io/wheels/
Collecting pyopenssl
Downloading https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 566kB/s
Collecting cryptography>=2.3 (from pyopenssl)
Downloading https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-2.6.1.tar.gz (491kB)
100% |████████████████████████████████| 501kB 299kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
Complete output from command /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpDnIHUd:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in
main()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 48, in get_requires_for_build_wheel
backend = _build_backend()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 39, in _build_backend
obj = getattr(obj, path_part)
AttributeError: 'module' object has no attribute 'legacy'


Command "/home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpDnIHUd" failed with error code 1 in /tmp/pip-install-biixEw/cryptography
pi@octopi:~ $

Using the steps above I was able to install it. The cryptography error does looks like a warning:

Installing collected packages: pyopenssl, OctoPrint-PolarCloud
Running setup.py install for OctoPrint-PolarCloud: started
pyopenssl 19.0.0 has requirement cryptography>=2.3, but you'll have cryptography 2.2.2 which is incompatible.
Running setup.py install for OctoPrint-PolarCloud: finished with status 'done'
Successfully installed OctoPrint-PolarCloud-1.8 pyopenssl-19.0.0
Done!

@carlesm
Copy link

carlesm commented Mar 23, 2019

You can skip all errors by going to a pyopenssl that works well with cryptography 2.2, for example the previous version 18.0.0 (19.0.0, the next one is giving you the errors):

~/oprint/bin/pip install pyopenssl=18.0.0 --extra-index-url https://markwal.github.io/wheels/

With that it went without any complaints.

@Retoxx
Copy link

Retoxx commented Mar 29, 2019

Using MadderPad's list of commands, and substituting the 2nd to the last with a slightly modified Carlesm's line (it needed the double equal sign) works perfectly!! THANK YOU BOTH!!!!

~/oprint/bin/pip install cffi==1.11.5 --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install cryptography==2.2.2 --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install SocketIO-client --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install pyopenssl==18.0.0 --extra-index-url https://markwal.github.io/wheels/
~/oprint/bin/pip install Pillow --extra-index-url https://markwal.github.io/wheels/

@carlesm
Copy link

carlesm commented Mar 29, 2019

Yup, my bad (or my clipboard bad, in fact).

@wsager42
Copy link

I have tried to do work around suggested above but I was not successful
I'm using raspberry pi 4 controller that is connected to an Ender 3 V2 printer
Octoprint 1.4.2 Python 2.7.16 Octopi 0.17.0
If you guys have any suggestions I would greatly appreciate it, I have been trying to get polar cloud to install all week with no success!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests