Alyssa Harris

07/06/2023, 5:40 PM
I'm trying to use the option to pull code from the github repo but I'm getting the following error
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1016, in get_code
  File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/53/65gf_nkd2l14whfqq9lcrvnr0000gn/T/tmpcdtvon3cprefect/pacc-2023/'

Jeff Hale

07/06/2023, 5:44 PM
Looks like you need to push the code to the repo so it’s available to clone down at run time. You could use your own repo. Prefect won’t push your flow code to a repo for you.

Alyssa Harris

07/06/2023, 5:45 PM
I thought I could just pull from the pacc-2023 repo
I used these options:
Copy code
? Your Prefect workers will need access to 
this flow's code in order to run it. Would you
like your workers to pull your flow code from 
its remote repository when running this flow? 
[y/n] (y): y
? Is 
the correct URL to pull your flow code from? 
[y/n] (y): y
? Is main the correct branch to pull your flow
code from? [y/n] (y): y
? Is this a private repository? [y/n]: n
Update I figured it out! I had deployed from within the
folder so my deployment was looking for pacc-2023/ which it couldn't find since the full path is pacc-2023/104/
👍 3