[issue32866] zipimport loader.get_data() requires absolute zip file path

2019-01-17 Thread Nina Zakharenko


Change by Nina Zakharenko :


--
nosy: +nnja

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32866] zipimport loader.get_data() requires absolute zip file path

2019-01-17 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

I believe this bug does not affect Python 3.8:

(Using a Python 3.8 virtualenv):

% python demo.pyz 
Reading: resource.txt
Length: 19
% python `pwd`/demo.pyz 
Reading: resource.txt
Length: 19

I think it's too risky (and too much work, given it would have to be ported to 
the C implementation of zipimport) to change this in earlier Pythons.  So, 
closing.

--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed
versions:  -Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32866] zipimport loader.get_data() requires absolute zip file path

2018-09-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

zipimport has been rewritten in pure Python (issue25711).

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32866] zipimport loader.get_data() requires absolute zip file path

2018-02-17 Thread Barry A. Warsaw

New submission from Barry A. Warsaw :

Over in https://gitlab.com/python-devs/importlib_resources/issues/48 we have a 
report of a FileNotFoundError when trying to read a resource from a zip file.  
Upon further debugging, I found that zipimport's loader.get_data() raises an 
unexpected OSError.  Interestingly, if the path to the zip file is absolute, 
everything works as expected, but if the path is relative, then it fails.

There's probably a missing abspath() in there somewhere, but as zipimport is 
written in C, I really didn't spend much time digging around in gdb.

--
messages: 312296
nosy: barry
priority: normal
severity: normal
status: open
title: zipimport loader.get_data() requires absolute zip file path
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com