SweetSecurity
SweetSecurity copied to clipboard
Debian 8 CFFI failure Kibana import during install
Starting Kibana
Importing Kibana Index Patterns
Importing /home/user/sweetsecurity/kibana/patterns/sweet_security_alerts.json
Traceback (most recent call last):
File "setup.py", line 220, in
issue seems mroe upstream and generic with CFFI and openSSL python libs. pip --update cffi also reports same broken-ness
workaround: download 1.10.0 from https://pypi.python.org/pypi/cffi and build/install
Thanks for the workaround, I'll look into if this is something that needs to be added to the installer with changed packages.
Python-PIP is also broken and breaks the install in a similar manner when it reaches the Kibana import parts of your python installer. My workaround for that was to use the get-pip.py script and install pip that way, then the installer runs fine.
1. install cffi lib:
sudo apt-get install libffi-dev
2. install these packages manually:
sudo pip install elasticsearch
sudo pip install requests
sudo pip install flask-mail
sudo pip install flask_wtf
sudo pip install cryptography --upgrade
sudo pip install pyopenssl --upgrade
if there's no more error, run setup.py again.
as you can see at line 29 & 48 of this file: SweetSecurity/install/packages.py
os.popen('sudo pip install elasticsearch 2>&1').read()
os.popen('sudo pip install requests 2>&1').read()
os.popen('sudo pip install flask-mail 2>&1').read()
os.popen('sudo pip install flask_wtf 2>&1').read()
os.popen('sudo pip install cryptography --upgrade 2>&1').read()
os.popen('sudo pip install pyopenssl --upgrade 2>&1').read()
there's no guarantee to install these packages successfully because they're non-blocking tasks. and there's no log to show the result of installation.
I guess your failure is caused by the dependence issue when packages.py runs
os.popen('sudo pip install cryptography --upgrade 2>&1').read()
or
os.popen('sudo pip install pyopenssl --upgrade 2>&1').read()
and if my memory is correct, libffi-dev is a dependence of cryptography or pyopenssl