Hi, I finally manged to get runmanager and blacs running without errors but it took me several days to come to this point.
I want to share what is needed to get it running for Python 3.6 on Ubuntu 18.04 LTS:
1. in .venv/lib/python3.6/site-packages/labscript-profile/__init__.py
line 52 change from:
config = ConfigParser(defaults={'labscript_suite': LABSCRIPT_SUITE_PROFILE})
to:
config = ConfigParser(defaults={'labscript_suite': str(LABSCRIPT_SUITE_PROFILE)})
2. .venv/lib/python3.6/site-packages/labscript_utils/labconfig.py
lineĀ 40 change from:
self, config_path=default_config_path, required_params=None, defaults=None,
to:
self, config_path=str(default_config_path), required_params=None, defaults=None,
line 46 change from:
defaults['labscript_suite'] = LABSCRIPT_SUITE_PROFILE
to:
defaults['labscript_suite'] = str(LABSCRIPT_SUITE_PROFILE)
3. (optional) in .venv/lib/python3.6/site-packages/labscript/labscript.py
line 2541 change from:
compiler.save_hg_info = True
to:
compiler.save_hg_info = False
line 2561 change from:
save_hg_info = True
to:
save_hg_info = False
4. in connection_table.py [blank when opened the first time from blacs menu and selected to edit]
copy into this file your entire experiment script as for example the one in the figure:
I think you can remove all of the Experimental logic but *** most importantly *** keep the start() and stop(2) commands!
the time given to stop should not matter but has to be > 0.
it would be very helpful to have an example figure on the next page of the docs:
5. (optional) in .venv/lib/python3.6/site-packages/labscript/labscript.py (2nd modification of this file)
line 2194 change from:
save_path = 'labscriptlib/' + path.replace(prefix, '').replace('\\', '/').replace('//', '/')
to:
save_path = ('labscriptlib/' + path.replace(prefix, '').replace('\\', '/')).replace('//', '/')
#############################################################
the line numbers might be slightly off since I inserted here and there print commands.
1. and 2 fix the error: "TypeError: argument of type 'PosixPath' is not iterable"
3. fixes the error "FileNotFoundError: [Errno 2] No such file or directory: 'hg': 'hg'" which happens when Mercurial is not installed [nothing in docs about this dependency]
4. fixes the error on startup of blacs or after recompilation of the connection table: "KeyError: "Unable to open object (object 'connection table' doesn't exist)""
this was the error which took me the most time to find and banging my head against walls since runmanager could compile it with the 'connection table' in the h5 file
while blacs failed using the exact same functions for compilation.
The connection_table.py file needs the start() and stop() entries to compile properly!
please insert this info into the docs or as an example file in the suite! it's neither in one of the thesis nor in the docs.
5. is a possible bug which I found during tracking of error 4. On my system the '//' were not replaced by single '/' otherwise. But it seems not to matter and does not cause errors.
another note: hdfview does not show any content of the h5 file although according to the thesis it should:
is this because the file is encrypted or do I have the wrong viewer (HDFView 2.11)
Thanks,
Andreas