I'm trying to test out a serverless Python Chatbot API in Microsoft Azure, but when I follow online guide https://towardsdatascience.com/creating-a-serverless-python-chatbot-api-in-microsoft-azure-from-scratch-in-9-easy-steps-2f1913fc9581
it gives these error : Unable to import 'azure.functions' pylint(import-error) [3,1] Unable to import '__app__modules.library_finder' pylint(import-error) [4,1]
any idea how to resolve this?
Regards
Go to Command Palette using Ctrl + Shift + P. select python:select interpreter and then choose your appropriate virtualenv. The identical problem Pylint Import Error can be fixed by employing an alternative method, which will be discussed in more detail along with some code samples below.
Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs. Instead of worrying about deploying and maintaining servers, the cloud infrastructure provides all the up-to-date resources needed to keep your applications running.
This error is coming from pylint. It seems that the linter is not pointed to the .env and therefore cannot validate the azure package! To solve it, you can try this:
In Visual Studio Code:
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With