Boto account error with Python on Windows

I have been working on trying to login to Boto via python in the last few hours and it seems that it cannot solve the problem. Python continues to return an error that:

No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your Credentials 

According to the registrar:

  boto.set_stream_logger('boto') 

The problem is this: "[DEBUG]: getting credentials from the metadata server." This should mean that my credentials file was not found, and while I'm not sure where to put my "mycreds.boto" file with my access and security key, I copied it to several places in the boto directory in my site packages, I searched extensively and not sure where to place this file. Considering the fact that:

  s3 = boto.connect_s3() 

I am not sure how to indicate the path to my "mycreds.boto" file if it is not in the "right" place. Since the file transfer process did not work, I created the environment variable "BOTO_CONFIG" with a value equal to the path to the file "boto.config", which stores the same credentials as my file "mycreds.boto". This, unfortunately, did not solve any problems. Finally, I tried to log in using this code:

  s3 = boto.connect_s3(<aws access>, <aws secret key>) 

This returned the following from the registrar: "[DEBUG]: using the access key provided by the client." and "[DEBUG]: use of the secret key provided by the client." It did not return any other errors, but when I tried to access my buckets online, I could not connect. I tried to restart my command windows and computer several times, and I'm not sure what else to try. I basically run out of ideas, so any help would be greatly appreciated. I am running Windows 7 and Python 2.7.7.

+3
python amazon-web-services boto
source share
1 answer

By default, boto searches for credentials in /etc/boto.cfg and ~/.boto . It uses os.path.expanduser to try to deploy ~/.boto to the appropriate path on your system. For Windows platforms, this depends on the HOME and USERPROFILE environment variables. If none of these variables are set in your environment, it probably will not find the boto configuration file.

You have several options. You can verify that HOME installed in your environment in the directory in which your .boto file is .boto . Or you can set the BOTO_CONFIG environment variable to point directly to your configuration file, wherever it is on your file system. If you take this parameter, it should be set to the full path to your boto configuration file.

I'm not sure why providing credentials directly didn't work for you. Could you provide additional information on how this happens? Are you getting an error message? If so, then what?

+2
source share

All Articles