問題を再現する手順は何ですか?
1. instance.get_attribute('kernel') を使用して、実行中の EBS-backed インスタンスのカーネル属性を取得しようとします。
>>> import boto.ec2
>>> regions = boto.ec2.regions()
>>> regions
[RegionInfo:eu-west-1, RegionInfo:us-east-1, RegionInfo:us-west-1, RegionInfo:ap-southeast-1]
>>> usw = regions[2]
>>> conn = usw.connect()
>>> reservations = conn.get_all_instances()
>>> reservations
[Reservation:r-XXXXXXXX]
>>> r1 = reservations[0]
>>> for i in r1.instances: print i
...
Instance:i-XXXXXXXX
>>> instance = r1.instances[0]
>>> instance.get_attribute('kernel')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/boto/ec2/instance.py", line 293, in get_attribute
return self.connection.describe_attribute(self.id, attribute)
AttributeError: 'EC2Connection' object has no attribute 'describe_attribute'
>>>
期待される出力は何ですか?代わりに何が見えますか?
属性を取得することを期待していますが、代わりに次のエラーが発生します: AttributeError: 'EC2Connection' object has no attribute 'describe_attribute'
使用している製品のバージョンは何ですか? どのオペレーティングシステムで?
boto.Version == Mac OS X 10.5 では 2.0b3 (pip を使用して boto をインストール)
以下の追加情報を提供してください。
github リポジトリのコードは、describe_attribute がないことも示しているようです
https://github.com/boto/boto/blob/master/boto/ec2/connection.py