You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a review of 'requests.get(stream=True) will get incomplete data #4227' by Luckasa, I realized that I needed to 'chunk' the file (this issue is due to running large files with 32 bit Python 3). I made the following change to 'download_reference_data', which resolved the problem:
Changed line 93 from:
open(dest, 'wb').write(r.content)
to:
open(dest, 'wb').write(r.content)
with open(dest, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024*36):
if chunk:
f.write(chunk)
f.flush()
r.close()
The text was updated successfully, but these errors were encountered:
After a review of 'requests.get(stream=True) will get incomplete data #4227' by Luckasa, I realized that I needed to 'chunk' the file (this issue is due to running large files with 32 bit Python 3). I made the following change to 'download_reference_data', which resolved the problem:
Changed line 93 from:
open(dest, 'wb').write(r.content)
to:
open(dest, 'wb').write(r.content)
The text was updated successfully, but these errors were encountered: