[solved] w3af Exception: "No module named pdfpage"


if you get the following error 

# w3af
It seems that your Python installation doesn't have all the modules required by the w3af framework. For more information about how to install and debug dependency issues please browse to http://docs.w3af.org/en/latest/install.html
Something went wrong, w3af failed to start the output manager.
Exception: "No module named pdfpage"

then you can run this:

       
$pip --proxy "" install pdfminer==20140328 --upgrade --force-reinstall --no-deps

 or refer to these steps.


In if you cannot solve with the steps above then do the following:

       
$apt-get --reinstall install w3af
$apt-get --reinstall install python-pip
$w3af


And if it does not solve proceed with the steps below:


       
git clone https://github.com/andresriancho/w3af.git
cd w3af
./w3af_console


You will get something similar to the one below:

       
Your python installation needs the following modules to run w3af:
github nltk chardet pdfminer concurrent.futures OpenSSL pyasn1 lxml scapy.config jinja2 markdown psutil mitmproxy Flask

After installing any missing operating system packages, use pip to install the remaining modules:


sudo pip install PyGithub==1.21.0 nltk==3.0.1 chardet==2.1.1 pdfminer==20140328 futures==2.1.5 pyOpenSSL==0.15.1 pyasn1==0.1.7 lxml==3.4.4 scapy-real==2.2.0-dev Jinja2==2.7.3 markdown==2.6.1 psutil==2.2.1 mitmproxy==0.12.1 Flask==0.10.1


A script with these commands has been created for you at /tmp/w3af_dependency_install.sh

What you can do is to  run pip install for each missing module

$pip --proxy "" install PyGithub==1.21.0 nltk==3.0.1 chardet==2.1.1...> --upgrade --force-reinstall --no-deps

in this way you still keep the originally-installed w3af and you can delete the git folder as you need only to the test dependencies from there

Please note if using a proxy you might need to specify it in https://