У меня есть проект django, который работает локально и на эластичном стебле. Сейчас я пытаюсь развернуть его в AWS lambda с помощью zappa. Но я получаю следующую ошибку, хотя модуль urllib3 присутствует в zip-пакете. Любая помощь приветствуется. Спасибо.
No module named urllib3: ImportError
Traceback (most recent call last):
File "/var/task/handler.py", line 580, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 245, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 151, in __init__
wsgi_app_function = get_django_wsgi(self.settings.DJANGO_SETTINGS)
File "/var/task/zappa/ext/django_zappa.py", line 20, in get_django_wsgi
return get_wsgi_application()
File "/tmp/task/django/core/wsgi.py", line 14, in get_wsgi_application
django.setup()
File "/tmp/task/django/__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/tmp/task/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/tmp/task/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/tmp/task/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/var/task/api/settings/test.py", line 4, in <module>
File "/tmp/task/elasticsearch/__init__.py", line 17, in <module>
from .client import Elasticsearch
File "/tmp/task/elasticsearch/client/__init__.py", line 5, in <module>
from ..transport import Transport
File "/tmp/task/elasticsearch/transport.py", line 5, in <module>
from .connection import Urllib3HttpConnection
File "/tmp/task/elasticsearch/connection/__init__.py", line 3, in <module>
from .http_urllib3 import Urllib3HttpConnection
File "/tmp/task/elasticsearch/connection/http_urllib3.py", line 2, in <module>
import urllib3