Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 刚刚更新了boto3,don';没有文档中列出的功能_Python_Amazon Web Services_Boto3 - Fatal编程技术网

Python 刚刚更新了boto3,don';没有文档中列出的功能

Python 刚刚更新了boto3,don';没有文档中列出的功能,python,amazon-web-services,boto3,Python,Amazon Web Services,Boto3,我试图通过“descripe_vpc_endpoint_service_configurations()”等方法从我的vpc端点服务获取信息。 但是,我得到的信息是,这个属性不存在。我做错了什么 >>> boto3.__version__ '1.7.81' >>> botocore.__version__ '1.10.81' >>> ec2 = boto3.client('ec2', region_na

我试图通过“descripe_vpc_endpoint_service_configurations()”等方法从我的vpc端点服务获取信息。 但是,我得到的信息是,这个属性不存在。我做错了什么

    >>> boto3.__version__
    '1.7.81'
    >>> botocore.__version__
    '1.10.81'
    >>> ec2 = boto3.client('ec2', region_name='us-west-2')
    >>> ec2.describe_vpc_endpoint_connection_notifications()
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/Users/erinmc/.virtualenvs/networking-gameday-2/lib/python2.7/site-packages/botocore/client.py", line 555, in __getattr__
self.__class__.__name__, item)
    AttributeError: 'EC2' object has no attribute 'describe_vpc_endpoint_connection_notifications'
    >>> ec2.describe_vpc_endpoint_service_configurations()
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/Users/erinmc/.virtualenvs/networking-gameday-2/lib/python2.7/site-packages/botocore/client.py", line 555, in __getattr__
self.__class__.__name__, item)
    AttributeError: 'EC2' object has no attribute 'describe_vpc_endpoint_service_configurations'
>>boto3.\u版本__
'1.7.81'
>>>botocore.\u版本__
'1.10.81'
>>>ec2=两个客户('ec2',地区名称='us-west-2')
>>>ec2.描述_vpc_端点_连接_通知()
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Users/erinmc/.virtualenvs/networking-gameday-2/lib/python2.7/site packages/botocore/client.py”,第555行,位于__
自身(类别、名称、项目)
AttributeError:“EC2”对象没有“描述\u vpc\u端点\u连接\u通知”属性
>>>ec2.描述_vpc_端点_服务_配置()
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Users/erinmc/.virtualenvs/networking-gameday-2/lib/python2.7/site packages/botocore/client.py”,第555行,位于__
自身(类别、名称、项目)
AttributeError:“EC2”对象没有“描述\u vpc\u端点\u服务\u配置”属性

Odd,我不能用上面提到的代码和版本在Python 2或3上复制。我也不能复制。启动一个新的virtualenv并重试。也许你现在的虚拟环境已经崩溃了。奇怪的是,我创建了一个新的虚拟环境,得到了同样的结果。我甚至在虚拟环境之外的机器上安装了该软件,并收到了相同的错误。在boto3或botocore之外有什么需要的吗?