"Message file not found"

Will Rose cwr at cts.com
Mon Dec 27 07:50:29 EST 1999


Stefan Schwarzer <s.schwarzer at ndh.net> wrote:
: Hello everybody,

: I use the Python port (1.5.2) for OS/2 (Warp 4) and have the
: following problem: When I type (for example)

:     >>> f=open( 'spam', 'r' )   # spam doesn't exist

: I get

:     Traceback (innermost last):
:       File "<stdin>", line 1, in ?
:     IOError: [Errno 10] Message file not found.: 'spam'

: while on Solaris it reads

:     Traceback (innermost last):
:       File "<stdin>", line 1, in ?
:     IOError: [Errno 2] No such file or directory: 'spam'

: Obviously, the (more specific) error messages in OS/2 are not there,
: but so far I couldn't figure out how to "get them".

At a guess it's a setup problem.  I get (on Warp 3.0):

Python 1.5.2 (#0, Jun 27 1999, 11:23:01) [VisualAge C/C++] on os2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> f=open("spam", "r")
Traceback (innnermost last):
  File "<stdin>", line 1, in ?
IOError: [Errno 10] The file cannot be found.: 'spam'
>>>

which seems a bit more useful.  But the only environment variables
I have declared are the standard PYTHONHOME and PYTHONSTARTUP, so
there's nothing unusual about my setup.


Will
cwr at crash.cts.com




More information about the Python-list mailing list