andresriancho / w3af

w3af: web application attack and audit framework, the open source web vulnerability scanner.
http://w3af.org/
4.52k stars 1.21k forks source link

Problem with dependency #13590

Open capsian opened 8 years ago

capsian commented 8 years ago

Hello

I have some errors when i try to execute the _/tmp/w3af_dependencyinstall.sh file

Collecting pybloomfiltermmap==0.3.14 Using cached pybloomfiltermmap-0.3.14.tar.gz Collecting esmre==0.3.1 Using cached esmre-0.3.1.tar.gz Collecting phply==0.9.1 Collecting nltk==3.0.1 Collecting chardet==2.1.1 Collecting tblib==0.2.0 Using cached tblib-0.2.0-py2-none-any.whl Collecting pdfminer==20140328 Collecting futures==2.1.5 Using cached futures-2.1.5-py2.py3-none-any.whl Collecting pyOpenSSL==0.15.1 Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl Collecting ndg-httpsclient==0.3.3 Collecting pyasn1==0.1.8 Collecting lxml==3.4.4 Using cached lxml-3.4.4.tar.gz Collecting scapy-real==2.2.0-dev Collecting guess-language==0.2 Collecting cluster==1.1.1b3 Collecting msgpack-python==0.4.4 Collecting python-ntlm==1.0.1 Collecting halberd==0.2.4 Collecting darts.util.lru==0.5 Collecting Jinja2==2.7.3 Collecting vulndb==0.0.19 Collecting markdown==2.6.1 Collecting psutil==2.2.1 Using cached psutil-2.2.1.tar.gz Collecting mitmproxy==0.13 Collecting ruamel.ordereddict==0.4.8 Using cached ruamel.ordereddict-0.4.8.tar.gz Collecting Flask==0.10.1 Collecting PyYAML==3.11 Collecting xdot==0.6 Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from esmre==0.3.1) Collecting ply (from phply==0.9.1) Using cached ply-3.8.tar.gz Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from tblib==0.2.0) Collecting cryptography>=0.7 (from pyOpenSSL==0.15.1) Using cached cryptography-1.2.3.tar.gz Collecting markupsafe (from Jinja2==2.7.3) Requirement already satisfied (use --upgrade to upgrade): Pillow>=2.3.0 in /usr/lib/python2.7/dist-packages (from mitmproxy==0.13) Collecting configargparse>=0.9.3 (from mitmproxy==0.13) Collecting blinker>=1.3 (from mitmproxy==0.13) Collecting netlib<0.14,>=0.13 (from mitmproxy==0.13) Collecting pyperclip>=1.5.8 (from mitmproxy==0.13) Using cached pyperclip-1.5.26.zip Collecting pyparsing>=1.5.2 (from mitmproxy==0.13) Using cached pyparsing-2.1.0-py2.py3-none-any.whl Collecting html2text>=2015.4.14 (from mitmproxy==0.13) Using cached html2text-2016.1.8.tar.gz Collecting urwid>=1.3 (from mitmproxy==0.13) Collecting tornado>=4.0.2 (from mitmproxy==0.13) Collecting itsdangerous>=0.21 (from Flask==0.10.1) Collecting Werkzeug>=0.7 (from Flask==0.10.1) Using cached Werkzeug-0.11.4-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.7->pyOpenSSL==0.15.1) Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.7->pyOpenSSL==0.15.1) Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.7->pyOpenSSL==0.15.1) Collecting cffi>=1.4.1 (from cryptography>=0.7->pyOpenSSL==0.15.1) Using cached cffi-1.5.2.tar.gz Collecting passlib>=1.6.2 (from netlib<0.14,>=0.13->mitmproxy==0.13) Using cached passlib-1.6.5-py2.py3-none-any.whl Collecting certifi (from netlib<0.14,>=0.13->mitmproxy==0.13) Using cached certifi-2016.2.28-py2.py3-none-any.whl Collecting hpack>=1.0.1 (from netlib<0.14,>=0.13->mitmproxy==0.13) Using cached hpack-2.1.0-py2.py3-none-any.whl Collecting backports-abc>=0.4 (from tornado>=4.0.2->mitmproxy==0.13) Using cached backports_abc-0.4-py2.py3-none-any.whl Collecting backports.ssl-match-hostname (from tornado>=4.0.2->mitmproxy==0.13) Using cached backports.ssl_match_hostname-3.5.0.1.tar.gz Collecting singledispatch (from tornado>=4.0.2->mitmproxy==0.13) Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography>=0.7->pyOpenSSL==0.15.1) Installing collected packages: pybloomfiltermmap, esmre, ply, phply, nltk, chardet, tblib, pdfminer, futures, pyasn1, cffi, cryptography, pyOpenSSL, ndg-httpsclient, lxml, scapy-real, guess-language, cluster, msgpack-python, python-ntlm, halberd, darts.util.lru, markupsafe, Jinja2, vulndb, markdown, psutil, configargparse, blinker, passlib, certifi, hpack, netlib, pyperclip, pyparsing, html2text, urwid, backports-abc, backports.ssl-match-hostname, singledispatch, tornado, mitmproxy, ruamel.ordereddict, itsdangerous, Werkzeug, Flask, PyYAML, xdot Running setup.py install for pybloomfiltermmap: started Running setup.py install for pybloomfiltermmap: finished with status 'error' Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-FpolFq/pybloomfiltermmap/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-6QpZGD-record/install-record.txt --single-version-externally-managed --compile: info: Building from C running install running build running build_ext building 'pybloomfilter' extension creating build creating build/temp.linux-i686-2.7 creating build/temp.linux-i686-2.7/src i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/mmapbitarray.c -o build/temp.linux-i686-2.7/src/mmapbitarray.o i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/bloomfilter.c -o build/temp.linux-i686-2.7/src/bloomfilter.o src/bloomfilter.c:11:14: warning: always_inline function might not be inlinable [-Wattributes] BloomFilter *bloomfilter_Create_Malloc(size_t max_num_elem, double error_rate, ^ i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/md5.c -o build/temp.linux-i686-2.7/src/md5.o i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/primetester.c -o build/temp.linux-i686-2.7/src/primetester.o i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/MurmurHash3.cpp -o build/temp.linux-i686-2.7/src/MurmurHash3.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/pybloomfilter.c -o build/temp.linux-i686-2.7/src/pybloomfilter.o src/pybloomfilter.c:8:22: fatal error: pyconfig.h: Aucun fichier ou dossier de ce type

include "pyconfig.h"

                      ^
compilation terminated.
error: command 'i586-linux-gnu-gcc' failed with exit status 1
----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-FpolFq/pybloomfiltermmap/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-6QpZGD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-FpolFq/pybloomfiltermmap/

The content of /tmp/w3af_dependency_install.sh

#!/bin/bash

sudo pip install pybloomfiltermmap==0.3.14 esmre==0.3.1 phply==0.9.1 nltk==3.0.1 chardet==2.1.1 tblib==0.2.0 pdfminer==20140328 futures==2.1.5 pyOpenSSL==0.15.1 ndg-httpsclient==0.3.3 pyasn1==0.1.8 lxml==3.4.4 scapy-real==2.2.0-dev guess-language==0.2 cluster==1.1.1b3 msgpack-python==0.4.4 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 Jinja2==2.7.3 vulndb==0.0.19 markdown==2.6.1 psutil==2.2.1 mitmproxy==0.13 ruamel.ordereddict==0.4.8 Flask==0.10.1 PyYAML==3.11 xdot==0.6
root@Orion:/tmp# pip freeze
cffi==0.8.6
chardet==2.3.0
colorama==0.3.2
cryptography==0.6.1
cssselect==0.9.1
enum34==1.1.2
gitdb==0.6.4
GitPython==0.3.2rc1
html5lib==0.999
idna==2.0
ipaddress==1.0.16
MySQL-python==1.2.3
Pillow==2.6.1
pyasn1==0.1.9
pyClamd==0.3.15
pycparser==2.14
PyGithub==1.21.0
Pygments==2.0.1
queuelib==1.4.2
requests==2.4.3
six==1.8.0
SQLAlchemy==0.9.8
urllib3==1.9.1
zenmap===7.01SVN
root@Orion:/tmp# python --version
Python 2.7.9

Thank's for the help !

mcornella commented 8 years ago

Same error here, solution found at https://github.com/axiak/pybloomfiltermmap/issues/49#issuecomment-37876554:

sudo apt-get install libpython-dev
helersu commented 8 years ago

I install all dependencies except lxml. w3af needs to lxml=3.4.4. but in lxml=3.5.0 şb Kali 2016.1 distribution. How to resolve this?

Thanks for your help.