[ANN] ip2cc-0.3: now it works with Python 2.3

Serge Orlov sombDELETE at pobox.ru
Tue Jan 27 19:02:44 EST 2004


"Richard" <rshaw2 at midsouth.rr.com> wrote in message news:84e0f331.0401271515.2ed5c4f0 at 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.

-- Serge.





More information about the Python-list mailing list