{"id":23122,"library":"lscsoft-glue","title":"LSCsoft-glue","description":"GLUE (Grid LSC User Environment) is a collection of utilities for running data analysis pipelines for online and offline analysis as well as accessing various grid utilities. Current version is 4.1.1, actively maintained, with releases roughly every few months.","status":"active","version":"4.1.1","language":"python","source_language":"en","source_url":"https://git.ligo.org/lscsoft/glue","tags":["LIGO","gravitational waves","data analysis","grid computing"],"install":[{"cmd":"pip install lscsoft-glue","lang":"bash","label":"PyPI installation"}],"dependencies":[{"reason":"Core dependency for segment handling","package":"ligo-segments","optional":false},{"reason":"HDF5 file I/O","package":"h5py","optional":true}],"imports":[{"note":"Cache class moved to glue.lal in version 2.0+","wrong":"from glue import Cache","symbol":"glue.lal.Cache","correct":"from glue.lal import Cache"}],"quickstart":{"code":"from glue.lal import Cache\ncache = Cache()\ncache.append('H1', 'R', 1126257418, 1126259500, '/path/to/file.gwf')\ncache.to_segwizard('/tmp/cache.txt')","lang":"python","description":"Create a LIGO cache file using GLUE's Cache class."},"warnings":[{"fix":"Use 'from glue.lal import ...' instead of 'from glue import ...'","message":"In version 2.0+, the top-level 'glue' package was restructured into subpackages like glue.lal, glue.segments, etc. Importing from the old flat namespace will fail.","severity":"breaking","affected_versions":">=2.0"},{"fix":"Replace 'from glue.segmentdb import *' with 'from ligo.segments import *'","message":"The 'glue.segmentdb' module is deprecated and may be removed in future versions. Use 'ligo.segments' directly for segment database queries.","severity":"deprecated","affected_versions":">=3.0"},{"fix":"Use forward slashes or os.path.normpath() to convert paths.","message":"The 'Cache' class's 'to_segwizard' method expects Unix-formatted file paths even on Windows. Backslashes will cause parsing errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install lscsoft-glue","cause":"Trying to import from glue.lal without installing the lscsoft-glue package.","error":"ModuleNotFoundError: No module named 'glue.lal'"},{"fix":"Use 'from glue.lal import Cache'","cause":"Using old top-level import pattern (from glue import Cache) which no longer works after restructuring.","error":"AttributeError: module 'glue' has no attribute 'Cache'"},{"fix":"Ensure each cache entry has 4 columns: observatory, description, start_time, end_time, filename. LIGO channel/duration format is not supported.","cause":"Calling to_segwizard() without proper columns, or mix-up between old and new segment string format.","error":"ValueError: Cannot parse segment string: 'H1:1126257418-1126259500'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}