bamsumit
bamsumit
This is an issue because of how multiprocessing works in windows. Since Python does not support pickling of function pointer or lambda, we see the error above.
The workaround is **DO NOT USE LAMBDAS IN `proc_params`**.
I think so. It seems to be a problem when the process model get's spawned in Windows multiprocessing thread which is the case for ProcModels.
This seems to be a specific issue when `proc_params` has a lambda / function pointer.
Here are a list of type hinting issues in Lava. There are no type hinting in Lava-DL `pip install flake8-annotations` ```bash $ flake8 --ignore=ANN101,W503,E501 . ./magma/compiler/compiler.py:50:78: ANN204 Missing return type...
Thaks @tim-shea for putting this as an issue. Yeah, we need better error propagation mechanism from process models. Also, ability to turn off multiprocessing for debugging would be a neat...
The strange thing is it does not happen when I run the unittests separately: ```bash lava-nc/lava/tests/lava/proc$ python -m unittest discover ..... ---------------------------------------------------------------------- Ran 5 tests in 9.532s OK ``` ```bash...
The reason seems to be the large number of processes spawned by the unittests (**which will grow as the module grows**). It needs more investigation on why there are so...
https://github.com/lava-nc/lava/pull/372