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

python syntax error when trying to deploy and run flow as in readme #58

Open
anmyachev opened this issue Jul 13, 2023 · 3 comments
Open

Comments

@anmyachev
Copy link
Contributor

/mnt/c/projects/enzyme$ python3 deploy_my_flow.py
  File "/mnt/c/projects/enzyme/deploy_my_flow.py", line 3
    program = await x1.deploy('my_flow.py')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside function

Link: https://github.com/aregm/enzyme/tree/x1#deploy-and-run-a-flow

python version: 3.10.6

@anmyachev
Copy link
Contributor Author

Looks like I missed that the code needs to be run in jupyter.

@anmyachev
Copy link
Contributor Author

anmyachev commented Jul 13, 2023

@pbchekin how to use http://jupyter.localtest.me/ in the wsl session?

UPD: the problem due to proxy env variables

@anmyachev
Copy link
Contributor Author

It should be noted in the docs that this code should be run not from the console, but from Jupyter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant