Serge Orlov <somb@pobox.ru>:
"Richard" <rshaw2@midsouth.rr.com> wrote in
message
news:84e0f331.0401271515.2ed5c4f0@posting.google.com...
> I get an error when trying to use it... here's the
problem below:
>
> C:\Tools>ip2cc.py www.google.com
> Traceback (most recent call last):
> File "C:\Tools\ip2cc.py", line 338, in ?
> db = CountryByIP(db_file)
> File "C:\Tools\ip2cc.py", line 14, in __init__
> self.fp = open(filename, 'rb')
> IOError: [Errno 2] No such file or directory:
'C:\\Tools\\ip2cc.db'
>
> Looks like the database file is not included with the
download.
Try running update.py first to retrieve the database
from internet.
The exception should of course be caught by ip2cc
script and
a clear explanation should be printed.
Logged In: YES
user_id=63454
Check for IOError when used from command line