python-lambda-local icon indicating copy to clipboard operation
python-lambda-local copied to clipboard

Multiprocessing - ModuleNotFoundError

Open nbaghiro opened this issue 4 years ago • 0 comments

python-local-lambda: 0.1.12 python: 3.9

Another issue has been opened related to this exact error but that was mentioned as specific to Windows and is closed now https://github.com/HDE/python-lambda-local/issues/45

This same error happens to me on Mac and I think it is related to the comment linked below, can someone please confirm the cause of this issue and suggest on how to fix/work around it?

this seems to be related to the fact that python-lambda-local spawns a process where it executes the lambda and since Python doesn't let nested processes, that is probably causing this I would assume, but not sure why it doesn't throw the following error instead

AssertionError: daemonic processes are not allowed to have children
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/spawn.py", line 126, in _main
    self = reduction.pickle.load(from_parent)
ModuleNotFoundError: No module named 'request-fb247376-e9b9-49e4-bce1-8b3989f3a624'

nbaghiro avatar Jul 27 '21 19:07 nbaghiro