Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367801 - net-analyzer/w3af-1.0_rc5 does not work with Python 3
Summary: net-analyzer/w3af-1.0_rc5 does not work with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 18:47 UTC by Agostino Sarubbo
Modified: 2011-12-21 08:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (w3af.patch,428 bytes, patch)
2011-12-12 13:13 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-05-17 18:47:15 UTC
net-analyzer/w3af-1.0_rc5 does not work with python3.2


ago@amd64box ~ $ w3af_gui 
  File "./w3af_gui", line 23
    except w3afException, w3:
                        ^
SyntaxError: invalid syntax



Add python-3.2 as a block
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-17 18:49:06 UTC
This syntax is incompatible with all versions of Python 3.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-05-27 09:48:59 UTC
Fixed in -r1
Comment 3 Agostino Sarubbo gentoo-dev 2011-05-27 11:25:40 UTC
I must reopen...it does not work for me. Same error also in 1.0 version
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2011-05-27 11:31:40 UTC
It does not work if you have python3 as default python interpreter. I don't know how to force it to use python2 no matter what. I guess I could use some python help.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2011-12-12 13:13:59 UTC
Created attachment 295559 [details, diff]
ebuild patch

gentoo64 net-analyzer # e5
python-3.2 globally
gentoo64 net-analyzer # emerge w3af
>>> Emerging (1 of 1) net-analyzer/w3af-1.0
>>> Installing (1 of 1) net-analyzer/w3af-1.0
Comment 6 Mike Gilbert gentoo-dev 2011-12-21 08:05:23 UTC
+  21 Dec 2011; Mike Gilbert <floppym@gentoo.org> w3af-1.0_rc5-r1.ebuild:
+  Force usage of python2. Patch by Ian Delaney. Resolves bug 367801.