This error can appear when you are using the wrong version of the data file. Ensure you are using the right data file. It can also occur when the data file is missing, and this message is Python's way of telling you that you are trying to split data that is "non-existent" - try checking these first.
--Paul.
Thanks for the help Paul! I thought that the error might involve a problem with the text file. The weird thing is that the program as written on page 119 runs correctly (giving the error shown on that page). When I add the "(name,score)=line.split()" line I get problems. I know that the text file is in the same directory as the program so that's not the problem.
One other issue I've been having is that when I save a program, the dialog box defaults to saving it as a .py file type. But after saving, when I try to reopen the file using the dialog I don't get the file as a .py extension. I have to search for "all files ("*")" to find my program. Do I have a bad install perhaps? Thanks again for the help!
Roy
Update: I think I solved the problem. I changed the program file name suffix to ".py" and reloaded and ran the program correctly. I guess if the file doesn't have the .py suffix it isn't truly opened as a pyhton program. Feeling dopey, but learning!! Thnaks again.
Roy
This post has been edited by roygam: 28 February 2011 - 08:21 PM