file open problem
xpythonist at yahoo.com.br
Fri Jan 23 16:25:34 CET 2004
Are you sure that the file c:\temp\pytest.txt exists
in your laptop's hard disk?
--- Neil MacGaffey <neilmacgaffey at yahoo.com> escreveu:
> Hi - I'm new to python and am stymied by something
> that should be simple. The file open command below
> works fine on my desktop machine, but I cant get it
> work on my laptop. Since using Python on my laptop
> realistically the only way I'm going to find the
> to learn Python, this is a big problem for me.
> what I'm up against:
> PythonWin 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC
> v.1200 32 bit (Intel)] on win32.
> Portions Copyright 1994-2001 Mark Hammond
> (mhammond at skippinet.com.au) - see
> 'Help/About PythonWin' for further copyright
> >>> fobj = open(r'c:\temp\pytest.txt','r')
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> IOError: [Errno 2] No such file or directory:
> The laptop is a Sony VIAO that's about 2 years old.
> Its running Windows 2000, SP4. The desktop is an
> older machine, but with the same Windows
> I've obtained a fresh download of Python 2.3.3 and
> Win32 extension and have re-installed both a couple
> times with no apparent problems. I also tried
> dropping back to Python 2.3.2, but had same result.
> Any ideas as to what I should be looking at on this
> laptop that might be causing the problem?
> Thank you
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool.
> Try it!
Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
More information about the Python-list