Pierre Lecerf
11/29/2024, 11:37 AMbuild_ctx argument in the SDK ; this is with version 1.3.14 :
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/fs/osfs.py", line 356, in openbin
binary_file = io.open(
FileNotFoundError: [Errno 2] No such file or directory: b'/<WRONG_PATH>/README.md'
Where <WRONG_PATH> here is the path from which the script is ran, not the value we supply to build_ctx for bentoml to consider.
Looking at the code I found the following piece in bentoml/_internal/bento/bento.py ; am I understanding it correctly that there is a bug introduced by chore/default-readme ? Shouldn't ctx_fs be used instead of bento_fs when attempting the copy?Pierre Lecerf
11/29/2024, 2:41 PMShouldn'tHaving looked into it a tad more, this was a bad take ; but still I can't find where thebe used instead ofctx_fswhen attempting the copy? (modifié)bento_fs
build_ctx is taken into account when the copy to bento_fs is happening.
I expect it should work if the build_ctx coincides with the working directory, but not when they differ.Chaoyu
11/29/2024, 4:52 PMFrost Ming
12/02/2024, 12:43 AMPierre Lecerf
12/03/2024, 8:53 AM