Li McCarthy
06/01/2023, 2:09 PM'NoneType' object has no attribute 'split'
without any other useful info. does anyone have advice?Emil Christensen
06/01/2023, 2:10 PMLi McCarthy
06/01/2023, 2:13 PMprefect deploy -n "prefect_104.py:test-deployment"
'NoneType' object has no attribute 'split'
Li McCarthy
06/01/2023, 2:14 PMEmil Christensen
06/01/2023, 2:14 PMprefect deploy prefect_104.py:<name of your flow function>
or
prefect deploy -n "test-deployment"
Li McCarthy
06/01/2023, 2:16 PMEmil Christensen
06/01/2023, 2:17 PMLi McCarthy
06/01/2023, 2:22 PMLi McCarthy
06/01/2023, 2:23 PMif not flow_name and not base_deploy["flow_name"] and not entrypoint:
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'flow_name'
Li McCarthy
06/01/2023, 2:23 PMTraceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/prefect/utilities/asyncutils.py", line 260, in coroutine_wrapper
return call()
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 245, in __call__
return self.result()
^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 173, in result
return self.future.result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/opt/homebrew/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 218, in _run_async
result = await coro
^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/prefect/cli/root.py", line 286, in deploy
if not flow_name and not base_deploy["flow_name"] and not entrypoint:
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'flow_name'
Li McCarthy
06/01/2023, 2:27 PMLi McCarthy
06/01/2023, 2:29 PMprefect deploy var1.py:var2 -n var3
var2 is the name of the flow but var3 is the name given to a deployment of that flow, of which there can be many -- both in the deployment.yaml or through CLI.. and that there are a few different configuration fields called "name"Li McCarthy
06/01/2023, 2:46 PM