简体   繁体   中英

xml.etree error when importing azure.storage.blob

I am using Python 2.7, and have the following statement:

from azure.storage.blob import BlockBlobService, ContainerPermissions

Usually, this works fine. However, today when I ran the script in Visual Studio, I got the error:

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

I tried "pip install azure-storage --upgrade" , which upgraded everything, but the issue still persists. See below image. Any ideas? thanks in advance.

在此处输入图片说明

There are some similar issue with you, Pandas import error when debugging using PVTS and https://pytools.codeplex.com/workitem/2077 .

According the answer of @Pavel Minaev, it seems to be a limitation of the way PTVS detects unhandled exceptions - it can't see the except-block that's going to catch this exception because it is in the code that is eval'd from a string.

You can try to upgrade to the latest version of python and reinstall the packages. Or simply ignore this error, by clicking the continue button to continue the python progress.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM