T B
07/28/2022, 1:32 PMlocal file system
storage/block: my-local-storage.
However when I try to build with the parameter "prefect deployment build --storage-block local-file-system/my-local-storage" I get an exception :
File "/usr/local/lib/python3.10/site-packages/prefect/filesystems.py", line 114, in put_directory
shutil.copytree(from_path, local_path, dirs_exist_ok=True)
NameError: name 'from_path' is not defined
Looking at the code : https://github.com/PrefectHQ/prefect/blob/2.0.0/src/prefect/filesystems.py#L114
it seems the variable "from_path" is indeed not defined.Anna Geller
07/28/2022, 3:02 PMprefect deployment build path/to/flow.flowname --name deployname --tag agenttag
T B
07/28/2022, 8:08 PMfrom_path
is not defined in the put_directory
function IMO it should be replace by `to_path`: https://github.com/PrefectHQ/prefect/blob/2.0/src/prefect/filesystems.py#L114Anna Geller
07/29/2022, 12:31 AMmv manifest.json /some/path/manifest.json