#11 windows installation unclear

Unstable_(example)
closed
nobody
None
5
2013-04-14
2012-10-25
f.duchene
No

on windows, I get the following error message:
--------
python2.6 .\w3af_console
Your python installation needs the following packages:
nltk

On debian based systems:
sudo apt-get install python-nltk

Additional information:
If you can not install nltk, please try the following:
wget http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz
tar -xzvf PyYAML-3.09.tar.gz
cd PyYAML-3.09
python setup.py install
cd ..
wget http://nltk.googlecode.com/files/nltk-2.0b9.tar.gz
tar -xzvf nltk-2.0b9.tar.gz
cd nltk-2.0b9
python setup.py install
--------

however, I installed before
C:\Python26\Scripts>.\easy_install-2.6.exe -U nltk

when printing the exception, I got this additional message:

-------
No module named numpy
-------

so I suggest adding:
try:
import numpy
except:
packages.append('numpy')
reasonForExit = True

in dependency_check.py

and this before:
if not lazy_load('nltk'):

same goes for yaml

--------------

try:
import numpy
except:
packages.append('numpy')
reasonForExit = True

try:
import yaml
except Exception as e:
print(e)
packages.append('pyyaml')
packages_debian.append('python-yaml')
reasonForExit = True

if not lazy_load('nltk'):
------------

Discussion

  • f.duchene
    f.duchene
    2012-10-25

    dependency_check.py

     
    Attachments
  • f.duchene
    f.duchene
    2012-10-25

    we should also check for dnet as in windows, it is possible to install scappy without it (i agree it will not work without it)

     
  • Andres Riancho
    Andres Riancho
    2013-04-14

    Your comments are great, thank you so much for them. I need a windows beta-tester, would you like to help me out? Please contact me directly at andres.riancho@gmail.com

    I've been neglecting the windows side of w3af for some time and need someone to help me out. As you can see here [0] we have dependency check helpers for various platforms, but windows is not included. If you want to help, we would create a file named windows.py in that folder which will help all other users.

    Going back to your bug report, a couple of things:
    * Agreed on the libdnet stuff
    * Don't understand why numpy is required, since (at least in the latest version) there is no direct mention to it:
    pablo@eulogia:~/workspace/w3af$ find . -name '*.py' | xargs grep numpy pablo@eulogia:~/workspace/w3af$
    And also I believe that if you installed everything with easy_install, if a dependency requires numpy, it would be installed automatically.
    * You're using a very old version of the w3af framework. Please use the one available at our github repository.
    * Please report bugs here: https://github.com/andresriancho/w3af/issues/new , we've migrated to github

    Going to close this issue and we should continue to talk in the new bug I opened in github [1]
    

    [0] https://github.com/andresriancho/w3af/tree/master/core/controllers/dependency_check/platforms
    [1] https://github.com/andresriancho/w3af/issues/237

     
  • Andres Riancho
    Andres Riancho
    2013-04-14

    • status: open --> closed
    • Group: --> Unstable_(example)