<@ULVA73B9P> We get this error when using Azure Bl...
# ask-marvin
e
@Marvin We get this error when using Azure Blob Storage as flow code storage. The
push
section works as expected.
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 154, in run_steps
    step_output = await run_step(step, upstream_outputs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 125, in run_step
    result = await from_async.call_soon_in_new_thread(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 327, in aresult
    return await asyncio.wrap_future(self.future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 352, in _run_sync
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: '/tmp/tmpsb3mfqcuprefect'
m
Your message was too long by 53 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
We get this error when using Azure Blob Storage as flow code storage. The
push
section works as expected, and the flow code is correctly pushed.
```Flow could not be retrieved from deployment. Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 154, in run_steps step_output = await run_step(step, upstream_outputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 125, in run_step result = await from_async.call_soon_in_new_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 327, in aresult return await asyncio.wrap_future(self.future) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 352, in _run_sync result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/prefect_azure/deployments/steps.py", line 195, in
It seems the documentation search didn't yield a direct solution to the issue you've mentioned. However, from experience, an
IsADirectoryError
typically indicates a problem related to accessing a directory when a file was expected. This could occur if the path specified for the flow code in the Blob Storage is incorrect, perhaps pointing to a folder rather than a specific file. I also searched for relevant GitHub issues but none were found regarding this error with Azure storage. Your best course of action might be to double-check the deployed flow configuration, specifically the path where the flow is stored. Ensure that the path for the flow in the Azure Blob storage points to the actual flow file, not a directory. If the problem persists, consider opening a new issue in the Prefect GitHub repository to get help from the Prefect community and developers.