Boto Credential Error With Python On Windows
Solution 1:
By default, boto looks for credentials in /etc/boto.cfg
and in ~/.boto
. It uses os.path.expanduser
to try to expand ~/.boto
into the appropriate path on your system. For Windows platforms, this relies on the environment variables HOME
and USERPROFILE
. If neither of these variables are set in your environment, it probably won't find the boto config file.
You have a couple of options. You could make sure that HOME
is set in your environment to the directory in which your .boto
file is stored. Or, you could set the environment variable BOTO_CONFIG
to point directly to your config file, wherever it is on your file system. If you take this option it should be set to the fully qualified path to your boto config file.
I'm not sure why supplying the credentials directly did not work for you. Could you provide more information about how it's failing? Are you getting an error message? If so, what?
Post a Comment for "Boto Credential Error With Python On Windows"