爲什麼我得到s3和boto這個錯誤?博託s3錯誤。 BucketAlreadyOwnedByYou
<Error><Code>BucketAlreadyOwnedByYou</Code><Message>Your previous request to create the named bucket succeeded and you already own it.</Message><BucketName>rtbhui</BucketName><RequestId>84115D3E9513F3C9</RequestId><HostId>+3TxrA34xHcSx0ecOD3pseRnE+LwUv3Ax1Pvp3PFoE8tHfOcn5BXyihc9V/oJx2g</HostId></Error>
s3 = boto.connect_s3(parms['AWS_ACCESS_KEY_ID'], parms['AWS_SECRET_ACCESS_KEY'])
bucket = s3.create_bucket(bucket_name)
k = Key(bucket) #bucket is global
k.key = bucket_path_and_key #'test/test/test'
你嘗試讀取錯誤訊息? – 2012-04-27 08:47:42
愚蠢的我...我總是有一個時間戳的桶名...這是第一個沒有。 – Tampa 2012-04-27 11:19:18
如果要訪問現有存儲桶,請使用s3.get_bucket(存儲桶名稱)或s3.lookup(存儲桶名稱)。 – garnaat 2012-04-27 13:02:25