-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in aiida.engine.daemon.execmanager.retrieve_files_from_list
#3095
Comments
Thanks for the report. This definitely seems like a bug. Just for reference, what are the contents of your the
|
retrieve list was I'm able to avoid entering this branch by putting the wildcards in the first item of the tuple, as stated in the documentation ( ["./debug/bigdft-err*",".",1] ), but the bug is still there in the code, I'm just avoiding it. |
Thanks for the update. You are right that moving the wildcard to the first element will avoid the bug because then you do not hit the branch in the The format of the
So the directive |
Indeed, I agree in the wildcard case I was trying, and this will be enough for me to go on from now. |
Absolutely, I will keep this ticket open so a patch can be submitted. Thanks again for the report |
aiida.engine.daemon.execmanager.retrieve_files_from_list
By the way, for posterity and a laugh: you have unearthed a bug that was introduced in this commit and has been there for 6 years, since version |
I actually fixed this "accidentally" in PR #4196 . In that PR I removed all remaining files from the pre-commit exclude list, among which was the file that causes the bug describes here. The bug was actually found by Edt: oh dear lord, as it turns out, in the ultimate irony, the change in #4196 that fixed this bug, is the very reason of #4273 's existence. Time to add some badly needed tests there I guess. |
I'm getting
engine/daemon/execmanager.py", line 464, in retrieve_files_from_list
to_append = remote_names.split(os.path.sep)[-depth:] if depth > 0 else []
AttributeError: 'list' object has no attribute 'split'
when I try to retrieve the content of a folder over ssh. It seems that the folder name is turned into a list here:
https://github.com/aiidateam/aiida_core/blob/e232f946e2b5c1c55c8f8b2c903f05355fe9deea/aiida/engine/daemon/execmanager.py#L463
and then immediately fed to split, which only operates on strings.
Removing the [] around remote_names seems to allow it to go further. Is this correct ?
The text was updated successfully, but these errors were encountered: