cuddly-jelly-27016
10/14/2024, 5:48 PMpyflyte run --remote example.py training_workflow --hyperparameters "{\"C\": 0.1}"
Error:
{"asctime": "2023-03-11 11:32:20,895", "name": "flytekit", "levelname": "WARNING", "message": "FlyteSchema is deprecated, use Structured Dataset instead."} Failed with Exception: Reason: SYSTEM:Unknown Underlying Exception: cannot find context for 'fork'
The example is taken from https://docs.flyte.org/projects/cookbook/en/latest/index.html.
The error appears to be caused by this line:
https://github.com/flyteorg/flytekit/blob/master/flytekit/clients/auth/auth_client.py#L308
The python multiprocessing docs indicate only "spawn" is supported on Windows, and as of 3.8 is also recommended for macOS.
Version Info
Windows 10
Python 3.10.10
flytekit-1.4.1
The same example works for me on macOS.
flyteorg/flytecuddly-jelly-27016
10/14/2024, 5:48 PM