[New-bugs-announce] [issue8010] tkFileDialog.askopenfiles crashes on Windows 7
report at bugs.python.org
Wed Feb 24 10:52:05 CET 2010
New submission from Patrick Holz <patrick.holz at googlemail.com>:
When using the function "tkFileDialog.askopenfiles()" on Windows 7 (32-bit) the following error occurs after choosing one or more arbitrary files:
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkFileDialog
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\lib-tk\tkFileDialog.py", line 163, in askopenfiles
IOError: [Errno 2] No such file or directory: u'C'
So it seems that the colon after "C" (the drive letter) is wrongly used as a delimiter. The functions "askopenfile" (for a single file to choose) and "askopenfilenames" (to choose only the filenames instead of open the files immediately) don't seem to be affected, furthermore the error doesn't occur on Linux or WinXP.
title: tkFileDialog.askopenfiles crashes on Windows 7
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce