Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the patch. Committed as r81701, r81702, r81703 and r81704.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6470
Christoph Gohlke cgoh...@uci.edu added the comment:
Any chance to get this fixed in 2.7? On Windows, the bug prevents some popular
applications and packages, such as pymol and matplotlib, to be used when
installed on network shares, as is common practice in computer labs.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
Can somebody please explain how the test and the reported bug are related? The
patch seems to deal with paths that have UNC in them; and the test seems not
to.
--
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Also, cgohlke, can you please provide complete, detailed instructions on how to
reproduce this issue? How do I get python.exe into \\Server\Share in the first
place? And why did you not map a network drive letter?
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
to reproduce: on Vista, start
\\%COMPUTERNAME%\c$\python26\python.exe -c import Tkinter; print Tkinter
In this case, the path returned by GetFinalPathNameByHandle starts with
\\?\UNC\.
--
Christoph Gohlke cgoh...@uci.edu added the comment:
Btw, this bug is also present in Python 3.1, of course when using tkinter
instead of Tkinter.
Here is how to reproduce the bug on your local system: Install python-2.7b2.msi
into C:\Python27. Then open a command prompt with administrator
Christoph Gohlke cgoh...@uci.edu added the comment:
The patch seems to deal with paths that have UNC in them;
and the test seems not to.
The UNCW path is a result of the call to
ctypes.windll.kernel32.GetFinalPathNameByHandleW() in FixTk.py, which
translates \\Server\Share\File paths to
Christoph Gohlke cgoh...@uci.edu added the comment:
This issue is also present in Python 2.7b2.
The svn trunk requires a slightly different patch (attached).
--
versions: +Python 2.7
Added file: http://bugs.python.org/file17304/Tkinter-import-UNCW-trunk.patch
Changes by Brian Curtin cur...@acm.org:
--
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6470
___
___
Python-bugs-list
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
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Confirmed here. Added a unit test.
--
assignee: - loewis
keywords: +needs review
nosy: +amaury.forgeotdarc, loewis
stage: - patch review
Added file: http://bugs.python.org/file14491/tk-unc.patch
11 matches
Mail list logo