Wapiti 2.2.1 on CentOS 6

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
TomStage
Forum User
Forum User
Posts: 8
Joined: Wed May 30, 2012 5:09 am
Location: Copenhagen

Wapiti 2.2.1 on CentOS 6

Unread post by TomStage »

Hi All

I have a problem running Wapiti on a CentOS 6 64bit system, following is the error i recieve from running Wapiti:

Code: Select all

 
[root@[MASKED] ~]# wapiti
Traceback (most recent call last):
  File "/usr/bin/wapiti", line 40, in <module>
    from report.htmlreportgenerator import HTMLReportGenerator
ImportError: No module named htmlreportgenerator
From what i can find on the net, and on my box, the Wapiti htmlreportgenerator.py is correctly located in /usr/lib/python2.6/site-packages/wapiti/report and i havent found any solution for it yet.

Cheers Tom
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti 2.2.1 on CentOS 6

Unread post by scott »

That could be the version of python-httplib2 you have, I just pushed an update (0.7.4) for it. It wasnt in the repo until today, so you may have pulled that from some other source and its not the one wapiti needs.
TomStage
Forum User
Forum User
Posts: 8
Joined: Wed May 30, 2012 5:09 am
Location: Copenhagen

Re: Wapiti 2.2.1 on CentOS 6

Unread post by TomStage »

Hi Scott

Thanks for yopur quick reply.

I have tested it this morning, and it still dosent work, looke below:

Code: Select all

[root@[MASKED] ~]# yum list wapiti python-httplib2
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * atomic: www7.atomicorp.com
 * base: mirror.fysik.dtu.dk
 * epel: ftp.uninett.no
 * extras: mirror.fysik.dtu.dk
 * updates: mirror.fysik.dtu.dk
Installed Packages
python-httplib2.noarch                                         0.7.4-1.el6.art                                         @atomic
wapiti.noarch                                                  2.2.1-3.el6.art                                         @atomic
[root@[MASKED] ~]#

Code: Select all

[root@[MASKED] ~]# wapiti
Traceback (most recent call last):
  File "/usr/bin/wapiti", line 40, in <module>
    from report.htmlreportgenerator import HTMLReportGenerator
ImportError: No module named htmlreportgenerator
[root@[MASKED] ~]#
I ran the command yum erase python-httplib2 (which came from the EPEL repository and was of the same version), this command also removed the wapiti package.

Then i disabled the EPEL repository.

Then i ran the command yum install wapiti, and it installed what is shown above.

The "funny" part is that if i get the Wapiti source, i can run wapiti with no problem, even with the python-httplib2 from EPEL. So iam not sure where the problem is in the RPM package.

Code: Select all

[root@[MASKED] src]# pwd
/home/Scanning/wapiti-2.2.1/src
[root@[MASKED] src]# python wapiti.py
Wapiti-SVN - A web application vulnerability scanner

 Usage: python wapiti.py http://server.com/base/url/ [options]
I hope we can find a solution for this, let me know if i can help.

Cheers Tom
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti 2.2.1 on CentOS 6

Unread post by scott »

No doubt, since htmlreportgenerator is part of the wapiti package itself.. so I did some side by sides and narrowed this down to a conflict with something else, namely libreport-python (required by abrt). This overlaps with the report.html* functions since it happens in site-packages, it gets picked first and causes the problem.

So I just updated the package with a different path, in version 2.2.1-4
TomStage
Forum User
Forum User
Posts: 8
Joined: Wed May 30, 2012 5:09 am
Location: Copenhagen

Re: Wapiti 2.2.1 on CentOS 6

Unread post by TomStage »

Hi Scott

The update you did in Wapiti 2.2.1-4 seems to have solved the problem.

Cheers Tom
Post Reply