Wapiti bug?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Wapiti bug?

Unread post 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?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post by scott »

Shoot... wapiti might only be compatible with python 2.5
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Wapiti bug?

Unread post 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 ;-)
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Re: Wapiti bug?

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post 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
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Re: Wapiti bug?

Unread post 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?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post 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
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Re: Wapiti bug?

Unread post by laoneo »

Where should I fill the bug?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post by scott »

Looks like the bug tracker is here:

http://sourceforge.net/tracker/?group_i ... tid=847490
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Re: Wapiti bug?

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post 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.
laoneo
Forum User
Forum User
Posts: 6
Joined: Mon Feb 27, 2012 5:19 am
Location: zurich

Re: Wapiti bug?

Unread post 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.....
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Wapiti bug?

Unread post 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.
Post Reply