Re: [labscriptsuite] Changing shot output folder

18 views
Skip to first unread message

Tomáš Lamich

unread,
Apr 3, 2025, 6:36:06 AMApr 3
to labscri...@googlegroups.com
Hi Jasmine,

This looks to me like your "labconfig" file points to the C: drive, while you're trying to read a file from the Z: drive.
I guess you could keep both your connection table and your shots on different drives if you correctly set it up in the "labconfig" file. Look at the [DEFAULT] and [PATH] sections.

Hope this helps,
Tom

On Tue, 1 Apr 2025 at 21:25, Jasmine Kalia <erli.d...@gmail.com> wrote:
Hello all,

We are trying to switch to saving our shots on our server (instead of locally on the computer we use to run labscript). I thought we could just point the shot output folder to the server Z drive, which is mounted on the localhost computer, but we keep getting the error "Couldn't submit job to control server: H5 file not accessible to Control PC" in the runmanager terminal. In the BLACS terminal, we get: 

Z:\Experiments\ErLi\main_sequence\2025\04\01\2025-04-01_0128_main_sequence_0.h5
2025-04-01 15:19:09,207 INFO BLACS: received filepath: Z:\Experiments\ErLi\main_sequence\2025\04\01\2025-04-01_0128_main_sequence_0.h5
2025-04-01 15:19:09,208 INFO BLACS: local filepath: C:\Experiments\ErLi\main_sequence\2025\04\01\2025-04-01_0128_main_sequence_0.h5
2025-04-01 15:19:09,211 ERROR BLACS.ConnectionTable: Could not open connection table file C:\Experiments\ErLi\main_sequence\2025\04\01\2025-04-01_0128_main_sequence_0.h5
Traceback (most recent call last):
  File "C:\Users\Erbium\anaconda3\envs\py38\lib\site-packages\labscript_utils\connections.py", line 46, in __init__
    with h5py.File(h5file,'r') as hdf5_file:
  File "C:\Users\Erbium\anaconda3\envs\py38\lib\site-packages\labscript_utils\h5_lock.py", line 53, in __init__
    _File.__init__(self, name, mode, driver, libver, **kwds)
  File "C:\Users\Erbium\anaconda3\envs\py38\lib\site-packages\h5py\_hl\files.py", line 507, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
  File "C:\Users\Erbium\anaconda3\envs\py38\lib\site-packages\h5py\_hl\files.py", line 220, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 106, in h5py.h5f.open
FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = 'C:\Experiments\ErLi\main_sequence\2025\04\01\2025-04-01_0128_main_sequence_0.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
2025-04-01 15:19:09,212 INFO BLACS: Request handler: H5 file not accessible to Control PC
2025-04-01 15:19:18,000 INFO BLACS.AnalysisSubmission.mainloop: Processed signal: check/retry
2025-04-01 15:19:28,009 INFO BLACS.AnalysisSubmission.mainloop: Processed signal: check/retry
2025-04-01 15:19:38,019 INFO BLACS.AnalysisSubmission.mainloop: Processed signal: check/retry
2025-04-01 15:19:48,031 INFO BLACS.AnalysisSubmission.mainloop: Processed signal: check/retry
2025-04-01 15:19:58,037 INFO BLACS.AnalysisSubmission.mainloop: Processed signal: check/retry

It seems like runmanager can generate the h5 file and save it in the Z drive, but then when it is passed to blacs to run, blacs cannot open the file to run it. Any help would be appreciated.

Best,
Jasmine Kalia



--
You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/1444b28d-684e-4a7e-86a1-d5f531f98fc2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages