Comments (3)
In this line which is mentioned:
C:\users\palmerf\appdata\local\programs\python\python38\lib\site-packages\glacier_upload\get_job_output.py", line 41, in get_job_output
Can you try changing
file.write(response['body'].read())
while 1:
data = file_output.read(3.2E7) # 32 MB chunk at a time
if not data:
break
file.write(data)
This should provide a batching like read from the read rather than downloading it all at once. Referred to this example here: https://stackoverflow.com/a/4971681
If this works, I can submit a pull request to fix it.
from glacier-upload.
This is what worked:
with open(file_name, "xb") as file:
while 1:
data = response["body"].read(int(2**25) # 32 MB chunk at a time
if not data:
break
file.write(data)
This is not ideal - especially if the archive was created from a list of files. In that case "upload.py"
creates a tarfile.
Debugging this program is either time-consuming - a 4 hour wait for a download - or expensive if you add provisioned capacity. I've decided to go with one of the Windows solutions.
from glacier-upload.
This should be solved in version 2.0 with chunked downloading of archives.
from glacier-upload.
Related Issues (18)
- ImportError: No module named 'glacier_upload' HOT 4
- Update package version on pypi HOT 1
- Removing click from commands HOT 2
- Fail at 10k+ parts? HOT 2
- AttributeError: 'module' object has no attribute 'log2' HOT 1
- Reattempt failed upload part instead of crashing immediately HOT 1
- FR: sync directory HOT 1
- delete_glacier_archive shows TypeError: delete_archive() got an unexpected keyword argument 'upload_id' HOT 2
- Exception occured: AttributeError("type object 'ConnectionClosedError' has no attribute 'write'",) HOT 3
- botocore.exceptions.NoRegionError: You must specify a region HOT 1
- delete_glacier_archive options error HOT 1
- Unable to upload small files to glacier HOT 2
- bac on value change
- Function import name mismatch HOT 1
- PIP version actualization HOT 1
- Tried to upload 2Tb file and got OOM error HOT 2
- Unable to install glacier_upload HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glacier-upload.