For the first step, do we need to update to a newe...
# pacc-june-14-2023
c
For the first step, do we need to update to a newer version of Prefect? Currently I'm running 2.10.13 I'm not seeing the interactive CLI
n
I got the same version and it ran fine for me
j
I’m also getting a similar error
Copy code
File "/home/vscode/.local/lib/python3.11/site-packages/prefect/cli/deploy.py", line 300, in deploy
    await _run_single_deploy(
  File "/home/vscode/.local/lib/python3.11/site-packages/prefect/client/utilities.py", line 40, in with_injected_client
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.11/site-packages/prefect/cli/deploy.py", line 391, in _run_single_deploy
    flow_name = flow.name
                ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
c
My dir is
Copy code
❯❯❯  ls


    Directory: C:\wageup\pcc\prefect_lab


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         6/14/2023     10:14                101
d-----         6/14/2023     11:34                102
d-----         6/14/2023     13:42                104                                                                                                                                            
-a----         6/14/2023     09:49              0 __init__.py
and I'm getting
Copy code
❯❯❯  prefect deploy .\104\flow.py:pipe
Traceback (most recent call last):
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\cli\_utilities.py", line 41, in wrapper
    return fn(*args, **kwargs)
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\utilities\asyncutils.py", line 255, in coroutine_wrapper
    return call()
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\_internal\concurrency\calls.py", line 383, in __call__
    return self.result()
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\_internal\concurrency\calls.py", line 283, in result
    return self.future.result(timeout=timeout)
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\_internal\concurrency\calls.py", line 169, in result
    return self.__get_result()
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\concurrent\futures\_base.py", line 403, in __get_result
    raise self._exception
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\_internal\concurrency\calls.py", line 346, in _run_async
    result = await coro
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\cli\deploy.py", line 300, in deploy
    await _run_single_deploy(
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\client\utilities.py", line 40, in with_injected_client
    return await fn(*args, **kwargs)
  File "C:\Users\Cody\anaconda3\envs\pcc310\lib\site-packages\prefect\cli\deploy.py", line 391, in _run_single_deploy
    flow_name = flow.name
AttributeError: 'NoneType' object has no attribute 'name'
An exception occurred.