[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: urlretrieve() returns (filename, file-like object). It's a bug in your code, not in Python itself ;-) -- nosy: +haypo resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread Jacob B
New submission from Jacob B: The error occurs when I attempt to run the following code: from urllib.request import urlretrieve from os import path from zipfile import ZipFile download_url = "https://www.dropbox.com/s/obiqvrt4m53pmoz/tesseract-4.0.0-alpha.zip?dl=1"; def setup_program(): z