Duke Dougal
unread,Jun 11, 2012, 9:57:03 AM6/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to boto-users
Hello there,
I am using the neo branch of boto with Python 3.2. I get the
following error for the code below. Does this make sense to anyone?
Is this a Python3 problem?
ubuntu@:~/devel$ python3.2 s3createfile.py
Traceback (most recent call last):
File "s3createfile.py", line 3, in <module>
bucket = s3.get_bucket('jobapplicationsinbound')
File "/usr/local/lib/python3.2/dist-packages/boto-2.3.0-py3.2.egg/
boto/s3/connection.py", line 372, in get_bucket
bucket.get_all_keys(headers, maxkeys=0)
File "/usr/local/lib/python3.2/dist-packages/boto-2.3.0-py3.2.egg/
boto/s3/bucket.py", line 347, in get_all_keys
'', headers, **params)
File "/usr/local/lib/python3.2/dist-packages/boto-2.3.0-py3.2.egg/
boto/s3/bucket.py", line 297, in _get_all
l.append('%s=%s' % (urllib.quote(k), urllib.quote(str(v))))
AttributeError: 'module' object has no attribute 'quote'
ubuntu@:~/devel$
import boto
s3 = boto.connect_s3()
bucket = s3.get_bucket('jobapplicationsinbound')
key = bucket.new_key('my_key_name')
key.set_contents_from_string('This is a test of S3')
Thanks