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
originally reported in datalad/datalad#7759, now slightly different behavior, but I believe it is the same underlying bug.
A datalad containers-run command that works fine in the master worktree
meng@meng-MS-7D06 /m/D/M/d/L5b (master)> datalad containers-run -n fissa -m "Run fissa v1.0.0 for mouse I, LSD with Suite2p roiset." \
-i "01_suite2p/*I/*LSD/plane-0/reg_tif/*.tif" \
-i "01_suite2p/*I/*LSD/plane-0/allcell.npy" \
-i "01_suite2p/*I/*LSD/plane-0/ops.npy" \
-i "01_suite2p/*I/*LSD/plane-0/stat.npy" \
-o "03_fissa/*I/*LSD/plane-0/roiset_suite2p" \
"python code/src/process2p/run_fissa.py {inputs} {outputs}"
[INFO ] Making sure inputs are available (this may take some time)
[INFO ] == Command start (output follows) =====
Extracting traces: 0%| | 0/77 [00:00<?, ?it/s]
...
fails in the runs worktree with FileNotFoundError:
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> datalad containers-run -n fissa -m "Run fissa v1.0.0 for mouse I, LSD with Suite2p roiset." \
-i "01_suite2p/*I/*LSD/plane-0/reg_tif/*.tif" \
-i "01_suite2p/*I/*LSD/plane-0/allcell.npy" \
-i "01_suite2p/*I/*LSD/plane-0/ops.npy" \
-i "01_suite2p/*I/*LSD/plane-0/stat.npy" \
-o "03_fissa/*I/*LSD/plane-0/roiset_suite2p" \
"python code/src/process2p/run_fissa.py {inputs} {outputs}"
[INFO ] Making sure inputs are available (this may take some time)
[INFO ] == Command start (output follows) =====
Traceback (most recent call last):
File "/mnt/Data/L5b-runs/code/src/process2p/run_fissa.py", line 252, in <module>
main()
File "/mnt/Data/L5b-runs/code/src/process2p/run_fissa.py", line 215, in main
ops = np.load(path_ops, allow_pickle=True).item()
File "/usr/local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy'
[INFO ] == Command exit (modification check follows) =====
run(error): /mnt/Data/L5b-runs (dataset) [singularity exec -B /mnt/Data/L5b-runs -...]
action summary:
get (notneeded: 83)
run (error: 1)
The file is present in the shared annex though. datalad get -s gin which worked in the example in datalad/datalad#7759 does not work here. git annex get --from also does not work. git annex fsck does not help.
meng@meng-MS-7D06 /m/D/L5b-runs (runs) [1]> git annex whereis 01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy
whereis 01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy
unable to query remote ria-backup-storage for urls: RIA store unavailable. -caused by- file:///media/meng/ProData/ria-store/ria-layout-version not found, self.ria_store_url: ria+file:///media/meng/ProData/ria-store, self.store_base_pass: /media/meng/ProData/ria-store, self.store_base_pass_push: None, path: <class 'pathlib._local.PosixPath'> /media/meng/ProData/ria-store/ria-layout-version -caused by- [Errno 2] No such file or directory: '/media/meng/ProData/ria-store/ria-layout-version'
(9 copies)
01586b18-304b-42d2-b3ab-a3a688853808 -- [ria-backup-storage]
1fe65de2-a8f1-403f-92a4-28b9fcf980d2 -- create subds for the suit2p outputs for layer5b exp.
492fb0e6-7980-40b3-9fbb-97caebaaaced -- meng@meng-MS-7D06:/mnt/Data/Meng_Psychedelics/02_processed/L5b
4f2d53ba-7cce-4d96-ba8e-947b0d8dd8cf -- git@b7807f24a9b9:/data/repos/jwu/meng_psychedelics-01_data-02_preprocessed_data-02_psychedelics_l5b_suite2p.git [gin]
6a7efbaa-2842-4742-9412-ed7824682fab -- jiame@RAZOR:D:\Meng_Psychedelics\01_data\02_preprocessed_data\02_Psychedelics_L5b_suite2p
7f789fa4-25be-4b21-b4dd-6522864e9c7a -- meng@meng-MS-7D06:/mnt/Data/Meng_Psychedelics/derived/L5b [here]
97b30a7d-e532-4bd6-a91c-37b955e9f467 -- fabia@Fabian:~/Desktop\ROIs\ds_Psychedelics_L5b_suite2p
a4a3a0c9-4c58-453f-8041-25d11be84ca9 -- jiame@RAZOR:D:\Meng_Psychedelics\derived\L5b
f12fa2a7-6ad7-42f0-a811-0306f2bce0d7 -- git@be610756bf80:/data/repos/jwu/ds_processed_l5b.git
ok
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> git annex fsck 01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy
fsck 01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy (checksum...) ok
(recording state in git...)
meng@meng-MS-7D06 /m/D/L5b-runs (runs) [1]> datalad get "01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy" -s gin
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> git annex get "01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy"
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> git annex get "01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy" --from gin
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> ls 01_suite2p/sub-240226I/exp-LSD/plane-0
allcell.npy@ Fneu.npy@ iscell-02.npy@ iscell-05.npy@ iscell-08.npy@ iscell-11.npy@ notcell.npy@ spks.npy@
data.bin@ F.npy@ iscell-03.npy@ iscell-06.npy@ iscell-09.npy@ iscell.npy@ ops.npy@ stat.npy@
Fall.mat@ iscell-01.npy@ iscell-04.npy@ iscell-07.npy@ iscell-10.npy@ iscell-somata.npy@ reg_tif/ whichcell.npy@
meng@meng-MS-7D06 /m/D/L5b-runs (runs)> datalad containers-run -n fissa -m "Run fissa v1.0.0 for mouse I, LSD with Suite2p roiset." \
-i "01_suite2p/*I/*LSD/plane-0/reg_tif/*.tif" \
-i "01_suite2p/*I/*LSD/plane-0/allcell.npy" \
-i "01_suite2p/*I/*LSD/plane-0/ops.npy" \
-i "01_suite2p/*I/*LSD/plane-0/stat.npy" \
-o "03_fissa/*I/*LSD/plane-0/roiset_suite2p" \
"python code/src/process2p/run_fissa.py {inputs} {outputs}"
[INFO ] Making sure inputs are available (this may take some time)
[INFO ] == Command start (output follows) =====
Traceback (most recent call last):
File "/mnt/Data/L5b-runs/code/src/process2p/run_fissa.py", line 252, in <module>
main()
File "/mnt/Data/L5b-runs/code/src/process2p/run_fissa.py", line 215, in main
ops = np.load(path_ops, allow_pickle=True).item()
File "/usr/local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '01_suite2p/sub-240226I/exp-LSD/plane-0/ops.npy'
[INFO ] == Command exit (modification check follows) =====
run(error): /mnt/Data/L5b-runs (dataset) [singularity exec -B /mnt/Data/L5b-runs -...]
action summary:
get (notneeded: 83)
run (error: 1)
I remember from the troubleshooting session with @yarikoptic that it wouldn't work if the worktree were created before getting the file content in the master worktree, but I don't remember the solution. I suppose, for now, I should just kill the worktree and create a new one, but it would be nice if I didn't have to go through the setup process for nested worktrees every time new content is available on master ... that's not fun!
What steps will reproduce the problem?
drop the content of a file
create a worktree
get content in the master worktree
try to get the file or use the file in the other worktree
What is the problem?
originally reported in datalad/datalad#7759, now slightly different behavior, but I believe it is the same underlying bug.
A
datalad containers-runcommand that works fine in the master worktreefails in the
runsworktree withFileNotFoundError:The file is present in the shared annex though.
datalad get -s ginwhich worked in the example in datalad/datalad#7759 does not work here.git annex get --fromalso does not work.git annex fsckdoes not help.I remember from the troubleshooting session with @yarikoptic that it wouldn't work if the worktree were created before getting the file content in the master worktree, but I don't remember the solution. I suppose, for now, I should just kill the worktree and create a new one, but it would be nice if I didn't have to go through the setup process for nested worktrees every time new content is available on master ... that's not fun!
What steps will reproduce the problem?
DataLad information
DataLad 1.3.0 WTF (configuration, credentials, datalad, dataset, dependencies, environment, extensions, git-annex, location, metadata.extractors, metadata.filters, metadata.indexers, python, system)
WTF
configuration <SENSITIVE, report disabled by configuration>
credentials
datalad
dataset
dependencies
environment
extensions
git-annex
location
metadata.extractors
metadata.filters
metadata.indexers
python
system
Hint: install psutil to get filesystem information
Additional context
No response
Have you had any success using DataLad before?
No response