Skip to content

Multiprocessing - ModuleNotFoundError #77

Open
@nbaghiro

Description

@nbaghiro

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions