You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #95, when one specifies the remote_workdir with a path like ~/my/dir, it raises an error upon trying to parse the pkl file. The UI shows [Errno 1] : PosixPath('~/test/ef5861af-7b92-4dbc-a52c-eb83bb137496/node_0/result-ef5861af-7b92-4dbc-a52c-eb83bb137496-0.pkl').
Wrap the file path in Path().expanduser().resolve() client-side before the electron is launched. As a stretch goal, I would even suggest trying to support something like $SCRATCH/my/dir by wrapping the path call with os.path.expandvars() on the client side too.
You can basically copy what I have done in the covalent-hpc-plugin in terms of file path handling, such as here.
The text was updated successfully, but these errors were encountered:
Andrew-S-Rosen
changed the title
Support more robust path handling
Support more robust path handling with remote_workdirMar 6, 2024
Environment
What is happening?
Related to #95, when one specifies the
remote_workdir
with a path like~/my/dir
, it raises an error upon trying to parse the pkl file. The UI shows [Errno 1] : PosixPath('~/test/ef5861af-7b92-4dbc-a52c-eb83bb137496/node_0/result-ef5861af-7b92-4dbc-a52c-eb83bb137496-0.pkl').How can we reproduce the issue?
What should happen?
Filepaths like
~/my/dir
should workAny suggestions?
Wrap the file path in
Path().expanduser().resolve()
client-side before the electron is launched. As a stretch goal, I would even suggest trying to support something like$SCRATCH/my/dir
by wrapping the path call withos.path.expandvars()
on the client side too.You can basically copy what I have done in the
covalent-hpc-plugin
in terms of file path handling, such as here.The text was updated successfully, but these errors were encountered: