Hi,
I'm trying to run an example on my local machine for dispy. The node seems to start well and receives as well the task to compute, but it results always in the following error:
2021-04-10 13:55:35 pycos - uncaught exception in tcp_req/139940761960120:
Traceback (most recent call last):
File "/home/uchendu/zhaw/ownCloud/vt2_wave_guide/.venv/bin/dispynode.py", line 1718, in tcp_req
client, resp = yield setup_computation(msg, task=task)
File "/home/uchendu/zhaw/ownCloud/vt2_wave_guide/.venv/lib/python3.6/site-packages/pycos/__init__.py", line 3688, in _schedule
retval = task._generator.send(task._value)
File "/home/uchendu/zhaw/ownCloud/vt2_wave_guide/.venv/bin/dispynode.py", line 1471, in setup_computation
compute.setup, globalvars, localvars)
File "<string>", line 1, in <module>
TypeError: 'NoneType' object is not callable
I'm aware of the problem with python 3.6 and pycos 4.11 as mentioned in the news forum (https://www.pycos.com/forum/viewtopic.php?f=11&t=19). However, I updated the pycos module as suggested to version 4.12 and still receive the same error. Any ideas how I could fix the problem for python 3.6?
Last edited by uchendu-zhaw on Sun Apr 11, 2021 6:08 pm, edited 1 time in total.
Your log only showed traceback error message, without version numbers etc. printed when dispynode is started. If you post full log from when dispynode started till the above error message, it may be useful.
The program seems to execute properly but the exceptions are not outputted when catched. I have verified that by using simply some console logs before and after the raise iteration statements (not included on screenshot below).
Find hereafter a screenshot of the console output after running the script you provided: