python-ligo-lw is not Python 3 compatible because of changes that were not brought over from glue
There are a number of scripts that have now moved to python-ligo-lw
that no longer work in Python 3 because changes in lscsoft/glue!15 (merged) were not brought over in the move. Here's on example.
$ ligolw_sqlite -d test.sqlite test.xml.gz
Traceback (most recent call last):
File "/usr/bin/ligolw_sqlite", line 158, in <module>
ligolw_sqlite.insert_from_url(url, contenthandler = ContentHandler, preserve_ids = options.preserve_ids, verbose = options.verbose)
File "/usr/lib/python3.7/site-packages/ligo/lw/utils/ligolw_sqlite.py", line 147, in insert_from_url
xmldoc = ligolw_utils.load_url(url, verbose = verbose, contenthandler = contenthandler)
File "/usr/lib/python3.7/site-packages/ligo/lw/utils/__init__.py", line 401, in load_url
xmldoc = load_fileobj(fileobj, **kwargs)
File "/usr/lib/python3.7/site-packages/ligo/lw/utils/__init__.py", line 340, in load_fileobj
fileobj = RewindableInputFile(fileobj)
File "/usr/lib/python3.7/site-packages/ligo/lw/utils/__init__.py", line 144, in __init__
self._next = self.fileobj.next
AttributeError: '_io.BufferedReader' object has no attribute 'next'
Until this is fixed I cannot migrate to python-ligo-lw.
Edited by Leo P. Singer