Page 1 of 1

Wapiti bug?

Posted: Mon Feb 27, 2012 5:28 am
by laoneo
Hello
I've installed wapiti on an almost clean CentOS 5.6 box trough yum (yum install wapiti). The installation went without any problems. When I execute the following command now
I'm getting the following error
Traceback (most recent call last):
File "/usr/bin/wapiti", line 366, in ?
wap = Wapiti(url)
File "/usr/bin/wapiti", line 158, in __init__
self.HTTP = HTTP.HTTP(rooturl)
File "/usr/lib/python2.4/site-packages/wapiti/net/HTTP.py", line 65, in __init__
self.cookiejar = libcookie.libcookie(self.server)
File "/usr/lib/python2.4/site-packages/wapiti/net/libcookie.py", line 37, in __init__
self.target = urllib2.httplib.urlsplit(url).hostname
AttributeError: 'tuple' object has no attribute 'hostname'
Is there any package dependencies problem?

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 8:16 am
by scott
Shoot... wapiti might only be compatible with python 2.5

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 8:45 am
by faris
Yeah, there's a load of really interesting stuff that needs a newer version of Python than you get out of the box with RHEL/Centos 4/5, and it is really annoying (Centos 6 seems ok for now).

Upgrading Python by compiling from source on a hosting server or VPS host node, without fully testing compatibility first, is not something to do lightly, and you get stuck having to test and compile again and again whenever bug/security fixes come out.

I don't know what, if any, elements of Plesk or Virtuozzo or anything else might use Python, but something is bound to break if you don't do your homework ;-)

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 8:51 am
by laoneo
I tried once python26 to install and change the wapiti script to use python26 but it was breaking other things. Is there a tutorial how to bring wapiti to work on CentOS 5? I'm still a newbie on this and only want to bring wapiti to work.

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 9:05 am
by scott
Not that I found, but I did run across some other python 2.4 projects that ran into this here:

https://bugzilla.redhat.com/show_bug.cg ... &id=525202

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 9:10 am
by laoneo
In my opinion wapiti should have dependencies to all the necessary python 2.6 packages and use also use version 2.6. Can this be considered a bug in the wapiti package?

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 10:46 am
by scott
Yeah its an upstream bug. I dont think they'd have to go as far bundling python with it though, just modify the function to work with 2.4. Clearly smolt was able to do it

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 11:47 am
by laoneo
Where should I fill the bug?

Re: Wapiti bug?

Posted: Mon Feb 27, 2012 1:46 pm
by scott
Looks like the bug tracker is here:

http://sourceforge.net/tracker/?group_i ... tid=847490

Re: Wapiti bug?

Posted: Tue Feb 28, 2012 1:27 am
by laoneo
Ok I thought you guys are maintaining the package and not the developer itself...will see what I can get out in the tracker there.

Re: Wapiti bug?

Posted: Tue Feb 28, 2012 7:52 am
by scott
Yeah we maintain the packages, and when we can fix something like this we will. This one is a bit too deep though, and only upstream can tackle it.

Re: Wapiti bug?

Posted: Tue Feb 28, 2012 8:22 am
by laoneo
Thanks. I hope the developer will not argue that it is the responsibility of the packager to define the correct dependencies for the RPM. Anyway i will see what I can get out.....

Re: Wapiti bug?

Posted: Tue Feb 28, 2012 5:39 pm
by scott
Yeah they could punt it and just say python 2.4 is not supportable. It wouldn't be the first time that happened.