New submission from Christoph Gohlke <cgoh...@uci.edu>: On Windows Vista 64-bit, when running Python 2.6.2 (32 or 64 bit) from a network share, e.g. \\Server\Share\python26\python.exe, importing Tkinter fails with "WindowsError: [Error 3] The system cannot find the path specified". See session output below for traceback.
This is due to incomplete support for long UNC (UNCW) paths such as \\?\UNC\Server\Share\File in FixTk.py. The attached patch solves this issue. -Christoph C:\>\\server\share\python26\python.exe Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from Tkinter import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "\\server\share\python26\lib\lib-tk\Tkinter.py", line 38, in <module> import FixTk File "\\server\share\python26\lib\lib-tk\FixTk.py", line 59, in <module> for name in os.listdir(prefix): WindowsError: [Error 3] The system cannot find the path specified: u'UNC\\server\\share\\Python26\\tcl\\*.*' ---------- components: Tkinter, Windows files: Tkinter-import-UNCW.patch keywords: patch messages: 90457 nosy: cgohlke severity: normal status: open title: Tkinter import fails when running Python.exe from a network share type: crash versions: Python 2.6 Added file: http://bugs.python.org/file14488/Tkinter-import-UNCW.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6470> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com