This forum has been archived. All content is frozen. Please use KDE Discuss instead.

No IP Addresses to Convert in PeerGuardian Filter File

Tags: None
(comma "," separated)
trek4000
Registered Member
Posts
41
Karma
0
Ubuntu 9.04 Ktorrent 3.2.1 Everything has worked great until this last month, and then, this error started showing up.

Every week, generally late Friday, I manually down splist.zip from http://blocklistpro.com/download-center/ip-filters/

I have a special file I put the downloaded splist.zip file into on my system at /home/lucky/Ktorrent/splist--ktorrent and I also have ktorrent's PeerGuardian filter IP Filter File pointed to the same address to grab the splist.zip file. So, I overwrite the old splist.zip file with the new one each week.

Which means, all I have to do is click "download/convert" on Ktorrent, and it grabs the splist.zip file out of my folder, asks if I want to reconvert it again since it exists already from last time I did this, and I say yes, and it converts it counting off the percentage completed and finsihes.

But then it gives me this error box: There are no IP addresses to convert in /home/lucky/.kde/share/apps/ktorrent/level1.txt

I have been to that url of /home/lucky/.kde/share/apps/ktorrent/level1.txt and it appears to me that level1.txt exists and there are indeed IP addresses in it! But when I click OK on the error box, the level1.txt file vanishes.

Here is a sample of what is in level1.txt before I click OK on the error box----
000.000.000.001 - 003.255.255.255 , 000 , Bogon, inv
004.000.025.146 - 004.000.025.148 , 000 , s0-0.cisco
004.000.026.014 - 004.000.029.024 , 000 , p1-0.cisco
004.000.038.000 - 004.000.038.255 , 000 , Level 3 Co
004.000.159.000 - 004.000.159.255 , 000 , Level 3 Co
004.000.181.000 - 004.000.182.255 , 000 , Level 3 Co
004.001.075.000 - 004.001.075.255 , 000 , Level 3 Co
004.001.129.000 - 004.001.140.255 , 000 , Level 3 Co
004.001.143.000 - 004.001.144.255 , 000 , Level 3 Co
004.002.144.032 - 004.002.144.047 , 000 , Internatio
004.002.144.064 - 004.002.144.095 , 000 , Cisco Syst

What is going wrong?
Thanks for your help :D
George
Moderator
Posts
5421
Karma
1
The format has changed, KT looks for a : not a ,

I'm gonna make the blocklist parsing more flexible, so this can be supported properly.
trek4000
Registered Member
Posts
41
Karma
0
Thanks George! I guess I will see if I can get an editor to globally swap : for , in the meantime.

Have a great day!
hp400
Registered Member
Posts
6
Karma
0
OS
Hello Folks!

I just followed the instructions, swapped all , to : (vi is the tool). I even removed all the Carriage Return's from the end of
the lines, and cut out only a few lines. I ended up with a splist.txt which exactly contains that:

004.000.038.000 - 004.000.038.255 : 000 : Level 3 Co
004.000.159.000 - 004.000.159.255 : 000 : Level 3 Co
004.000.181.000 - 004.000.182.255 : 000 : Level 3 Co
004.001.075.000 - 004.001.075.255 : 000 : Level 3 Co
004.001.129.000 - 004.001.140.255 : 000 : Level 3 Co
004.001.143.000 - 004.001.144.255 : 000 : Level 3 Co


When using this as an input file (zipped or not) I still get message:
There are no IP addresses to convert in /home/hp/.kde/share/apps/ktorrent/level1.txt
Before pressing the OK Button I can find a level1.txt and a level1.zip file in the .../.kde/....ktorrent
directory. These are identical to my splist files. After pressing the OK button the two level1* files
disappear.


I am using ktorrent 3.2.1 on Kubuntu Jaunty Jackalop

Any ideas what I could do about this situation?
Hans-Peter from Austria
trek4000
Registered Member
Posts
41
Karma
0
Yes. The same thing happened to me when I did the swap, also.
George
Moderator
Posts
5421
Karma
1
You also need to remove the spaces around the - between the two IP addresses of each line.

Seeing that this is a rather annoying problem, I'm gonna backport the more flexible parsing code to the stable branch and release 3.2.4.
hp400
Registered Member
Posts
6
Karma
0
OS
Sorry, that didn't work either. First I removed the blanks between the two IP adresses,
then all the blanks in the file. Both attempts ended with the same message as before.

greetings
Hans-Peter
salem
Registered Member
Posts
1
Karma
0
So I downloaded the Splist file, and extracted the txt.

I then removed the spaces around the " - ", as advised.

Also changed the "," to ":". But that didn't work.

Then I saw someone else posting a different format of file in their thread.

So I just chopped out everything after the IP ranges.

from a terminal:
cut -c 1-31 splist.txt > splist.txt2

Now, all my file was, was a list of IP ranges, separated by a "-" with no spaces. nothing else.
eg:
000.000.000.001-003.255.255.255
004.000.025.146-004.000.025.148
004.000.026.014-004.000.029.024
004.000.038.000-004.000.038.255
...etc

then i opened the .txt2 file in ktorrent, clicked download/convert, and it seemed to work. It at least says something is loaded.

hope that's useful to someone until the parser gets tweaked.

cheers,

salem
George
Moderator
Posts
5421
Karma
1
Upgrade to 3.2.4, it will support all possible formats. The only thing it requires is that there are 2 IP addresses in each line, the first one will be taken as the start of the range, and the second one as the end.
amcleod
Registered Member
Posts
10
Karma
0
Tried
Code: Select all
cut -d' ' -f1,3 splist.txt | tr ' ' : > blocklist.txt
which seemed to work.


Slackware 13.1; KDE 4.2.4; KTorrent 3.3.4;
Marianne
Registered Member
Posts
2
Karma
0
Hi everyone!

First I dont speak english so have patience. "No IP Addresses to Convert in PeerGuardian Filter File" is still happening in ktorrent-3.3 when in the dialog box a direction like
http://list.iblocklist.com/?list=bt_level1 is given. If a local file is given a convertion process is started but there is no message of success or no failure; and if you look in
FILE>IPFILTER box you see it is empty so I think than the ipfilter is inactive.

It would be nice get this one working.

Lot of Thanks :D
George
Moderator
Posts
5421
Karma
1
This is now fixed
randomUser34
Registered Member
Posts
2
Karma
0
Not in 3.2.4 it isn't.

Fresh install and there it is, loud & proud

"There are no IP addresses to convert in /snip/snip/home/.kde/share/apps/ktorrent/level1.txt"
randomUser34
Registered Member
Posts
2
Karma
0
Hold on, it might be :oops:

if you have a split.zip with an error it gives the same error.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft