All pastes #907740 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-17 21:22 UTC
rendered paste body
VOIP:/etc/apt# /usr/bin/ofcomverter.py
Ofcomverter Version 0.21
Copyright (C) 2008 Gary Hawkins <gary.hawkins@garysoft.co.uk>

This program is free software, licensed under the terms of the
GNU General Public Licence version 3 or, at your option, any later
version.  See http://www.gnu.org/licenses/ for full details

Downloading codelist.zip from http://www.ofcom.org.uk/telecoms/ioi/numbers/numbers_administered/codelist.zip...
Unzipping file s5_code.txt
Unzipping file s3_code.txt
Unzipping file s1_code.txt
Unzipping file sabc.txt
Unzipping file s10_code.txt
Unzipping file s9_code.txt
Unzipping file s8_code.txt
Unzipping file s7_code.txt
Traceback (most recent call last):
  File "/usr/bin/ofcomverter.py", line 322, in ?
    main()
  File "/usr/bin/ofcomverter.py", line 302, in main
    dbhandle=connect_to_db(dbtype,dbhostname,dbport,dbname,dbusername,dbpassword)
  File "/usr/bin/ofcomverter.py", line 238, in connect_to_db
    return PgSQL.connect(connectstring)
  File "/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 2210, in connect
    return Connection(connInfo, client_encoding, unicode_results)
  File "/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 2365, in __init__
    raise DatabaseError, m
libpq.DatabaseError: could not connect to server: Connection refused
        Is the server running on host "127.0.0.1" and accepting
        TCP/IP connections on port 5432?