[ python-Bugs-868743 ] os.tmpfile seek(0) fails on cygwin
SourceForge.net
noreply at sourceforge.net
Fri Jan 2 15:21:53 EST 2004
Bugs item #868743, was opened at 2004-01-01 01:29
Message generated for change (Comment added) made by jlt63
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=868743&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Jason Tishler (jlt63)
Summary: os.tmpfile seek(0) fails on cygwin
Initial Comment:
[12:25] $python
Python 2.3.3 (#1, Dec 22 2003, 11:56:28)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for
more information.
>>> from os import tmpfile
>>> f = tmpfile()
>>> f.seek(0)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 29] Illegal seek
>>>
----------------------------------------------------------------------
>Comment By: Jason Tishler (jlt63)
Date: 2004-01-02 11:21
Message:
Logged In: YES
user_id=86216
Hmm...was someone looking over my shoulder? Guess
what I was investigating before I broke for New
Years?
$ python /usr/lib/python2.3/test/regrtest.py -l test_os
test_os
test test_os failed -- Traceback (most recent call last):
File "/tmp/python.280/usr/lib/python2.3/test/test_os.py",
line 50, in test_tmpfile
IOError: [Errno 29] Illegal seek
The good news is this problem is fixed in Cygwin
CVS:
http://cygwin.com/ml/cygwin-cvs/2003-q4/msg00076.html
The bad news is I must rebuild against the next
official Cygwin release (i.e. 1.5.6) before users
can get this fix. Just dropping in the latest
Cygwin snapshot will not work, because Cygwin's
64-bit I/O magic is resolved at link time not
runtime.
I will release a new Cygwin Python package ASAP
after Cygwin 1.5.6 is released.
BTW, doesn't it *always* work on Linux! :,)
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2004-01-01 12:17
Message:
Logged In: YES
user_id=33168
Works on Linux. Jason, any ideas?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=868743&group_id=5470
More information about the Python-bugs-list
mailing list