TypeError in method 'new_LIGOTimeGPS'
I'm upgrading gracedb-server
to python3.10 and encountered a TypeError
in lalsuite>=7.3
installed from pip
. The relevant traceback is below:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/generic/list.py", line 157, in get
context = self.get_context_data()
File "/app/gracedb_project/gracedb/superevents/views.py", line 198, in get_context_data
se.t0_iso = gpstime.gps_to_utc(se.t_0).isoformat(' ').split('.')[0]
File "/usr/local/lib/python3.10/site-packages/lal/gpstime.py", line 108, in gps_to_utc
gps = LIGOTimeGPS(gps)
Exception Type: TypeError at /superevents/public/O3/
Exception Value: in method 'new_LIGOTimeGPS', argument 1 of type 'struct tagLIGOTimeGPS const *'
Additional information:
Wrong number or type of arguments for overloaded function 'new_LIGOTimeGPS'.
Possible C/C++ prototypes are:
tagLIGOTimeGPS::tagLIGOTimeGPS(REAL8)
tagLIGOTimeGPS::tagLIGOTimeGPS(INT4)
tagLIGOTimeGPS::tagLIGOTimeGPS(INT4,INT8)
tagLIGOTimeGPS::tagLIGOTimeGPS(char const *)
tagLIGOTimeGPS::tagLIGOTimeGPS()
tagLIGOTimeGPS::tagLIGOTimeGPS(struct tagLIGOTimeGPS const *)
The last error message did look like this. This was in a debian 11 container, python3.10, and lalsuite>=7.3
from pip
.