Steve Dower added the comment: Oddly enough, this works with 3.3.4 as released:
>>> import sys, zipfile >>> with zipfile.ZipFile('test.zip', 'w') as f: ... f.writestr('test/__init__.py', b'print("Success!")') ... >>> sys.path[:] = ['test.zip'] >>> import test Success! Maybe wheel is creating archives with settings that zipimport doesn't like? (Unless you invoke load_module directly...) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20621> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com