Wednesday, 15 May 2013

amazon web services - Boto Credential Error with Python on Windows -



amazon web services - Boto Credential Error with Python on Windows -

i have been working on trying sign in on boto via python lastly few hours , can't seem solve problem. python maintain returning error that:

no handler ready authenticate. 1 handlers checked. ['hmacauthv1handler'] check credentials

according logger:

boto.set_stream_logger('boto')

the problem is: "[debug]: retrieving credentials metadata server." must mean credentials file cannot found, , while not sure place file "mycreds.boto" access , security key, have copied several location in boto directory within site-packages. have searched extensively , unsure place file. given fact that:

s3 = boto.connect_s3()

i unsure how specify path file "mycreds.boto" if wasn't in "correct" location. seeing how moving file around did not work have created environmental variable "boto_config" value equal path "boto.config" file stores same credentials "mycreds.boto" file. unfortunately did not solve issues. have tried logging in using code:

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

this returned next logger: "[debug]:using access key provided client." , "[debug]:using secret key provided client." did not homecoming other errors, when tried access buckets online unable connect. have tried restarting command windows , computer multiple times , not sure else try. have run out of ideas, help appreciated. running windows 7 , python 2.7.7.

by default, boto looks credentials in /etc/boto.cfg , in ~/.boto. uses os.path.expanduser seek expand ~/.boto appropriate path on system. windows platforms, relies on environment variables home , userprofile. if neither of these variables set in environment, won't find boto config file.

you have couple of options. create sure home set in environment directory in .boto file stored. or, set environment variable boto_config point straight config file, wherever on file system. if take alternative should set qualified path boto config file.

i'm not sure why supplying credentials straight did not work you. provide more info how it's failing? getting error message? if so, what?

python amazon-web-services boto

No comments:

Post a Comment