我有一个在本地可以正常运行的Chalice应用程序,但是当部署到AWS Lambda时,我在下面看到此错误。看来缺少Chalice的内部依赖性?这是一个常见错误,如何解决?
我没有发布代码或开发MCVE,因为这似乎是Chalice内部的错误。
[ERROR] OSError: [Errno 38] Function not implemented
Traceback (most recent call last):
File "/var/task/chalice/app.py", line 1130, in __call__
return self.func(event_obj)
File "/var/task/app.py", line 26, in handle_sns_message
preload()
File "/var/task/chalicelib/photopreload.py", line 33, in preload
processQueue(processItems)
File "/var/task/chalicelib/photopreload.py", line 15, in processQueue
action(items)
File "/var/task/chalicelib/photopreload.py", line 30, in processItems
listPhotos(items)
File "/var/task/chalicelib/photocache.py", line 77, in listPhotos
pool = multiprocessing.Pool(processes=len(infoList))
File "/var/lang/lib/python3.7/multiprocessing/context.py", line 119, in Pool
context=self.get_context())
File "/var/lang/lib/python3.7/multiprocessing/pool.py", line 158, in __init__
self._setup_queues()
File "/var/lang/lib/python3.7/multiprocessing/pool.py", line 251, in _setup_queues
self._inqueue = self._ctx.SimpleQueue()
File "/var/lang/lib/python3.7/multiprocessing/context.py", line 112, in SimpleQueue
return SimpleQueue(ctx=self.get_context())
File "/var/lang/lib/python3.7/multiprocessing/queues.py", line 332, in __init__
self._rlock = ctx.Lock()
File "/var/lang/lib/python3.7/multiprocessing/context.py", line 67, in Lock
return Lock(ctx=self.get_context())
File "/var/lang/lib/python3.7/multiprocessing/synchronize.py", line 162, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
File "/var/lang/lib/python3.7/multiprocessing/synchronize.py", line 59, in __init__
unlink_now)