I am developing an Azure function using Python
. This function is going to write some data to blob storage. This function having dependencies on couple of azure modules.
azure-functions
azure-storage-blob
The problem is: The function is unable to detect the libraries though It is installed properly and available in functions virtual environment. Also, I have observed that if I install the firstazure-functions
and after thatazure-storage-blob
then import statementfrom azure.storage.blob import BlobClient
unable to detect the module butimport azure.functions as func
will work, but if I interchange the installation sequence then theimport azure.functions as func
would get detected butfrom azure.storage.blob import BlobClient
remain unrecognized and will show the error asImport "azure.storage.blob" could not be resolved Pylance (reportMissingImports)
. So clearly it is a module version conflict.
I am not sure which version I should use hence seeking the help from the community warriors. Thanks !
Note: I am using python 3.8.2 for the development purpose.