Message90457
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\\*.*' |
|
Date |
User |
Action |
Args |
2009-07-12 20:22:44 | cgohlke | set | recipients:
+ cgohlke |
2009-07-12 20:22:44 | cgohlke | set | messageid: <1247430164.29.0.0724763544583.issue6470@psf.upfronthosting.co.za> |
2009-07-12 20:22:42 | cgohlke | link | issue6470 messages |
2009-07-12 20:22:41 | cgohlke | create | |
|