Is there any way to have two labscript installs on the same machine?
Error: when try to run "labscript-profile-create" on new install, get the following error:
(labscript_new) PS C:\Users\RoyDAQ\Documents\labscript_new\scripts>
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_m
return _run_code(code, main_globals, None,
File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_co
exec(code, run_globals)
File "C:\Users\RoyDAQ\Documents\labscript_new\scripts\labscript-pr
File "C:\Users\RoyDAQ\Documents\labscript_new\src\labscript-utils\
file
raise FileExistsError(dest_file)
FileExistsError: C:\Users\RoyDAQ\labscript-suite\app_saved_configs
If proceed without creating new profile in the new labscript install, blacs gives the following error for each device except NI cards:
Traceback (most recent call last):
File "C:\Users\RoyDAQ\Documents\labscript_new\src\labscript-utils\labscript_utils\device_registry\_device_registry.py", line 122, in __getitem__
importlib.import_module('.' + name, 'labscript_devices')
File "C:\Program Files\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'labscript_devices.HP8673B'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "c:\users\roydaq\documents\labscript_new\lib\site-packages\zprocess\utils.py", line 122, in _reraise
raise value.with_traceback(traceback)
File "C:\Users\RoyDAQ\Documents\labscript_new\src\blacs\blacs\__main__.py", line 271, in __init__
TabClass = device_registry.get_BLACS_tab(labscript_device_class_name)
File "C:\Users\RoyDAQ\Documents\labscript_new\src\labscript-utils\labscript_utils\device_registry\_device_registry.py", line 215, in get_BLACS_tab
return BLACS_tab[name]
File "C:\Users\RoyDAQ\Documents\labscript_new\src\labscript-utils\labscript_utils\device_registry\_device_registry.py", line 134, in __getitem__
raise ImportError(msg)
ImportError: No BLACS_tab registered for a device named HP8673B. Ensure that there is a file 'register_classes.py' with a call to labscript_devices.register_classes() for this device, with the device name passed to register_classes() matching the name of the device class. Fallback method of looking for and importing a module in labscript_devices with the same name as the device also failed. If using this method, check that the module exists, has the same name as the device class, and can be imported with no errors. Import error was:
Traceback (most recent call last):
File "C:\Users\RoyDAQ\Documents\labscript_new\src\labscript-utils\labscript_utils\device_registry\_device_registry.py", line 122, in __getitem__
importlib.import_module('.' + name, 'labscript_devices')
File "C:\Program Files\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'labscript_devices.HP8673B'
Purpose: made backend changes to speed up labscript and want to install these custom edits onto machine without losing the capability of the previous version that works as is, albeit very slowly