This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Patrick.Holz
Recipients Patrick.Holz
Date 2010-02-24.09:52:03
SpamBayes Score 7.0055073e-13
Marked as misclassified No
Message-id <1267005125.4.0.826921627128.issue8010@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>> tkFileDialog.askopenfiles()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\lib\lib-tk\tkFileDialog.py", line 163, in askopenfiles
    ofiles.append(open(filename, mode))
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.
History
Date User Action Args
2010-02-24 09:52:05Patrick.Holzsetrecipients: + Patrick.Holz
2010-02-24 09:52:05Patrick.Holzsetmessageid: <1267005125.4.0.826921627128.issue8010@psf.upfronthosting.co.za>
2010-02-24 09:52:04Patrick.Holzlinkissue8010 messages
2010-02-24 09:52:03Patrick.Holzcreate