Eric Hsiao
07/18/2022, 5:31 PMpyflyte run my_task.py download --remote # this works
pyflyte run my_task.py download # this does not work (remote=False)
Here's an example of my workflow definition
@workflow
def download(remote: bool = False):
...
And here's the error I'm getting
line 191, in to_python_value
raise TypeTransformerFailedError(f"Cannot convert literal {lv} to {self._type}")
flytekit.core.type_engine.TypeTransformerFailedError: Cannot convert literal scalar {
primitive {
}
}
to <class 'bool'>
Is there anything obvious that I'm doing wrong?Yee
--remote false
Eric Hsiao
07/18/2022, 5:52 PM--remote false
and --remote=false
but had the same issueYee
Eric Hsiao
07/18/2022, 7:22 PMpyflyte run my_wf --remote
Eduardo Apolinario (eapolinario)
07/18/2022, 7:36 PMmy_task.py
?Eric Hsiao
07/18/2022, 7:57 PM@task
def is_remote(remote: bool):
print(f"is remote: {remote}")
@workflow
def download(remote: bool = False):
is_remote(remote=remote)
Yee
Eduardo Apolinario (eapolinario)
07/18/2022, 8:02 PMEric Hsiao
07/18/2022, 8:53 PM➜ symphony_hall git:(main) ✗ pip freeze | grep flyte
flyteidl==1.1.9
flytekit==1.1.0
Yee
Eric Hsiao
07/18/2022, 9:17 PMYee
$ python --version
Python 3.9.13
Eduardo Apolinario (eapolinario)
07/18/2022, 9:59 PMEric Hsiao
07/19/2022, 10:43 PMGeorge Odette
07/20/2022, 8:19 AMEric Hsiao
07/20/2022, 7:35 PMpip install -U click