This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry
Date 2018-02-18.02:49:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518922161.55.0.467229070634.issue32866@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-02-18 02:49:21barrysetrecipients: + barry
2018-02-18 02:49:21barrysetmessageid: <1518922161.55.0.467229070634.issue32866@psf.upfronthosting.co.za>
2018-02-18 02:49:21barrylinkissue32866 messages
2018-02-18 02:49:20barrycreate