Skip to content

aiohttp not defined as a dependency to azure-cosmos #41737

Open
@einarwar

Description

@einarwar
  • Package Name: azure-cosmos
  • Package Version: 4.9.0
  • Operating System: Linux
  • Python Version: 3.12

Describe the bug
When using azure.cosmos.aio, the aiohttp dependency is not installed by default. I am not able to see any docs

To Reproduce
Steps to reproduce the behavior:
Calling azure.cosmos.aio.CosmosClient.from_connection_string("replace_with_conn_string") will give a ModuleNotFoundError: No module named 'aiohttp' if not explicitly installed

Expected behavior
I think the best solution would be to define extras for the azure-cosmos package that also installs necessary dependencies for the async functions, e.g azure-cosmos[aio]. It would also be good if this documented

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions