-
Notifications
You must be signed in to change notification settings - Fork 89
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
No module named 'serverless_wsgi' on Azure #143
Comments
Hi @MattiasDC, Did you test that In that case, I suppose we catch the exception when importing from |
Hi, Putting the following code before the import fixes that problem (and the importing of the module containing the app).
There seem to be some other issues though, it seems Azure expects other function parameters. |
I get the following error when using serverless-wsgi on Azure.
When reading up on the python developer reference here, you can see that referring to a local module only works with explicit relative or absolute paths, but not implicit relative.
A fix might be to change line 22 of wsgi_handler.py to
from . import serverless_wsgi
I'm using serverless_wsgi version 1.7.5.
Note that running serverless locally with 'sls wsgi serve' works like a charm :)
The text was updated successfully, but these errors were encountered: