Skip to content

" Can't pickle local object 'withLogAndControls.<locals>.Processor'" #4

@ghost

Description

try example


from time import sleep

def fn(x):
    while True:
        print(x.value)
        x.value = x.value**1.01
        sleep(0.1)

from multiprocessing import Value
x = Value('f',2)
task = ProcessWithLogAndControls(target=fn, args=(x,), name="exponential growth")

and got error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions