Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] pyflyte run fails on Windows #3451

Closed
jboutwell-rva opened this issue Mar 11, 2023 · 3 comments
Closed

[BUG] pyflyte run fails on Windows #3451

jboutwell-rva opened this issue Mar 11, 2023 · 3 comments
Labels
flytekit FlyteKit Python related issue

Comments

@jboutwell-rva
Copy link

Running the following in the command prompt fails:
pyflyte 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.

@welcome
Copy link

welcome bot commented Mar 11, 2023

Thank you for opening your first issue here! 🛠

Copy link

github-actions bot commented Dec 7, 2023

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable.
Thank you for your contribution and understanding! 🙏

@github-actions github-actions bot added the stale label Dec 7, 2023
@eapolinario
Copy link
Contributor

flyteorg/flytekit#2626 is going to fix this.

@eapolinario eapolinario added flytekit FlyteKit Python related issue and removed stale labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flytekit FlyteKit Python related issue
Projects
None yet
Development

No branches or pull requests

3 participants