kquick / Thespian

Python Actor concurrency library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: min() arg is an empty sequence for LogDefs with multiprocessing

todd-cook opened this issue · comments

I created an Actor using a system base of multiprocTCPBase, and a convention address, I specified logDefs and used the example logDefs https://github.com/kquick/Thespian/blob/master/examples/logsetup.py#L10. Running on ubuntu, python:3.9.0-slim-buster.

Traceback (most recent call last):
File "/opt/conda/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/opt/conda/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/lib/python3.8/site-packages/thespian/system/multiprocCommon.py", line 550, in startChild
lowestLevel = minLevelIn(
File "/opt/conda/lib/python3.8/site-packages/thespian/system/multiprocCommon.py", line 549, in
minLevelIn = lambda l: min(list(l)) if list(l) else 0
ValueError: min() arg is an empty sequence

I have a fix for this which I will PR.

Released in version 3.10.4.