python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
AWS boto iterator returns bytes instead of strings: _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
We have a large .csv file on an S3 bucket. We want to read it into a dictionary for processing line by line. botocore.response.StreamingBody provides an iterator that you can get with iter_lines(). Ho...
Stan Ostrovskii
Votes: 0
Answers: 1
list S3 objects till only first level
I am trying to list s3 obejcts like this:
for key in s3_client.list_objects(Bucket='bucketname')['Contents']:
logger.debug(key['Key'])
I just want to print the folder names or file names that are...
x89
Votes: 0
Answers: 2
Problems whit import boto3 in a virtual env
I'm trying to import boto3 modeule in a virtual environemnt.
import os
import boto3
Although I'm having the following problem with import command:
AttributeError Traceback (...
Sandra Silva
Votes: 0
Answers: 2
ssl error with copying file in s3 server?
I tried to collect static files on the S3 Server for my Django project with the command :
python manage.py collectstatic
But It failed because of SSLError :
During handling of the above exception, an...
anthonya
Votes: 0
Answers: 1