[Tutor] general basic question
Andreas Perstinger
andipersti at gmail.com
Thu Feb 9 10:46:54 CET 2012
On Wed, 8 Feb 2012 23:54:58 -0800 (PST) ken brockman
<krush1954 at yahoo.com> wrote:
> I'm back on the list again, and if not too late, here is the asked
> for trace. i've managed to replicate the original error msg, by
> removing the pickled file Genfacts.p, from the directory.
> Traceback (most recent call last):
> File "/home/bob/Ninja/ArtyNOW2.py", line 120, in <module> Ginfo =
> General_info()
> File "/home/bob/Ninja/ArtyNOW2.py", line 69, in General_info file4 =
> open("Genfacts.p", "rb")
> IOError: [Errno 2] No such file or directory: 'Genfacts.p'
Because you have deleted "Genfacts.p" you are trying to open an
non-existing file. So check if the file exists before opening it.
Bye, Andreas
More information about the Tutor
mailing list