I have a problem with Boto, the Amazon S3 library.
This is in ubuntu 11.04 with python-boto 1.9b-1ubuntu5.
I try this in Python:
Code:
>>> import boto
>>> s3=boto.connect_s3()
>>> b=s3.get_bucket('b-uck.et.name')
This works when I
ssh into the ubuntu machine.
It fails when I am logged into gnome session and it is not run with root privileges (after sudo su).
The error message we get is S3ResponseError: 403 Forbidden with "The request signature we calculated does not match the signature you provided. Check your key and signing method."
The credentials are given by way of
environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
When I am root before starting python (with
sudo su), the get_bucket() call succeeds.
Do you have an idea what could be wrong with my desktop ?