I'm running into an error when trying to confirm m...
# prefect-community
z
I'm running into an error when trying to confirm my flow can be registered
is_serializable(flow, True
gives me some debugging output but the error isn't particularly revealing
subprocess.CalledProcessError: Command 'python /var/folders/vz/kjj4n5wj2bb7q26n0kz4v4jw0000gp/T/tmpr1ux82t1' returned non-zero exit status 1.
Is there a way to get more detail from the debugger?
j
Looks like that utility doesn’t show any extra output besides the raising the exception so there’s a few things you could do: Overwrite this function to do something with the
subprocess.check_output
call and retrieve stdout through it. Attempt a manual cloudpickle dumps/loads like this:
Copy code
f = Flow(...)
pickled = cloudpickle.dumps(f)
cloudpickle.loads(pickled)
^ the error might be raised during the serialization
z
hmm looks like
dumps
and
loads
works fine with the flow is it possible
is_serializable
is a red herring here?
I suppose I'll find out when I run the flow remotely