markwal / OctoPrint-PolarCloud

OctoPrint plugin that connects OctoPrint to the Polar3D cloud. You easily monitor your printer from outside your LAN without arcane setup of port forwarding, etc. Plus, take advantage of the rapidly evolving Polar Cloud capabilities and UI.
GNU Affero General Public License v3.0
15 stars 8 forks source link

Installing plugin... #47

Closed drkbalamurugan closed 3 years ago

drkbalamurugan commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

hlKarln commented 5 years ago

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

Thanks.

andrerjesus commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

wsager42 commented 4 years ago

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!!