Skip to content

Unable to use azure SDKs with python #164

@jeffhollan

Description

@jeffhollan

Created a vanilla HTTP function (works):

import logging

import azure.functions as func

def main(req: func.HttpRequest) -> func.HttpResponse:
    logging.info('Python HTTP trigger function processed a request.')

    return func.HttpResponse('Hello', status_code=200)

I then installed the Azure SDK

pip install azure

When I try to reference one of these SDKs it throws errors for naming conficts

import azure.mgmt.compute
import azure.mgmt.network.models
import azure.mgmt.storage.models
[7/25/18 8:30:37 PM]     import azure.functions  # NoQA
[7/25/18 8:30:37 PM] ModuleNotFoundError: No module named 'azure.functions'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions