Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'SerializationError' from 'azure.core.exceptions' #4143

Closed
epicfaace opened this issue Jul 13, 2022 · 1 comment
Closed

Comments

@epicfaace
Copy link
Member

User report:

Has anyone seen this before? On a fresh virtual env, I ran pip install -e . and tried to start a worker manager:

File "/Users/tonyhlee/research/codalab/codalab-worksheets/codalab/worker_manager/main.py", line 7, in
from .aws_batch_worker_manager import AWSBatchWorkerManager
File "/Users/tonyhlee/research/codalab/codalab-worksheets/codalab/worker_manager/aws_batch_worker_manager.py", line 8, in
from .worker_manager import WorkerManager, WorkerJob
File "/Users/tonyhlee/research/codalab/codalab-worksheets/codalab/worker_manager/worker_manager.py", line 14, in
from codalab.common import NotFoundError, LoginPermissionError
File "/Users/tonyhlee/research/codalab/codalab-worksheets/codalab/common.py", line 18, in
from azure.storage.blob import generate_blob_sas, BlobSasPermissions
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/init.py", line 10, in
from ._blob_client import BlobClient
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/_blob_client.py", line 23, in
from ._shared.base_client import StorageAccountHostsMixin, parse_connection_str, parse_query
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/_shared/base_client.py", line 42, in
from .constants import STORAGE_OAUTH_SCOPE, SERVICE_HOST_BASE, CONNECTION_TIMEOUT, READ_TIMEOUT
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/_shared/constants.py", line 8, in
from .._generated.version import VERSION
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/_generated/init.py", line 12, in
from ._azure_blob_storage import AzureBlobStorage
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/storage/blob/_generated/_azure_blob_storage.py", line 13, in
from msrest import Serializer, Deserializer
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/msrest/init.py", line 28, in
from .configuration import Configuration
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/msrest/configuration.py", line 38, in
from .universal_http.requests import (
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/msrest/universal_http/init.py", line 53, in
from ..exceptions import ClientRequestError, raise_with_traceback
File "/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/msrest/exceptions.py", line 31, in
from azure.core.exceptions import SerializationError, DeserializationError
ImportError: cannot import name 'SerializationError' from 'azure.core.exceptions' (/Users/tonyhlee/research/codalab/venv/lib/python3.8/site-packages/azure/core/exceptions.py)

@epicfaace
Copy link
Member Author

Can't reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant