New submission from Chris Moore:

To reproduce, put a python module in a zip file (I have been using wheels but I 
assume any module in a zip file will have the same error?) , add the absolute 
extended-length path to sys.path (add '\\\\?\\' to the front of the normal 
absolute path, so '\\\\?\\c:\\Users\\cc\\test.zip' instead of 
'c:\\Users\\cc\\test.zip'), then attempt to import a module that is contained 
in the zip file.

I have seen this issue so far on 3.4.3 and 3.5.1.  I have not tested 3.4.4 yet.

Adding directories that are extended-length paths to sys.path does allow 
importing modules contained in those directories, and of course using a non 
extended-length path to a zip file works as long as that path contains less 
than 260 characters.

----------
components: Interpreter Core, Windows
messages: 257136
nosy: Chris Moore, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Cannot import modules out of zip file with extended-length path on 
windows
type: behavior
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25968>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to