>>> import boto>>> boto.__version__'2.25.0'>>> from boto.s3.connection import S3Connection>>> connection = S3Connection("secret","secret")>>> connection.lookup("ola")<Bucket: ola>>>> connection.get_bucket("ola")<Bucket: ola>
Not sure what is going on, but it would help to have the exact version
of boto you are using and the actual code snippet(bucket name changed
if necessary).
Also what does connection.lookup(bucket_name) show?
Sure, no problem:
>>> import boto
>>> boto.__version__
'2.25.0'
>>> from boto.s3.connection import S3Connection
>>> connection = S3Connection("secret","secret")
>>> connection.lookup("ola")
<Bucket: ola>
>>> connection.get_bucket("ola")
<Bucket: ola>
So it exists.
Yet you say it does not show up in get_all_buckets?
Is this a location specific bucket?
>>> [bucket for bucket in connection.get_all_buckets() if bucket.name == "ola"][]
On 04/16/2014 09:57 AM, Diogo Vieira wrote:Not sure what is going on, but it would help to have the exact version
of boto you are using and the actual code snippet(bucket name changed
if necessary).
Also what does connection.lookup(bucket_name) show?
Sure, no problem:
>>> import boto
>>> boto.__version__
'2.25.0'
>>> from boto.s3.connection import S3Connection
>>> connection = S3Connection("secret","secret")
>>> connection.lookup("ola")
<Bucket: ola>
>>> connection.get_bucket("ola")
<Bucket: ola>
So it exists.
Yet you say it does not show up in get_all_buckets?
Is this a location specific bucket?
That's the problem. It doesn't show up in management console and no, it
doesn't show up in get_all_buckets.
>>> [bucket for bucket in connection.get_all_buckets() if
bucket.name == "ola"]
[]
What if you do not do the == "ola" and just look at the list, on the chance it is a case/encoding issue?
Not as far as I know.
Well on the bucket object you return from lookup() do
bucket.get_location()
>>> connection.get_bucket("ola").get_location()Traceback (most recent call last):File "<stdin>", line 1, in <module>File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 1131, in get_locationresponse.status, response.reason, body)boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden
I have to run, so I will be able to answer for awhile. My suspicion is it it is region and/or permissions issue(s).
FYI boto is now up to 2.27. A search of the issues:
https://github.com/boto/boto/issues
might indicate that upgrading is the way to go.
--You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.