file open problem

N

Neil MacGaffey

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 to
work on my laptop. Since using Python on my laptop is
realistically the only way I'm going to find the time
to learn Python, this is a big problem for me. Here's
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
([email protected]) - see
'Help/About PythonWin' for further copyright
information.Traceback (most recent call last):
File "<interactive input>", line 1, in ?
IOError: [Errno 2] No such file or directory:
'c:\\temp\\pytest.txt'

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 environment.
I've obtained a fresh download of Python 2.3.3 and the
Win32 extension and have re-installed both a couple of
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
Neil

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
 
L

Larry Bates

It is just a guess but pytest.txt doesn't appear
to exist in c:\temp directory on the laptop.
Double check for the existence of this file.

-Larry


Neil MacGaffey said:
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 to
work on my laptop. Since using Python on my laptop is
realistically the only way I'm going to find the time
to learn Python, this is a big problem for me. Here's
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
([email protected]) - see
'Help/About PythonWin' for further copyright
information.Traceback (most recent call last):
File "<interactive input>", line 1, in ?
IOError: [Errno 2] No such file or directory:
'c:\\temp\\pytest.txt'

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 environment.
I've obtained a fresh download of Python 2.3.3 and the
Win32 extension and have re-installed both a couple of
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
Neil

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,170
Latest member
Andrew1609
Top