enzyme icon indicating copy to clipboard operation
enzyme copied to clipboard

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

Open anmyachev opened this issue 2 years ago • 3 comments

/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 avatar Jul 13 '23 15:07 anmyachev

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

anmyachev avatar Jul 13 '23 15:07 anmyachev

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

UPD: the problem due to proxy env variables

anmyachev avatar Jul 13 '23 16:07 anmyachev

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

anmyachev avatar Jul 13 '23 18:07 anmyachev