python - 导入 azure.storage.blob 时出现 xml.etree 错误

标签 python azure

我使用的是Python 2.7,并且有以下声明:

from azure.storage.blob import BlockBlobService, ContainerPermissions

通常,这工作得很好。然而,今天当我在 Visual Studio 中运行该脚本时,出现错误:

copy.Error was unhandled by user code Message: un(shallow)copyable object of type

我尝试了“pip install azure-storage --upgrade”,它升级了所有内容,但问题仍然存在。见下图。有任何想法吗?提前致谢。

enter image description here

最佳答案

您也有一些类似的问题,Pandas import error when debugging using PVTShttps://pytools.codeplex.com/workitem/2077 .

根据 @Pavel Minaev 的回答,这似乎是 PTVS 检测未处理异常的方式的限制 - 它看不到将捕获此异常的 except block ,因为它位于 eval 的代码中d 来自字符串。

您可以尝试升级到最新版本的python并重新安装软件包。或者直接忽略此错误,单击继续按钮继续 python 进度。

关于python - 导入 azure.storage.blob 时出现 xml.etree 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37354251/

相关文章:

python - 如何在Python/PyQt5中仅获取用户定义的类?

python - 如何在 Python 中初始化嵌套字典

c# - 在.Net core控制台应用程序中使用Azure服务总线

java - Spring Rest 模板 - 将请求字符串主体发布到 azure 给出 500 错误

azure - Bing 网络搜索 api 高级查询

python 如何在数据框中执行以下操作

python - 如何在 Pandas 中过滤 shift +/- 1 天?

python - Scrapy with selenium, webdriver 无法实例化

azure - 更改默认图片 - 注册流程 - AZURE - ADB2C

sql - 自动增加 SQL Azure 配额