open() error ---- what am I missing?
Eric Torstenson
torstenson at no-spam.oti-hsv.com
Mon Mar 4 14:04:56 EST 2002
OK I figured it out. It was a misleading error message. For those with
similar troubles I have listed an explanation (and I was being stupid...I
sort of figured as much)
It was a bad path name after all. It is a nested structure, where at one
point I left off one extra "\" (I'm using windows). I had looked at that
path a dozen times, somehow missing that single "\" down toward the
middle....
"Oleg Broytmann" <phd at phd.pp.ru> wrote in message
news:mailman.1015263607.7574.python-list at python.org...
> On Mon, Mar 04, 2002 at 11:31:46AM -0600, Eric Torstenson wrote:
> > self.fLog=open(filename, mode='w')
> > IOError: invalid argument: w
>
> Do you have the os module imported? Especially in the form
> "from os import *" or "from os import open"?
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
> Programmers don't die, they just GOSUB without RETURN.
>
More information about the Python-list
mailing list