Open niladri-paul opened 4 years ago
Did you ever get this working? I'm running into the same issue
I upgraded the version of spacy. Spacy 2.2.0 and onwards work fine with AWS.
Thanks, Niladri
On Sun, Feb 2, 2020 at 2:03 PM Eric notifications@github.com wrote:
Did you ever get this working? I'm running into the same issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Miserlou/Zappa/issues/1957?email_source=notifications&email_token=AJOVX43JY7NTROPVR24Y7FDRA2ANPA5CNFSM4JLDIDLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRQ7AQ#issuecomment-581111682, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJOVX42EEY4HYCO76M745SLRA2ANPANCNFSM4JLDIDLA .
Oh I actually realized this project version isn't using Spacy, but Gensim. Will have to mess around with Gensim version I guess, as it's currently on the latest.
The error message points out to the disk space running out. In lambda there's a 500MB hard limit in total. You seem to have hit that.
My API was working perfectly fine with AWS lambda using Zappa. But I need spacy for my code to run. The moment I install spacy==2.0.13 and update the zappa dev , the api stops working. It gives 502 error Following is returned as the response body:
{'message': 'An uncaught exception happened while servicing this request. You can investigate this with the zappa tail command.', 'traceback': ['Traceback (most recent call last):\\n', ' File \"/var/task/handler.py\", line 531, in handler\\n with Response.from_app(self.wsgi_app, environ) as response:\\n', ' File \"/var/task/werkzeug/wrappers/base_response.py\", line 287, in from_app\\n return cls(*_run_wsgi_app(app, environ, buffered))\\n', ' File \"/var/task/werkzeug/wrappers/base_response.py\", line 26, in _run_wsgi_app\\n return _run_wsgi_app(*args)\\n', ' File \"/var/task/werkzeug/test.py\", line 1119, in run_wsgi_app\\n app_rv = app(environ, start_response)\\n', \"TypeError: 'NoneType' object is not callable\\n\"]}
Please help me resolving this issue.
Log from Zappa tail :
Log from Cloudwatch Console:
Output of pip3 freeze:
Zappa Settngs.json: