pip install python-owasp-zap-v2.4 Returns syntax error for "print" statement with Python 3.5

350 views
Skip to first unread message

skzaproxy

unread,
Mar 8, 2016, 5:13:43 AM3/8/16
to OWASP ZAP User Group
Hi,

I am using python3.5. while installing pip install python-owasp-zap-v2.4 (Python API) package I got syntax error for print statement.
Since python 3.5 expects parenthesis for print statement.
Query:
1. Will the package "python-owasp-zap-v2.4" be updated to work with python 3.x versions?
2. Is there any limitation/requirement with ZAProxy that in order to use API in python scripts we need to have python 2.x only.

Thanks in advance.

Regards

Simon Bennetts

unread,
Mar 8, 2016, 5:52:45 AM3/8/16
to OWASP ZAP User Group
No, theres no requirement for the API to only work with python 2.0 and we should definitely change it to work with as wide a range of versions as possible.
I've just raised Issue #2308 for this.
If you are aware of any other changes required please let us know either here or on that issue.

Many thanks,

Simon

Jitendriya Parida

unread,
Jun 9, 2016, 2:10:10 AM6/9/16
to OWASP ZAP User Group
Hello

Is this problem solved yet??
I am trying install the python API by same way and facing the same issue.

Error log:
Downloading/unpacking python-owasp-zap-v2.4
  Cannot fetch index base URL https://pypi.python.org/simple/
  Downloading python-owasp-zap-v2.4-0.0.8.tar.gz
  Running setup.py (path:/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py) egg_info for package python-owasp-zap-v2.4
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py", line 12
        print "You must have setuptools installed to use setup.py. Exiting..."
                                                                             ^
    SyntaxError: Missing parentheses in call to 'print'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py", line 12

    print "You must have setuptools installed to use setup.py. Exiting..."

                                                                         ^

SyntaxError: Missing parentheses in call to 'print'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4
Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c pip3 install python-owasp-zap-v2.4' returned a non-zero code: 1

thc...@gmail.com

unread,
Jun 9, 2016, 5:12:22 AM6/9/16
to zaprox...@googlegroups.com
Hi.

Not yet, it's still work in progress.

Best regards.
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to zaproxy-user...@googlegroups.com
> <mailto:zaproxy-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/zaproxy-users/63fc3efd-4d7a-4b35-823e-5b03f5239168%40googlegroups.com
> <https://groups.google.com/d/msgid/zaproxy-users/63fc3efd-4d7a-4b35-823e-5b03f5239168%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages