访问gbdxtools

时间:2018-02-26 15:25:03

标签: python amazon-web-services amazon-s3

我想在python中使用gbdxtools包自动下载卫星图像。不幸的是,我总是在努力获取gbdx.s3.info的s3信息。有人有想法分享吗?

>>> from gbdxtools import Interface
>>> gbdx = Interface()
Please create a GBDX credential file at ~/.gbdx-config with these contents:
[gbdx]
auth_url = https://geobigdata.io/auth/v1/oauth/token/
client_id = your_client_id
client_secret = your_client_secret
user_name = your_user_name
user_password = your_password
>>> gbdx = Interface()
>>> gbdx.s3.info
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/anaconda3/envs/gbdx_env35/lib/python3.5/site-packages/gbdxtools/s3.py", line 44, in info
    self._info = self._load_info()
  File "~/anaconda3/envs/gbdx_env35/lib/python3.5/site-packages/gbdxtools/s3.py", line 63, in _load_info
    r = self.gbdx_connection.get(url)
AttributeError: 'NoneType' object has no attribute 'get'

0 个答案:

没有答案