-
Notifications
You must be signed in to change notification settings - Fork 8
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
Installation Errors (Could not parse output from pip) #10
Comments
What OS are you installing on? It looks like you're not running OctoPrint from a virtual environment. If you do "pip freeze" from the command line in your OctoPrint folder, what version of pyopenssl, openssl and cryptography modules do you have installed? |
Im runing debian jessy... I'm really new to that stuff, but here is what pip freeze brought up: Adafruit-BBIO==1.0.3 |
This is due to the following: You should be able to fix it by manually installing cffi and then trying pyOpenSSL again. pip install --upgrade cffi |
pip install --upgrade pyOpenSSL returns some errors...: nyco007@beaglebone:~$ sudo pip install --upgrade pyOpenSSL Failed building wheel for cryptography Failed cleaning build dir for cryptography
Rolling back uninstall of cryptography |
Ah oh. Your cffi package got mangled. You've got the python from one version and the built stuff from another. Oof. It'll probably take a few tries to get this fixed up as I can't replicate your state here. How about: sudo apt-get update |
Unfortunally, since pip install --upgrade cffi my OctoPrint is not starting anymore... nyco007@beaglebone:~/OctoPrint$ ./run |
I figured out to uninstall the cffi 1.10.0 with sudo apt-get remove python-cffi and tired then sudo apt-get install python-cffi python-openssl as you proposed. |
Thanks a bunch, everyone. I followed these steps, but also ran into issue with my pip being messed up. So for others having issue, it may be cool to try: Then pip check pip with pip freeze. If error: Then sudo reboot |
I had the same error output caused by that ciff package. I did all things mentioned above and more that I don't even recall. In the end, I manage to fix by removing ciff by an "apt-get remove python-cffi" and by "pip uninstall cffi". When I installed it as described above and then had no problems with the "cryptography" package as the error posted also above. But now I still get the same "Could Not parse output from pip" error. Lookin at the log I found this:
I will try to find anything related to this particular error, any thoughts? i will keep searching a little further and post any update. I am running Jessie. |
I figured it out! Searching a little further the log I found this message:
I found this, python-pillow/Pillow#2163 It seems that I was missing I hope this helps. Should I post this as a new error? Thanks |
@OptogeneticsandNeuralEngineeringCore your solution works for me on a orange pi zero |
Installing plugin "PolarCloud (Beta)" from https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip...
/usr/bin/python2 -m pip install https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip --user
Collecting https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip
Downloading https://github.com/markwal/OctoPrint-PolarCloud/archive/master.zip (2.9MB)
Requirement already satisfied: OctoPrint in /usr/local/lib/python2.7/dist-packages/OctoPrint-1.3.4-py2.7.egg (from OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: SocketIO-client in /usr/local/lib/python2.7/dist-packages (from OctoPrint-PolarCloud==0.1.0Beta)
Collecting pyopenssl>=16.1 (from OctoPrint-PolarCloud==0.1.0Beta)
Using cached pyOpenSSL-17.0.0-py2.py3-none-any.whl
Collecting Pillow (from OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: flask<0.11,>=0.9 in /usr/lib/python2.7/dist-packages (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Jinja2<2.9,>=2.8 in /usr/local/lib/python2.7/dist-packages/Jinja2-2.8.1-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: werkzeug<0.9,>=0.8.3 in /usr/local/lib/python2.7/dist-packages/Werkzeug-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: tornado==4.0.2 in /usr/local/lib/python2.7/dist-packages/tornado-4.0.2-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: sockjs-tornado<1.1,>=1.0.2 in /usr/local/lib/python2.7/dist-packages/sockjs_tornado-1.0.3-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: PyYAML<3.11,>=3.10 in /usr/local/lib/python2.7/dist-packages/PyYAML-3.10-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Flask-Login<0.3,>=0.2.2 in /usr/local/lib/python2.7/dist-packages/Flask_Login-0.2.11-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Flask-Principal<0.4,>=0.3.5 in /usr/local/lib/python2.7/dist-packages/Flask_Principal-0.3.5-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Flask-Babel<0.10,>=0.9 in /usr/local/lib/python2.7/dist-packages/Flask_Babel-0.9-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Flask-Assets<0.11,>=0.10 in /usr/local/lib/python2.7/dist-packages/Flask_Assets-0.10-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: markdown<2.7,>=2.6.4 in /usr/local/lib/python2.7/dist-packages/Markdown-2.6.8-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pyserial<2.8,>=2.7 in /usr/local/lib/python2.7/dist-packages/pyserial-2.7-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: netaddr<0.8,>=0.7.17 in /usr/local/lib/python2.7/dist-packages/netaddr-0.7.19-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: watchdog<0.9,>=0.8.3 in /usr/local/lib/python2.7/dist-packages/watchdog-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: sarge<0.2,>=0.1.4 in /usr/local/lib/python2.7/dist-packages/sarge-0.1.4-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: netifaces<0.11,>=0.10 in /usr/local/lib/python2.7/dist-packages/netifaces-0.10.6-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pylru<1.1,>=1.0.9 in /usr/local/lib/python2.7/dist-packages/pylru-1.0.9-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: rsa<3.3,>=3.2 in /usr/local/lib/python2.7/dist-packages/rsa-3.2.3-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pkginfo<1.3,>=1.2.1 in /usr/local/lib/python2.7/dist-packages/pkginfo-1.2.1-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: requests<2.8,>=2.7 in /usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: semantic_version<2.5,>=2.4.2 in /usr/local/lib/python2.7/dist-packages/semantic_version-2.4.2-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: psutil<3.3,>=3.2.1 in /usr/local/lib/python2.7/dist-packages/psutil-3.2.2-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Click<6.3,>=6.2 in /usr/local/lib/python2.7/dist-packages/click-6.2-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in /usr/local/lib/python2.7/dist-packages/awesome_slugify-1.6.5-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: feedparser<5.3,>=5.2.1 in /usr/local/lib/python2.7/dist-packages/feedparser-5.2.1-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: chainmap<1.1,>=1.0.2 in /usr/local/lib/python2.7/dist-packages/chainmap-1.0.2-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: future<0.16,>=0.15 in /usr/local/lib/python2.7/dist-packages/future-0.15.2-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: scandir<1.4,>=1.3 in /usr/local/lib/python2.7/dist-packages/scandir-1.3-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: websocket-client<0.41,>=0.40 in /usr/local/lib/python2.7/dist-packages/websocket_client-0.40.0-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: python-dateutil<2.7,>=2.6 in /usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.0-py2.7.egg (from OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from SocketIO-client->OctoPrint-PolarCloud==0.1.0Beta)
Collecting cryptography>=1.7 (from pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Using cached cryptography-1.9.tar.gz
Requirement already satisfied: olefile in /usr/local/lib/python2.7/dist-packages (from Pillow->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: itsdangerous>=0.21 in /usr/lib/python2.7/dist-packages (from flask<0.11,>=0.9->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: MarkupSafe in /usr/lib/python2.7/dist-packages (from Jinja2<2.9,>=2.8->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: certifi in /usr/local/lib/python2.7/dist-packages (from tornado==4.0.2->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: backports.ssl_match_hostname in /usr/local/lib/python2.7/dist-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg (from tornado==4.0.2->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: blinker in /usr/lib/python2.7/dist-packages (from Flask-Principal<0.4,>=0.3.5->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Babel>=1.0 in /usr/local/lib/python2.7/dist-packages/Babel-2.4.0-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: speaklater>=1.2 in /usr/local/lib/python2.7/dist-packages/speaklater-1.3-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: webassets>=0.10 in /usr/local/lib/python2.7/dist-packages/webassets-0.12.1-py2.7.egg (from Flask-Assets<0.11,>=0.10->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: argh>=0.24.1 in /usr/local/lib/python2.7/dist-packages/argh-0.26.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pathtools>=0.1.1 in /usr/local/lib/python2.7/dist-packages/pathtools-0.1.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python2.7/dist-packages (from rsa<3.3,>=3.2->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: regex in /usr/local/lib/python2.7/dist-packages/regex-2017.06.23-py2.7-linux-armv7l.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: Unidecode<0.05,>=0.04.14 in /usr/local/lib/python2.7/dist-packages/Unidecode-0.04.20-py2.7.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: idna>=2.1 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: asn1crypto>=0.21.0 in /home/nyco007/.local/lib/python2.7/site-packages (from cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: enum34 in /home/nyco007/.local/lib/python2.7/site-packages (from cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: ipaddress in /home/nyco007/.local/lib/python2.7/site-packages (from cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Collecting cffi>=1.7 (from cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pytz>=0a in /usr/local/lib/python2.7/dist-packages/pytz-2017.2-py2.7.egg (from Babel>=1.0->Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-PolarCloud==0.1.0Beta)
Requirement already satisfied: pycparser in /usr/lib/python2.7/dist-packages (from cffi>=1.7->cryptography>=1.7->pyopenssl>=16.1->OctoPrint-PolarCloud==0.1.0Beta)
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography: started
Running setup.py bdist_wheel for cryptography: finished with status 'error'
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-AglOjN/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpvPcmDepip-wheel- --python-tag cp27:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-AglOjN/cryptography/setup.py", line 321, in
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in init
_Distribution.init(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in init
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['name'])
ImportError: No module named setuptools_ext
Running setup.py clean for cryptography
Failed building wheel for cryptography
Failed cleaning build dir for cryptography
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-AglOjN/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" clean --all:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-AglOjN/cryptography/setup.py", line 321, in
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in init
_Distribution.init(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in init
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['name'])
ImportError: No module named setuptools_ext
Failed to build cryptography
Installing collected packages: cffi, cryptography, pyopenssl, Pillow, OctoPrint-PolarCloud
Running setup.py install for cryptography: started
Running setup.py install for cryptography: finished with status 'error'
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-AglOjN/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-dpIn9B-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-AglOjN/cryptography/setup.py", line 321, in
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in init
_Distribution.init(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in init
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['name'])
ImportError: No module named setuptools_ext
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-AglOjN/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-dpIn9B-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-AglOjN/cryptography/
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
The text was updated successfully, but these errors were encountered: