Thanks to visit codestin.com
Credit goes to github.com

Skip to content

python version to use? #346

@mattaereal

Description

@mattaereal

Hi, I decided to try out owtf, but there's something that I don't quite understand.

The main script uses python3 by default (unless you run it using python2), the installation script uses python2 and tries to install the dependencies using pip (python3). So I thought the entire owtf was being developed under python3, and let the pip install the dependencies from the requirements file. Thing is that most of the modules will get installed using pip, except python-owasp-zap-v2 that gives syntax errors because of being a python2 script called from a python3 (classical print error missing parenthesis). I skipped this last module, just to see how to proceed, but when the installation finished and I ran owtf.py again with python3, I get import errors (urrllib2 missing, ./owtf/framework/error_handler.py).

So, as far as I know, urllib2 is merged into urllib in python3, and by how you call urllib2 in the import you must be using python2.

Using python2 seems to work fine, but had to manually specify the dependencies using pip2 (not pip as the installation was doing).

If this is the case, I strongly recommend a modification on the python shebang from the main script to be set as python2 in order to sort this things out.

Maybe I got lost somewhere, but this stuff is always very straight forward.

Thanks for reading, I liked the project and this is my grain of sand, good work guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions