| IOError | Python 2.4.3: /usr/bin/python Wed May 22 18:47:40 2013 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/hyperrus/public_html/cgi-bin/contacts.py |
| 170 sys.exit(0) |
| 171 |
| 172 if __name__ == "__main__": |
| 173 main() |
| 174 |
| main = <function main> |
| /home/hyperrus/public_html/cgi-bin/contacts.py in main() |
| 124 |
| 125 # Load the data file |
| 126 data = parse_data_file() |
| 127 |
| 128 # Check for valid referer, that we received the section argument |
| data undefined, global parse_data_file = <function parse_data_file> |
| /home/hyperrus/public_html/cgi-bin/contacts.py in parse_data_file() |
| 77 "Parse the datafile and return a dictionary" |
| 78 data = {} |
| 79 for line in file(DATA_FILE): |
| 80 if not line or line == "\n": break |
| 81 (section, receiver) = line.split("=>") |
| line undefined, builtin file = <type 'file'>, global DATA_FILE = '/home/hyper/contacts.data' |
IOError: [Errno 2] No such file or directory: '/home/hyper/contacts.data'
args =
(2, 'No such file or directory')
errno =
2
filename =
'/home/hyper/contacts.data'
strerror =
'No such file or directory'